refactor(fight/effect): 修改战斗效果实现逻辑

移除了多个过时的效果实现,包括:
- 移除效果165:n回合内每回合防御和特防等级+m
- 移除效果184:若对手处于能力提升状态则触发效果
- 移除效果430:消除对手能力强化状态相关逻辑
- 移除效果468:回合开始时处理能力下降状态
- 移除效果471:先出手时免疫异常状态
- 移除效果453:消除对手能力强化
This commit is contained in:
昔念
2026-03-09 00:07:19 +08:00
parent 611b284ade
commit c999ac4c8b
9 changed files with 283 additions and 175 deletions

View File

@@ -0,0 +1,41 @@
package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 430 - 消除对手能力强化状态若消除状态成功则自身XX等级m
type Effect430 struct {
node.EffectNode
}
func (e *Effect430) Skill_Use() bool {
var isadd bool
// 检查对手是否有能力强化状态
for i, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
if e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0) {
isadd = true
}
return true
}
}
if !isadd {
return true
}
// 如果成功消除了状态,提升自身能力等级
effectType := int8(e.Args()[0].IntPart()) // XX类型
effectValue := int8(e.Args()[1].IntPart()) // 等级m
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 184, &Effect184{})
}