#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#  
 | 
# @todo: Åå´÷X´úÒÔÉϳá°ò£¬¶îÍâÌí¼ÓÊôÐÔ°Ù·Ö±È  
 | 
#  
 | 
# @author: Alee  
 | 
# @date 2018-1-20 ÏÂÎç02:50:26  
 | 
# @version 1.0  
 | 
#  
 | 
# @note:   
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
#µ¼Èë  
 | 
import ChConfig  
 | 
import ItemCommon  
 | 
import ShareDefine  
 | 
import IPY_GameWorld  
 | 
import GameWorld  
 | 
import PlayerControl  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
  
 | 
def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):  
 | 
    equipPack = defender.GetItemManager().GetPack(IPY_GameWorld.rptEquip)  
 | 
    curWing = equipPack.GetAt(ShareDefine.retWing)  
 | 
      
 | 
    if not ItemCommon.CheckItemCanUse(curWing):  
 | 
        #GameWorld.Log("³á°ò²»ºÏ·¨£¬»òÕßûÓдø³á°ò")  
 | 
        return  
 | 
      
 | 
    if curWing.GetItemColor() < curEffect.GetEffectValue(2):  
 | 
        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)  
 | 
    return  
 | 
  
 | 
  
 | 
## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ  
 | 
#  @param   
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.    
 | 
def GetCalcType():  
 | 
    return ChConfig.TYPE_NoLinear  
 | 
  
 |