refactor(fight/input): 将Prop方法重命名为SetProp以明确其设置属性功能,并同步更新effect_4_5.go中的调用
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user