refactor(fight): 移除能力操作类型枚举并简化属性设置方法 移除了 info.EnumAbilityOpType 枚举类型及其相关常量定义, 重构了 SetProp 方法调用,不再传递操作类型参数, 通过检查等级正负值来判断是增加还是减少属性, 减少了代码复杂度并统一了属性变更的处理逻辑。 ```
This commit is contained in:
@@ -51,8 +51,8 @@ type Effect interface {
|
||||
TurnEnd() //回合结束计算
|
||||
HookAction() bool //出手前的hook参数,返回false阻止继续出手
|
||||
//PreBattleEnd() bool //战斗结束前
|
||||
OnBattleEnd() bool //战斗结束
|
||||
PropBefer(in *Input, prop, level int8, ptype info.EnumAbilityOpType) bool //锁定属性
|
||||
OnBattleEnd() bool //战斗结束
|
||||
PropBefer(in *Input, prop, level int8) bool //锁定属性
|
||||
//效果添加时候应该区分主动方和被动方来确认是主动添加的还是受击添加的
|
||||
//boss是进入防守方才被添加抵御异常状态效果的,boss免疫的实质是给挑战者挂载一个阻止添加给对手的debuff
|
||||
EFFect_Befer(in *Input, effEffect Effect) bool //属性免疫
|
||||
|
||||
Reference in New Issue
Block a user