mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 多流派评分覆盖默认规则错误
This commit is contained in:
parent
5e669f0afd
commit
ea1f5195b5
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ export function formatScoreWeight(oriScoreWeight) {
|
||||||
if (typeof oriScoreWeight !== 'object') return false;
|
if (typeof oriScoreWeight !== 'object') return false;
|
||||||
const weight = {};
|
const weight = {};
|
||||||
for (const propName in oriScoreWeight) {
|
for (const propName in oriScoreWeight) {
|
||||||
if (!oriScoreWeight[propName])
|
if (!oriScoreWeight[propName] && oriScoreWeight[propName] !== 0)
|
||||||
continue;
|
continue;
|
||||||
const propID = +propName || nameToId(propName);
|
const propID = +propName || nameToId(propName);
|
||||||
if (!propID)
|
if (!propID)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/** @type {import('../../avatar.ts')['scoreFnc'][string]} */
|
/** @type {import('../../avatar.ts')['scoreFnc'][string]} */
|
||||||
export default function (avatar) {
|
export default function (avatar) {
|
||||||
const props = avatar.initial_properties
|
const props = avatar.initial_properties
|
||||||
if (props.CRITRate * 2 + props.CRITDMG >= 2 && props.AnomalyProficiency < 200) {
|
if (props.CRITRate * 2 + props.CRITDMG >= 2 && props.AnomalyProficiency < 300) {
|
||||||
return ['直伤流', {
|
return ['直伤流', {
|
||||||
"生命值百分比": 0,
|
"生命值百分比": 0,
|
||||||
"攻击力百分比": 0.75,
|
"攻击力百分比": 0.75,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue