2025-08-26 18:02:32 +00:00
|
|
|
|
package node
|
|
|
|
|
|
|
2025-11-01 00:40:19 +08:00
|
|
|
|
import (
|
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
|
)
|
2025-09-29 02:40:35 +08:00
|
|
|
|
|
2025-08-26 23:18:55 +00:00
|
|
|
|
// 切精灵返回false,重写change方法来实现切换效果
|
2025-08-26 20:01:20 +00:00
|
|
|
|
// 精灵切换相关触发
|
2025-09-29 02:40:35 +08:00
|
|
|
|
|
|
|
|
|
|
func (e *EffectNode) OnSwitchIn(ctx input.Ctx) bool {
|
2025-11-03 03:59:59 +08:00
|
|
|
|
//panic("not implemented") // TODO: Implement
|
|
|
|
|
|
return true
|
2025-08-26 18:02:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-29 02:40:35 +08:00
|
|
|
|
func (e *EffectNode) OnSwitchOut(ctx input.Ctx) bool {
|
2025-11-01 00:40:19 +08:00
|
|
|
|
|
2025-09-24 21:39:57 +00:00
|
|
|
|
return true
|
2025-08-26 18:02:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-29 02:40:35 +08:00
|
|
|
|
func (e *EffectNode) OnOwnerSwitchIn(ctx input.Ctx) bool {
|
2025-09-03 01:30:26 +08:00
|
|
|
|
return true
|
2025-08-26 20:01:20 +00:00
|
|
|
|
}
|
2025-08-26 18:02:32 +00:00
|
|
|
|
|
2025-11-01 00:40:19 +08:00
|
|
|
|
// 自身下场,清除掉技能效果
|
2025-09-29 02:40:35 +08:00
|
|
|
|
func (e *EffectNode) OnOwnerSwitchOut(ctx input.Ctx) bool {
|
2025-11-03 16:19:24 +00:00
|
|
|
|
// e.Input.AttackValue = info.NewAttackValue(e.Input.UserID)
|
2025-09-25 13:07:56 +08:00
|
|
|
|
return true
|
2025-08-26 18:02:32 +00:00
|
|
|
|
}
|