2025-11-13 23:06:55 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/info"
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
"blazing/logic/service/fight/node"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 惩罚,对方能力等级越高,此技能威力越大
|
|
|
|
|
type Effect35 struct {
|
|
|
|
|
node.EffectNode
|
|
|
|
|
can bool
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-04 22:10:34 +08:00
|
|
|
func (e *Effect35) SkillHit() bool {
|
2025-11-13 23:06:55 +08:00
|
|
|
|
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch e.Ctx().SkillEntity.Category() {
|
|
|
|
|
case info.Category.PHYSICAL:
|
2025-11-20 15:19:13 +08:00
|
|
|
e.Ctx().SkillEntity.Power += (e.Ctx().Opp.GetProp(0, true) + e.Ctx().Opp.GetProp(1, true)) * 20
|
2025-11-13 23:06:55 +08:00
|
|
|
case info.Category.SPECIAL:
|
2025-11-20 15:19:13 +08:00
|
|
|
e.Ctx().SkillEntity.Power += (e.Ctx().Opp.GetProp(2, true) + e.Ctx().Opp.GetProp(3, true)) * 20
|
2025-11-13 23:06:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ---- 注册所有效果 ----
|
|
|
|
|
func init() {
|
|
|
|
|
input.InitEffect(input.EffectType.Skill, 35, &Effect35{})
|
|
|
|
|
}
|