1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: Éñ±øÉúÃüת»»ÎªÑª¶Ü, AֵΪ°Ù·Ö±È
#
# @author: Alee
# @date 2018-4-23 ÏÂÎç02:04:06
# @version 1.0
#
# @note:  
#
#---------------------------------------------------------------------
 
import GameWorld
import ChConfig
import PlayerControl
 
 
 
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
    attrList = PlayerControl.GetCalcAttrListValue(attacker, ChConfig.Def_CalcAttrFunc_GodWeapon)
    
    hp = attrList[2].get(ChConfig.TYPE_Calc_AttrMaxHP, 0)
    
    curEffect = curSkill.GetEffect(0)
    return [hp*curEffect.GetEffectValue(0)/ChConfig.Def_MaxRateValue]