| #!/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  | 
|   |