`` refactor(fight/effect): 重构效果系统,优化效果存储结构和叠层逻辑,移除EffectID结构``
This commit is contained in:
@@ -45,7 +45,7 @@ type Effect interface {
|
||||
//boss是进入防守方才被添加抵御异常状态效果的,boss免疫的实质是给挑战者挂载一个阻止添加给对手的debuff
|
||||
EFFect_Befer()
|
||||
SetArgs(input *Input, param ...int)
|
||||
|
||||
GetArgs() []int
|
||||
// 治疗相关触发
|
||||
Heal_Pre(action.BattleActionI) bool // 治疗前触发 回复翻倍效果
|
||||
Heal(action.BattleActionI) bool // 治疗生效时触发 药剂反噬
|
||||
@@ -59,5 +59,6 @@ type Effect interface {
|
||||
NotALive()
|
||||
GetOwner() bool // 技能属主,比如寄生和镇魂歌,属主是对方)
|
||||
GetInput() *Input
|
||||
ID(...int) int
|
||||
//GetSkill() *BattleSkillEntity //获得技能ctx
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user