Files
bl/logic/service/fight/effect/518.go
xinian 84024aed83
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构战斗效果实现逻辑
2026-03-23 07:36:20 +08:00

30 lines
644 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 518 - 若伤害高于m则自身XX等级+n
type Effect518 struct {
node.EffectNode
}
func (e *Effect518) Skill_Use_ex() bool {
damageThreshold := int(e.Args()[0].IntPart())
damageDone := e.Ctx().Our.SumDamage
if damageDone.IntPart() > int64(damageThreshold) {
effectType := int8(e.Args()[1].IntPart()) // XX类型
effectValue := int8(e.Args()[2].IntPart()) // 等级+n
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 518, &Effect518{})
}