```
feat(fight): 更新概率判定函数注释并新增状态与属性操作类型 更新 PlayerCaptureContext.Roll 函数注释,明确返回值含义。 新增 PetStatus 枚举值 NULL,表示无效状态。 新增 AbilityOpType.COPY 操作类型,支持复制对手属性值。 ```
This commit is contained in:
@@ -308,6 +308,14 @@ func (our *Input) SetProp(in *Input, prop, level int8, ptype info.EnumAbilityOpT
|
||||
our.SetProp(our, prop, -1, info.AbilityOpType.RESET) //消除自身弱化
|
||||
return true
|
||||
}
|
||||
case info.AbilityOpType.COPY:
|
||||
temp := our.Opp.AttackValue.Prop[prop]
|
||||
if temp >= 0 {
|
||||
our.SetProp(our, prop, temp, info.AbilityOpType.ADD)
|
||||
} else {
|
||||
our.SetProp(our, prop, -temp, info.AbilityOpType.SUB)
|
||||
}
|
||||
|
||||
default: //增加减少重置
|
||||
|
||||
if abfunc(prop, level, ptype) {
|
||||
|
||||
Reference in New Issue
Block a user