属性:加值和加百分比的type值修改
This commit is contained in:
@@ -865,12 +865,6 @@ function addSeidEffect(heroAttrs: CeAttrData[], addSeidList: Array<number>, remo
|
||||
for (let { type, gainValueArr: [ability, value] } of effectList) {
|
||||
if (type == SEID_TYPE.TYPE101) { // 加值
|
||||
updateHeroAttr(heroAttrs, ability, { inc: {fixUp: value * multi * HERO_CE_RATIO} });
|
||||
} else if (type == SEID_TYPE.TYPE102) { // 加百分比
|
||||
if(ABI_TYPE_MAIN.includes(ability)) {
|
||||
updateHeroAttr(heroAttrs, ability, { inc: {ratioUp: value * multi} });
|
||||
} 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} });
|
||||
|
||||
Reference in New Issue
Block a user