Files
bl/logic/service/fight/boss/NewSeIdx_65.go
昔念 94c9c4e44c
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-02-03 00:31:38 +08:00

38 lines
837 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/info"
"blazing/logic/service/fight/input"
"github.com/alpacahq/alpacadecimal"
)
// 65. 物理攻击或特殊攻击伤害增加m%a1: 1=物理/3=特殊, a2: m
// TODO: 实现物理攻击或特殊攻击伤害增加m%a1: 1=物理/3=特殊, a2: m的核心逻辑
type NewSel65 struct {
NewSel0
}
func (e *NewSel65) DamageAdd(t *info.DamageZone) bool {
if !e.IsOwner() {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Category() != info.EnumCategory(e.Args()[0].IntPart()) {
return true
}
if t.Type != info.DamageType.Red {
return true
}
t.Damage = t.Damage.Add(t.Damage.Mul(e.Args()[1]).Div(alpacadecimal.NewFromInt(100)))
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 65, &NewSel65{})
}