fix(fight): 战斗修改

This commit is contained in:
1
2025-11-11 05:54:24 +00:00
parent c6e0d84c1d
commit 65758c799e
44 changed files with 656 additions and 731 deletions

View File

@@ -23,14 +23,14 @@ type Effect31 struct {
node.EffectNode
}
func (e *Effect31) Damage_Mul(ctx input.Ctx) bool {
func (e *Effect31) Damage_Mul() bool {
if !e.Hit() {
return true
}
if ctx.DamageZone.Type == info.DamageType.Red {
if e.Ctx().DamageZone.Type == info.DamageType.Red {
n := int(e.Input.FightC.GetRand().Int31n(int32(e.SideEffectArgs[1]-e.SideEffectArgs[0]+1))) + e.SideEffectArgs[0]
ctx.DamageZone.Damage = ctx.DamageZone.Damage.Mul(decimal.NewFromInt(int64(n)))
e.Ctx().Our.DamageZone.Damage = e.Ctx().Our.DamageZone.Damage.Mul(decimal.NewFromInt(int64(n)))
}