| | |
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | import TurnSkill
|
| | | import ChConfig
|
| | |
|
| | | def CalcBuffValue(attacker, defender, curSkill):
|
| | | def CalcBuffValue(turnFight, attacker, defender, curSkill):
|
| | | #calcType = curSkill.GetCalcType()
|
| | | skillPer = curSkill.GetSkillPer()
|
| | | skillValue = curSkill.GetSkillValue()
|
| | |
|
| | | hurtValue, hurtTypes = TurnSkill.CalcHurtHP(attacker, defender, curSkill, skillValue, skillPer, damageoftime=1)
|
| | | return [hurtValue, hurtTypes]
|
| | | hurtValue, hurtTypes = TurnSkill.CalcHurtHP(turnFight, attacker, defender, curSkill, skillValue, skillPer, damageoftime=1)
|
| | | return [hurtValue % ChConfig.Def_PerPointValue, hurtValue / ChConfig.Def_PerPointValue, hurtTypes]
|
| | |
|
| | | def DoBuffProcess(turnFight, batObj, curBuff):
|
| | | ## 执行单次逻辑
|
| | | hurtValue = curBuff.GetBuffValue(0) # 单次伤害
|
| | | hurtTypes = curBuff.GetBuffValue(1)
|
| | | hurtValue = curBuff.GetValue1() + curBuff.GetValue2() * ChConfig.Def_PerPointValue # 单次伤害
|
| | | hurtTypes = curBuff.GetValue3()
|
| | | TurnSkill.DoDOTAttack(turnFight, batObj, curBuff, hurtValue, hurtTypes)
|
| | | return
|
| | |
|