Files
bl/logic/service/fight/battle/node/Turn.go
昔念 ca8c4bcd04 refactor(fight): 重构战斗系统
- 优化了战斗逻辑和数据结构
- 修复了一些战斗相关的错误
- 提高了代码的可读性和可维护性
2025-09-06 00:31:08 +08:00

25 lines
448 B
Go

package node
// 回合开始前
func (this *EffectNode) PreTurnStart() bool {
return true
}
// 回合开始
func (this *EffectNode) OnTurnStart() bool {
return true
}
// 回合结束一次性effect清楚掉
func (this *EffectNode) TurnEnd() bool {
if this.duration != 0 { // 保留 (负数表示永久)
//this.GetBattle().Effects[this.GetInput().UserID].AddEffect(this) //重新添加buff到上下文
}
this.duration--
return true
}