fix: 移除技能配置中已弃用的穿刺次数字段
移除 SkillConfig 接口中的 pct 字段及相关计算逻辑,该字段已不再使用。 更新 max_hit_count 的计算,直接使用 cAttrsComp.puncture 替代之前包含 addPct 的 totalPuncture。
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"x": -59.861,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -108,8 +108,8 @@
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.8,
|
||||
"y": 0.8,
|
||||
"x": 1.2,
|
||||
"y": 1.2,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
@@ -349,7 +349,7 @@
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 30,
|
||||
"height": 10
|
||||
"height": 100
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
|
||||
@@ -181,8 +181,7 @@ export interface SkillConfig {
|
||||
frz?:number, // 额外冰冻概率
|
||||
stn?:number, // 额外眩晕概率
|
||||
bck?:number, // 额外击退概率
|
||||
slw?:number, // 额外减速概率
|
||||
pct?:number, // 额外穿刺次数
|
||||
slw?:number, // 额外减速概
|
||||
buffs:number[], // 对施法者的buff配置列表(Buff UUID 列表)
|
||||
debuffs:number[], // 对目标的debuff配置列表(Buff UUID 列表)
|
||||
call_hero?:number, // 召唤技能召唤英雄id(可选)
|
||||
|
||||
@@ -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