hxp
2024-08-31 44bcd51874e364012946b5f34dd7bb166d86edfb
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_TouchMission
#
# @todo:´¥·¢ÈÎÎñ½Ó¿Ú
# @author xdh
# @date 2019-05-29
# @version 1.0
#
# ÏêϸÃèÊö: ´¥·¢ÈÎÎñ½Ó¿Ú
#
#-------------------------------------------------------------------------------
#"""Version = 2019-05-29 10:00"""
#-------------------------------------------------------------------------------
import EventShell
import ItemCommon
import ChConfig
 
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
    ##ÅúÁ¿Ê¹ÓÃÎïÆ·
    curEff = curRoleItem.GetEffectByIndex(0)
    missionID = curEff.GetEffectValue(0)
    if not missionID:
        return
    EventShell.EventRespons_UseMissionItem(curPlayer, missionID)
    ItemCommon.DelItem(curPlayer, curRoleItem, 1, True, ChConfig.ItemDel_Unknown, {}, True)
    return True, 1