34 lines
631 B
Go
34 lines
631 B
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/info"
|
||
"blazing/logic/service/fight/input"
|
||
|
||
"github.com/alpacahq/alpacadecimal"
|
||
)
|
||
|
||
/**
|
||
* n回合内,自身造成的伤害为m倍
|
||
*/
|
||
|
||
func init() {
|
||
input.InitEffect(input.EffectType.Skill, 90, &Effect90{})
|
||
input.InitEffect(input.EffectType.Skill, 53, &Effect90{})
|
||
}
|
||
|
||
// Effect 90: {0}回合内自身造成的伤害为{1}倍
|
||
type Effect90 struct {
|
||
RoundEffectSideArg0Base
|
||
}
|
||
|
||
func (e *Effect90) Damage_Mul(t *info.DamageZone) bool {
|
||
|
||
if t.Type == info.DamageType.Red {
|
||
|
||
t.Damage = t.Damage.Mul(alpacadecimal.NewFromInt(int64(e.SideEffectArgs[1])))
|
||
|
||
}
|
||
|
||
return true
|
||
}
|