refactor(fight): 重构效果管理模块并迁移Effect接口至info包

This commit is contained in:
1
2025-08-26 23:18:55 +00:00
parent c757a38a6b
commit e129e82a8d
9 changed files with 298 additions and 276 deletions

View File

@@ -1,6 +1,9 @@
package effect
import "blazing/logic/service/fight/battle/node"
import (
"blazing/logic/service/fight/battle/node"
"blazing/logic/service/fight/info"
)
/**
* 给予对象损伤一半,会回复自己的体力
@@ -11,7 +14,7 @@ type Effect1 struct {
func init() {
node.NodeM.AddEffect(&Effect1{})
info.NodeM.AddEffect(&Effect1{})
}
// 重写EFFectID