| | |
| | |
|
| | | calcCureResults = []
|
| | | relativeObj = GetRelativeObj(turnFight, curBatObj)
|
| | | multiValue = 1
|
| | | addCureMulti = TurnPassive.GetTriggerEffectValue(turnFight, curBatObj, None, ChConfig.PassiveEff_AddCureMulti, useSkill)
|
| | | if addCureMulti:
|
| | | multiValue += addCureMulti / 100.0
|
| | | |
| | | for tagBatObj in useSkill.GetTagObjList():
|
| | | cureHP = CalcCureHP(turnFight, curBatObj, tagBatObj, useSkill, relativeObj=relativeObj)
|
| | | cureHP = CalcCureHP(turnFight, curBatObj, tagBatObj, useSkill, relativeObj=relativeObj, multiValue=multiValue)
|
| | | poisonCureOwner = GetPoisonCureOwner(tagBatObj)
|
| | | calcCureResults.append([tagBatObj, cureHP, poisonCureOwner])
|
| | |
|
| | |
| | | TurnAttack.AddTurnObjCureHP(atkObj, atkObj, suckHP, cureHP)
|
| | | return
|
| | |
|
| | | def CalcCureHP(turnFight, userObj, tagObj, curSkill, relativeObj=None):
|
| | | def CalcCureHP(turnFight, userObj, tagObj, curSkill, relativeObj=None, multiValue=1):
|
| | | ''' 计算治疗值
|
| | | '''
|
| | |
|
| | |
| | | cureHP += cureHPEx
|
| | | GameWorld.DebugLogEx(" 额外治疗值(%s): cureType=%s,baseValue=%s,skillPer=%s,cureHP=%s", cureHPEx, cureType, baseValue, skillPer, cureHP)
|
| | |
|
| | | if multiValue and multiValue != 1:
|
| | | cureHP = int(cureHP * multiValue)
|
| | | GameWorld.DebugLogEx(" 治疗倍值: cureHP=%s,multiValue=%s", cureHP, multiValue)
|
| | | |
| | | hurtShareEff = curSkill.GetEffectByID(ChConfig.SkillEff_HurtShare)
|
| | | if hurtShareEff:
|
| | | tagCnt = max(1, len(curSkill.GetTagObjList()))
|