refactor: 重构效果参数处理逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-04-04 09:26:57 +08:00
committed by cnb
parent ce7be73e49
commit 257a979f93
4 changed files with 44 additions and 895 deletions

View File

@@ -109,21 +109,12 @@ func (e *Effect121) Skill_Use() bool {
// Effect 123: {0}回合内受到任何伤害,自身{1}提高{2}个等级
type Effect123 struct {
node.EffectNode
roundCount int
can bool
}
func (e *Effect123) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.roundCount = e.EffectNode.SideEffectArgs[0]
RoundEffectSideArg0Base
can bool
}
func (e *Effect123) TurnStart(at, de *action.SelectSkillAction) {
if e.roundCount > 0 {
e.can = true
e.roundCount--
}
e.can = true
}
func (e *Effect123) Be_Damage(at, _ alpacadecimal.Decimal) {