```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(fight): 实现技能PP消耗Hook机制并优化效果处理

- 在Effect475中添加子效果时通过Ctx().Our.AddEffect正确添加效果
- 删除已废弃的Effect407、Effect440和Effect412效果类型
- 在fightc.go中实现技能使用后的PP消耗Hook机制,支持效果修改PP消耗数量
- 添加HookPP接口方法用于处理技能使用的PP消耗逻辑
- 在SkillInfo中添加Use方法用于实际消耗PP值
```
This commit is contained in:
昔念
2026-03-09 23:44:09 +08:00
parent 0961dc43e3
commit 1fa1ae848d
9 changed files with 121 additions and 54 deletions

View File

@@ -23,6 +23,9 @@ func (e *EffectNode) CalculatePre() bool {
return true
}
func (e *EffectNode) HookPP(count *int) bool {
return true
}
func (e *EffectNode) OnSkill() bool {
// if e.Effect != nil {
// if e.Hit() { //没命中