#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package UseItem.Item_ChatBubbleBox  
 | 
#  
 | 
# @todo:¼¤»îÁÄÌìÆøÅÝ¿ò  
 | 
# @author hxp  
 | 
# @date 2018-11-01  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ¼¤»îÁÄÌìÆøÅÝ¿ò  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#"""Version = 2018-11-01 21:30"""  
 | 
#-------------------------------------------------------------------------------  
 | 
  
 | 
import ItemCommon  
 | 
import ChConfig  
 | 
import ChPlayer  
 | 
  
 | 
  
 | 
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):  
 | 
    ##ÅúÁ¿Ê¹ÓÃÎïÆ·  
 | 
    curEff = curRoleItem.GetEffectByIndex(0)  
 | 
    bubbleBoxID = curEff.GetEffectValue(0)  
 | 
    if not bubbleBoxID:  
 | 
        return  
 | 
      
 | 
    if not ChPlayer.DoActivateChatBubbleBox(curPlayer, bubbleBoxID):  
 | 
        return  
 | 
      
 | 
    ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_ChatBubbleBox)  
 | 
    return True, useCnt  
 | 
  
 |