hxp
5 天以前 388823edfe6308cba6f76ca6dc4f20022c5cb2be
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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package UseItem.Item_EmojiPack
#
# @todo:±íÇé°ü
# @author hxp
# @date 2024-09-13
# @version 1.0
#
# ÏêϸÃèÊö: ±íÇé°ü
#
#-------------------------------------------------------------------------------
#"""Version = 2024-09-13 16:30"""
#-------------------------------------------------------------------------------
 
import ItemCommon
import PlayerChatBox
 
def UseItem(curPlayer, curRoleItem, tick):
    useItemEff = curRoleItem.GetEffectByIndex(0)
    effectA1 = useItemEff.GetEffectValue(0) 
    if effectA1 == 0:
        return
    if not PlayerChatBox.AddEmojiPack(curPlayer, effectA1):
        return
    ItemCommon.DelItem(curPlayer, curRoleItem, 1)
    return True