| | |
| | | attrValue = maxValue
|
| | | GameWorld.DebugLog("按对方buff层级增加属性: attrID=%s,attrValue=%s,buffStateList=%s,layerTotal=%s,maxValue=%s"
|
| | | % (attrID, attrValue, buffStateList, layerTotal, maxValue))
|
| | | # 11-根据自己已损失血量百分比
|
| | | elif calcType == 11:
|
| | | curHP = attacker.GetHP()
|
| | | maxHP = attacker.GetMaxHP()
|
| | | lostPer = int((maxHP - curHP) / float(maxHP) * 100) # 只算取整
|
| | | attrValue = lostPer * attrValue
|
| | | GameWorld.DebugLog("按自身已损失生命百分比增加属性: attrID=%s,attrValue=%s,curHP=%s/%s,lostPer=%s" |
| | | % (attrID, attrValue, curHP, maxHP, lostPer))
|
| | | |
| | | else:
|
| | | checkInStateList = curEffect.GetEffectValue(2)
|
| | | if checkInStateList:
|