1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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