36 lines
660 B
Go
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
|
|
}
|