refactor(fight/effect): 重构能力操作类型枚举命名,统一使用大写形式(ADD/SUB/COPY/RESET)并更新相关调用点

This commit is contained in:
1
2025-09-26 18:39:59 +00:00
parent c52c409ffc
commit d46849a020
13 changed files with 431 additions and 312 deletions

View File

@@ -22,7 +22,9 @@ type Effect interface {
PreAttacked(opp *Input, skill *info.SkillEntity) //预处理受击技能
BeforeAttacked(opp *Input, id *info.DamageZone) //受击前触发 这时候就是百分比减伤区间
Attacked(opp *Input, id *info.DamageZone) // 受击触发 这时候就是点数减伤
Shield() bool // 护盾值变化时触发
PostDamage() bool // 伤害结算后触发(血量扣除后),比如触发回神,反弹也在这里实现
Shield() bool // 护盾值变化时触发
OnSwitchIn() bool // 精灵出战 / 上场时触发
OnSwitchOut() bool // 精灵下场时触发
@@ -33,8 +35,6 @@ type Effect interface {
PreBattleEnd() bool //战斗结束前
OnBattleEnd() bool //战斗结束
// PostDamage() bool // 伤害结算后触发(血量扣除后)
// AfterAttacked() bool // 被攻击后触发(受击判定)
// OnSkillPP() bool //技能PP减少节点
// // 治疗相关触发
// OnBeforeHeal() bool // 治疗前触发