| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| ##@package  | 
| #  | 
| # @todo: ¸ù¾ÝÓ¡¼ÇÔö¼ÓÊôÐÔÖµ-ÏßÐÔ  | 
| #  | 
| # @author: Alee  | 
| # @date 2019-4-26 ÏÂÎç07:29:19  | 
| # @version 1.0  | 
| #  | 
| # @note:   | 
| #  | 
| #---------------------------------------------------------------------  | 
| #µ¼Èë  | 
| import PlayerControl  | 
| import ChConfig  | 
| import GameWorld  | 
| #---------------------------------------------------------------------  | 
|   | 
| ## buffÏßÐÔÔö¼ÓÊôÐÔ  | 
| #  @param defender Buff³ÐÊÜÕß  | 
| #  @param curEffect ¼¼ÄÜЧ¹û  | 
| #  @param calcDict ¼¼ÄÜЧ¹ûÀÛ¼Ó×Ü±í  | 
| #  @return None  | 
| def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):  | 
|     attrType = curEffect.GetEffectValue(0)  | 
|   | 
|     cnt = curBuff.GetValue()  | 
|     if curEffect.GetEffectValue(2):  | 
|         cnt = min(curBuff.GetValue(), curEffect.GetEffectValue(2))  | 
|       | 
|     calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*cnt  | 
|     return  | 
|   | 
|   | 
| ## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ  | 
| #  @param   | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.    | 
| def GetCalcType():  | 
|     return ChConfig.TYPE_Linear  | 
|   | 
|   | 
| ##¼ÆËãÔöǿֵ  | 
| # @param attacker ¹¥»÷ÕßʵÀý  | 
| # @param curSkill ¼¼ÄÜʵÀý  | 
| # @param curEffect µ±Ç°¼¼ÄÜЧ¹û1  | 
| # @return ×ÜÖµ  | 
| def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):  | 
|     return [PlayerControl.GetYinjiCnt(attacker)]  | 
|   | 
|   | 
|   |