feat(fight): 重构战斗效果触发机制与ID管理

- 统一将 Skill_Hit_Pre 和 Skill_Hit_Pre_ex 方法重命名为 Action_start 和 Action_start_ex
- 新增 Action_end 和 Action_end_ex 接口方法,完善行动周期控制
- 修改效果ID生成逻辑,使用 EffectIDCombiner 替代简单整数运算,提升扩展性
- 调整状态类效果判断方式,通过前缀匹配识别状态类型
- 增加随机持续时间和参数设置功能,增强部分效果的表现力
- 优化战斗流程中效果执行时机,确保行为前后逻辑完整闭环
This commit is contained in:
2025-11-22 00:44:42 +08:00
parent 684d79981a
commit 7f443736bc
21 changed files with 254 additions and 46 deletions

View File

@@ -152,6 +152,8 @@ func (e *EffectDefeatTrigger) triggerNextEnemyStatusOnDefeat(at info.AttackValue
if v > 0 {
nv := input.Geteffect(input.EffectType.Status, int(i))
if nv != nil {
nv.Duration(int(e.Input.FightC.GetRand().Int31n(2)))
nv.SetArgs(e.Ctx().Our) //输入参数是对方
e.Ctx().Opp.AddEffect(e.Ctx().Our, nv)
}
}