diff --git a/logic/service/fight/effect/effect_4_5.go b/logic/service/fight/effect/effect_4_5.go index b0e0a2dd..f1579b7b 100644 --- a/logic/service/fight/effect/effect_4_5.go +++ b/logic/service/fight/effect/effect_4_5.go @@ -46,10 +46,10 @@ func (e *EffectStat) SkillUseEnd(opp *input.Input) { t, _, _ := e.Input.Player.Roll(e.EffectNode.SideEffectArgs[1], 100) if t { if !e.etype { //自身 - e.Input.Prop(e.EffectNode.SideEffectArgs[0], e.EffectNode.SideEffectArgs[2]) + e.Input.SetProp(e.EffectNode.SideEffectArgs[0], e.EffectNode.SideEffectArgs[2]) } else { //对方 - opp.Prop(e.EffectNode.SideEffectArgs[0], e.EffectNode.SideEffectArgs[2]) + opp.SetProp(e.EffectNode.SideEffectArgs[0], e.EffectNode.SideEffectArgs[2]) } } diff --git a/logic/service/fight/input/attr.go b/logic/service/fight/input/attr.go index 0bc4c40a..71a2d205 100644 --- a/logic/service/fight/input/attr.go +++ b/logic/service/fight/input/attr.go @@ -9,7 +9,7 @@ func (u *Input) Death() { } // 1是添加,-1是减少,0是清除 -func (u *Input) Prop(prop, level int) { +func (u *Input) SetProp(prop, level int) { //todo 待交互 u.AttackValue.Prop[prop] = u.AttackValue.Prop[prop] + int8(level)