From ee16c228ec416820cdbe9d131aa171fb0be4b76b Mon Sep 17 00:00:00 2001 From: panw Date: Wed, 18 Mar 2026 14:19:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E5=B7=B2=E5=BC=83=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=A9=BF=E5=88=BA=E6=AC=A1=E6=95=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 SkillConfig 接口中的 pct 字段及相关计算逻辑,该字段已不再使用。 更新 max_hit_count 的计算,直接使用 cAttrsComp.puncture 替代之前包含 addPct 的 totalPuncture。 --- assets/resources/game/skill/atk/arrow_big_yellow.prefab | 8 ++++---- assets/script/game/common/config/SkillSet.ts | 3 +-- assets/script/game/skill/Skill.ts | 5 +---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/assets/resources/game/skill/atk/arrow_big_yellow.prefab b/assets/resources/game/skill/atk/arrow_big_yellow.prefab index 6202b62e..7fda760c 100644 --- a/assets/resources/game/skill/atk/arrow_big_yellow.prefab +++ b/assets/resources/game/skill/atk/arrow_big_yellow.prefab @@ -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": "" }, diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index c43594e1..4faa0921 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -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(可选) diff --git a/assets/script/game/skill/Skill.ts b/assets/script/game/skill/Skill.ts index b6c58bdd..e0e60543 100644 --- a/assets/script/game/skill/Skill.ts +++ b/assets/script/game/skill/Skill.ts @@ -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(); }