#!/usr/bin/python # -*- coding: GBK -*- # ##@package # # @todo: ÿÓÐÊôÐÔÖµ£¨ÈçÁ¦Á¿£©´ïµ½¶àÉٵ㣬ÌáÉýÊôÐÔ°Ù·Ö±È # # @author: Alee # @date 2018-11-6 ÏÂÎç03:26:05 # @version 1.0 # # @note: # #--------------------------------------------------------------------- #µ¼Èë import ChConfig import EffGetSet import IPY_GameWorld #--------------------------------------------------------------------- def OnCalcBuffEx(defender, curEffect, calcDict, curBuff): if defender.GetGameObjType() != IPY_GameWorld.gotPlayer: return funcMark = curEffect.GetEffectValue(2)/1000000 value = EffGetSet.GetValueByEffIndex(defender, funcMark)/(curEffect.GetEffectValue(2)%1000000) if value == 0: return attrType = curEffect.GetEffectValue(1) 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(0)*value return ## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ # @param # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def GetCalcType(): return ChConfig.TYPE_NoLinear