refactor: 重构效果参数处理逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user