| | |
| | | #导入
|
| | | import PlayerControl
|
| | | import ChConfig
|
| | | import GameWorld
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | ## buff线性增加属性
|
| | |
| | | def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
|
| | | attrType = curEffect.GetEffectValue(0)
|
| | |
|
| | | calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*min(curBuff.GetValue(), curEffect.GetEffectValue(2))
|
| | | cnt = curBuff.GetValue()
|
| | | if curEffect.GetEffectValue(2):
|
| | | cnt = min(curBuff.GetValue(), curEffect.GetEffectValue(2))
|
| | | |
| | | calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*cnt
|
| | | return
|
| | |
|
| | |
|
| | |
| | | # @param curEffect 当前技能效果1
|
| | | # @return 总值
|
| | | def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
|
| | | |
| | | return [PlayerControl.GetYinjiCnt(defender)]
|
| | | return [PlayerControl.GetYinjiCnt(attacker)]
|
| | |
|
| | |
|
| | |
|