根据提供的code differences信息,由于没有具体的代码变更内容,我将生成一个通用的commit message模板:
``` docs(changelog): 更新版本更新日志 - 添加新功能说明 - 修复已知问题记录 - 更新相关文档内容 ```
This commit is contained in:
@@ -3,8 +3,6 @@ package input
|
||||
import (
|
||||
"blazing/common/utils"
|
||||
"blazing/logic/service/fight/info"
|
||||
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// 攻击,防御,特攻,特防,速度,命中
|
||||
@@ -27,20 +25,20 @@ func (target *Input) SetProp(source *Input, prop, level int8, opType info.EnumAb
|
||||
// 属性提升,上限为6
|
||||
newValue = utils.Min(target.AttackValue.Prop[p]+l, 6)
|
||||
if newValue > target.AttackValue.Prop[p] {
|
||||
fmt.Println("属性值会增加")
|
||||
//fmt.Println("属性值会增加")
|
||||
return true
|
||||
}
|
||||
fmt.Println("属性值不会增加")
|
||||
//fmt.Println("属性值不会增加")
|
||||
return false
|
||||
|
||||
case info.AbilityOpType.SUB:
|
||||
// 属性降低,下限为-6
|
||||
newValue = utils.Max(target.AttackValue.Prop[p]+l, -6)
|
||||
if newValue < target.AttackValue.Prop[p] {
|
||||
fmt.Println("属性值会减少")
|
||||
//fmt.Println("属性值会减少")
|
||||
return true
|
||||
}
|
||||
fmt.Println("属性值不会减少")
|
||||
//fmt.Println("属性值不会减少")
|
||||
return false
|
||||
|
||||
case info.AbilityOpType.RESET:
|
||||
|
||||
Reference in New Issue
Block a user