hxp
2025-06-04 71d77df560af421d106484e9276e89297b88e40a
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/python
# -*- coding: GBK -*-
#
# @todo: 
#
# @author: Alee
# @date 2017-12-10 ÉÏÎç10:52:11
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
#------------------------------------------------------------------------------ 
#µ¼Èë
import ChConfig
import BuffSkill
#---------------------------------------------------------------------
 
## buffÏßÐÔÔö¼ÓÊôÐÔ
#  @param defender Buff³ÐÊÜÕß
#  @param curEffect ¼¼ÄÜЧ¹û
#  @param calcDict ¼¼ÄÜЧ¹ûÀÛ¼Ó×ܱí
#  @return None
def OnCalcBuff(curObj, curEffect, calcDict, buffValue):
    
    value = curObj.GetLV() / curEffect.GetEffectValue(1)*curEffect.GetEffectValue(0)
    
    attrTypeList = ChConfig.Def_Skill_BuffEffectDict.get(curEffect.GetEffectID(), ("", []))[1]
    if attrTypeList == []:
        attrTypeList = ChConfig.Def_Skill_BuffEffectOutside.get(curEffect.GetEffectID(), 
                                                                ("", []))[1]
    
    for attrType in attrTypeList: 
        calcDict[attrType] = calcDict.get(attrType, 0) + value
    return
 
 
## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ
#  @param 
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
def GetCalcType():
    return ChConfig.TYPE_Linear