Files
bl/logic/service/fight/effect/effect_135.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

36 lines
660 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
/**
* 造成的伤害不会低于n
*/
func init() {
input.InitEffect(input.EffectType.Skill, 135, &Effect135{})
}
// Effect 135: 造成的伤害不会低于{0}
type Effect135 struct {
node.EffectNode
}
func (e *Effect135) DamageFloor(t *info.DamageZone) bool {
// fmt.Println("Effect135_old", t.Damage.IntPart())
if t.Type == info.DamageType.Red {
t.Damage = alpacadecimal.Max(t.Damage, e.Args()[0])
}
//fmt.Println("Effect135_new", t.Damage.IntPart())
return true
}