Files
bl/logic/service/fight/node/Turn.go
昔念 b851ab9fdb ```
refactor(fight): 统一Action方法命名规范

将Action_start和Action_start_ex方法重命名为ActionStart和ActionStartEx,
使其符合Go语言驼峰命名规范。同时更新接口定义和所有相关调用处的方法名。

- 重命名Action_start为ActionStart
- 重命名Action_start_ex为ActionStartEx
- 更新interface.go中的方法定义
- 更新所有实现类中的方法签名
- 更新fightc.go中的方法
2026-01-05 23:00:42 +08:00

43 lines
929 B
Go

package node
import (
"blazing/logic/service/fight/action"
)
func (e *EffectNode) ActionStart(fattack, sattack *action.SelectSkillAction) bool {
return true
}
func (e *EffectNode) ActionStartEx(fattack, sattack *action.SelectSkillAction) bool {
return true
}
func (e *EffectNode) ComparePre(fattack, sattack *action.SelectSkillAction) bool { //比较前对优先级的修改 {
return true
}
func (e *EffectNode) TurnStart(fattack, sattack *action.SelectSkillAction) {
//panic("not implemented") // TODO: Implement
}
func (e *EffectNode) TurnEnd() {
// println("效果结算", e.id.Suffix(), e.duration)
if e.duration == 0 { // 保留 (负数表示永久)
e.Alive(false)
} else {
// e.trunl.Do(func() {
// if !e.Ctx().Our.FightC.IsFirst(e.Ctx().Our.Player) { //如果我方后手,那就给回合+1
// e.duration++
// // e.Alive(true)
// }
if e.duration > 0 {
e.duration--
}
// })
}
}