战力:随机属性

This commit is contained in:
luying
2021-09-24 17:48:27 +08:00
parent 8d7b849390
commit b5fa2c8ae6
3 changed files with 13 additions and 1 deletions

View File

@@ -871,6 +871,14 @@ function addSeidEffect(heroAttrs: CeAttrData[], addSeidList: Array<number>, remo
} else { // 次级属性102特殊处理
updateHeroAttr(heroAttrs, ability, { inc: {fixUp: value * multi * HERO_SUB_ATTR_RATIO } });
}
} else if (type == SEID_TYPE.TYPE103) { // 主属性加百分比
if(ABI_TYPE_MAIN.includes(ability)) {
updateHeroAttr(heroAttrs, ability, { inc: {ratioUp: value / 1000 * multi} });
}
} else if (type == SEID_TYPE.TYPE104) { // 次级属性加百分比
if(!ABI_TYPE_MAIN.includes(ability)) {
updateHeroAttr(heroAttrs, ability, { inc: {fixUp: value * 100 * multi * HERO_CE_RATIO } });
}
}
}
}