feat: 实现战斗效果逻辑和接口重构
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-28 21:57:22 +08:00
committed by cnb
parent 0780eae582
commit 875ad668aa
332 changed files with 2062 additions and 1442 deletions

View File

@@ -3,7 +3,6 @@ package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
@@ -17,8 +16,9 @@ func init() {
input.InitEffect(input.EffectType.Skill, 53, &Effect90{})
}
// Effect 90: {0}回合内自身造成的伤害为{1}倍
type Effect90 struct {
node.EffectNode
RoundEffectSideArg0Base
}
func (e *Effect90) Damage_Mul(t *info.DamageZone) bool {
@@ -31,9 +31,3 @@ func (e *Effect90) Damage_Mul(t *info.DamageZone) bool {
return true
}
func (e *Effect90) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
}