4881 【主干】【长尾】【BT】符印背包空间不足符印精华领取没有发放。(修改为放入背包支持使用物品获得)
1个文件已修改
1个文件已添加
38 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
@@ -706,6 +706,7 @@
                           ChConfig.Def_ItemType_HPMP:"Item_Add_HPMP",                # 补红补篮药剂
                           ChConfig.Def_ItemType_AddExp:"Item_AddExp",         # 给经验道具
                           ChConfig.Def_ItemType_GiveMoney:"Item_GiveMoney",         # 给人物金钱
                           ChConfig.Def_ItemType_RuneExp:"Item_RuneExp",         # 给人物符印精华
                           ChConfig.Def_ItemType_AddLimitBuff:"Item_Add_LimitingBuff",         # 给限时buff物品
                           ChConfig.Def_ItemType_AddLimitBuff2:"Item_Add_LimitingBuff",         # 给限时buff物品
                           ChConfig.Def_ItemType_AddExpBuff:"Item_Add_LimitingBuff",         # 给限时buff物品
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py
New file
@@ -0,0 +1,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