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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package UseItem.Item_GuajiAward
#
# @todo:Ö±½Ó¸ø¹Ò»úÊÕÒæ
# @author hxp
# @date 2024-06-21
# @version 1.0
#
# ÏêϸÃèÊö: Ö±½Ó¸ø¹Ò»úÊÕÒæ
#
#-------------------------------------------------------------------------------
#"""Version = 2024-06-21 11:00"""
#-------------------------------------------------------------------------------
 
import PlayerGuaji
import ItemCommon
 
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
    awardSeconds = curRoleItem.GetEffectByIndex(0).GetEffectValue(0) * useCnt * 60
    if awardSeconds <= 0:
        return
    PlayerGuaji.GiveGuajiAward(curPlayer, awardSeconds)
    ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, "GuajiAward")
    return True, useCnt