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
36
37
| #!/usr/bin/python
| # -*- coding: GBK -*-
| #-------------------------------------------------------------------------------
| #
| ##@package UseItem.Item_RuneExp
| #
| # @todo:¸ø·ûÓ¡¾«»ª
| # @author hxp
| # @date 2020-12-04
| # @version 1.0
| #
| # ÏêϸÃèÊö: ¸ø·ûÓ¡¾«»ª
| #
| #-------------------------------------------------------------------------------
| #"""Version = 2020-12-04 16:30"""
| #-------------------------------------------------------------------------------
|
| import ChConfig
| import PlayerControl
| import ShareDefine
| import ItemCommon
|
| def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
| ##ÅúÁ¿Ê¹ÓÃÎïÆ·
| curEff = curRoleItem.GetEffectByIndex(0)
| totalRuneExp = curEff.GetEffectValue(0) * useCnt
| if not totalRuneExp:
| return
|
| ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_Rune)
|
| addDataDict = {"totalRuneExp":totalRuneExp, "useCnt":useCnt}
| PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_Rune, totalRuneExp,
| ChConfig.Def_GiveMoney_UseItem, addDataDict)
|
| return True, useCnt
|
|
|