hxp
2022-02-21 0c27822ef5e6c67782ed143a4ff03ecfbdfda1fb
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: ¸ù¾ÝÇ©µ½ÌìÔö³¤µÄÊôÐÔÖµ
#
# @author: Alee
# @date 2019-6-18 ÏÂÎç07:47:20
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
#µ¼Èë
import ChConfig
import EffGetSet
import IPY_GameWorld
#---------------------------------------------------------------------
 
 
def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
    if defender.GetGameObjType() != IPY_GameWorld.gotPlayer:
        return
 
    attrType = curEffect.GetEffectValue(0)
    attrTypeList = [attrType]
    # ¹¥»÷Á¦ÓÐ×î´ó×îС ÌØÊâ´¦Àí
    if attrType in [ChConfig.TYPE_Calc_AttrATKMin, ChConfig.TYPE_Calc_AttrATKMax]:
        attrTypeList = [ChConfig.TYPE_Calc_AttrATKMin, ChConfig.TYPE_Calc_AttrATKMax]
    for tmpType in attrTypeList:
        calcDict[tmpType] = calcDict.get(tmpType, 0) + curEffect.GetEffectValue(1)*defender.NomalDictGetProperty(ChConfig.Def_PDict_TotalSignNum)  # ×ÜÇ©µ½ÌìÊý
        
    return
 
 
## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ
#  @param 
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
def GetCalcType():
    return ChConfig.TYPE_Linear