refactor(fight/input): 将Prop方法重命名为SetProp以明确其设置属性功能,并同步更新effect_4_5.go中的调用

This commit is contained in:
1
2025-09-23 19:50:11 +00:00
parent 61bab92921
commit fb89a67edb
2 changed files with 3 additions and 3 deletions

View File

@@ -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])
}
}

View File

@@ -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)