fix: 移除技能配置中已弃用的穿刺次数字段
移除 SkillConfig 接口中的 pct 字段及相关计算逻辑,该字段已不再使用。 更新 max_hit_count 的计算,直接使用 cAttrsComp.puncture 替代之前包含 addPct 的 totalPuncture。
This commit is contained in:
@@ -197,8 +197,6 @@ export class Skill extends ecs.Entity {
|
||||
const addStn = config.stn ?? 0;
|
||||
const addBck = config.bck ?? 0;
|
||||
const addSlw = config.slw ?? 0;
|
||||
const addPct = config.pct ?? 0;
|
||||
const totalPuncture = cAttrsComp.puncture + addPct;
|
||||
sDataCom.Attrs[Attrs.ap] = cAttrsComp.ap;
|
||||
sDataCom.Attrs[Attrs.critical] = cAttrsComp.critical + addCrt;
|
||||
sDataCom.Attrs[Attrs.critical_dmg] = cAttrsComp.critical_dmg;
|
||||
@@ -206,14 +204,13 @@ export class Skill extends ecs.Entity {
|
||||
sDataCom.Attrs[Attrs.stun_chance] = cAttrsComp.stun_chance + addStn;
|
||||
sDataCom.Attrs[Attrs.back_chance] = cAttrsComp.back_chance + addBck;
|
||||
sDataCom.Attrs[Attrs.slow_chance] = cAttrsComp.slow_chance + addSlw;
|
||||
sDataCom.Attrs[Attrs.puncture] = totalPuncture;
|
||||
sDataCom.Attrs[Attrs.puncture_dmg] = cAttrsComp.puncture_dmg;
|
||||
|
||||
sDataCom.s_uuid=s_uuid
|
||||
sDataCom.fac=cAttrsComp.fac
|
||||
sDataCom.ext_dmg=ext_dmg
|
||||
sDataCom.hit_count = 0
|
||||
sDataCom.max_hit_count = Math.max(1, config.hit_count + totalPuncture)
|
||||
sDataCom.max_hit_count = Math.max(1, config.hit_count + cAttrsComp.puncture)
|
||||
SView.init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user