refactor(fight/input): 重构效果获取逻辑,优化属性计算流程并新增GetPropEffect方法
This commit is contained in:
@@ -26,7 +26,7 @@ type Input struct {
|
||||
|
||||
func NewInput(c common.FightI, p common.PlayerI) *Input {
|
||||
ret := &Input{FightC: c, Player: p}
|
||||
t, _ := Geteffect(4000000)
|
||||
t := ret.GetDamageEffect(0)
|
||||
ret.AddEffect(t) //添加默认基类,实现继承
|
||||
p.SetFightC(c) //给玩家设置战斗容器
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user