```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

refactor(fight): 统一技能使用方法命名规范

将多个战斗相关的结构体中的技能使用方法名从不一致的命名
(SkillUseed, OnSkill)统一改为Skill_Use,提高代码一致性。

同时优化了Effect3效果处理逻辑,简化了属性遍历方式,
并修复了先手控制逻辑中的EffectCache处理方式。

BREAKING CHANGE: 技能使用
This commit is contained in:
昔念
2026-03-09 17:14:41 +08:00
parent f35af82bec
commit 36f7aae476
12 changed files with 48 additions and 59 deletions

View File

@@ -44,7 +44,7 @@ func (e *EffectNode) Skill_Can() bool {
// return true
// }
// func (e *EffectNode) SkillUseed() bool {
// func (e *EffectNode) Skill_Use() bool {
// // if e.Effect != nil {
// // if e.Input.CurrentPet.Info.Hp == 0 {
// // e.OnDefeat(ctx.Input, ctx.SkillEntity) //死亡