| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #---------------------------------------------------------------------  | 
| #  | 
| #---------------------------------------------------------------------  | 
| ##@package GY_Query_DelFamilyImpeachItem.py  | 
| # @todo: É¾³ý¼Ò×嵯ÛÀ·û  | 
| #  | 
| # @author: wdb  | 
| # @date 2012-08-07 14:00  | 
| # @version 1.0  | 
| #  | 
| # @note  | 
| #---------------------------------------------------------------------  | 
| """Version = 2012-08-07 14:00"""  | 
| #---------------------------------------------------------------------  | 
| import GameWorld  | 
| import ItemCommon  | 
| import ChConfig   | 
| import IPY_GameWorld  | 
| #---------------------------------------------------------------------  | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
| #===============================================================================  | 
| #    itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)  | 
| #   | 
| #    #ËÑË÷±³°ü²éÕÒÎïÆ·  | 
| #    for i in range(0, itemPack.GetCount()):  | 
| #        curItem = itemPack.GetAt(i)  | 
| #   | 
| #        if not ItemCommon.CheckItemCanUse(curItem):  | 
| #            continue  | 
| #   | 
| #        if curItem.GetEffectByIndex(0).GetEffectID() != ChConfig.Def_Effect_FamilyImpeach:  | 
| #            continue  | 
| #   | 
| #        #ÕÒµ½ÎïÆ·¿Û³ý·µ»Ø  | 
| #        ItemCommon.DelItem(curPlayer, curItem, 1, True, "DelFamilyImpeachItem")  | 
| #        return  | 
| #   | 
| #    GameWorld.ErrLog('GY_Query_DelFamilyImpeachItem, Item not found; playerID = %s'%(curPlayer.GetID()))  | 
| #===============================================================================  | 
|     return  | 
|   | 
|   |