9300 【BT5】【主干】【后端】新增:法器进阶(支持自动购买限购物品 主干冲突补提交)
| | |
| | | def GetShopItemPrice(itemID, priceType):
|
| | | ''' 获取商城物品对应价格 '''
|
| | | # 系统固定商店类型: 仙玉(2-常用道具,3-成长变强),绑玉(4-绑玉商城)
|
| | | ipyData = GetShopItemPriceIpyData(itemID, priceType)
|
| | | if not ipyData:
|
| | | return 0
|
| | | return ipyData.GetMoneyNum()
|
| | |
|
| | | def GetShopItemPriceIpyData(itemID, priceType):
|
| | | ''' 获取商城物品对应价格 '''
|
| | | # 系统固定商店类型: 仙玉(2-常用道具,3-成长变强),绑玉(4-绑玉商城)
|
| | | priceTypeShopTypeDict = {IPY_GameWorld.TYPE_Price_Gold_Money:[1, 2, 3],
|
| | | IPY_GameWorld.TYPE_Price_Gold_Paper:[5, 4],
|
| | | }
|
| | |
| | | else:
|
| | | ipyData = IpyGameDataPY.GetIpyGameDataByCondition("Store", {"ItemID":itemID, "MoneyType":priceType}, isLogNone=False)
|
| | | if not ipyData:
|
| | | return 0
|
| | | return ipyData.GetMoneyNum()
|
| | | GameWorld.ErrLog("找不到对应货币类型商店出售该物品! itemID=%s,priceType=%s" % (itemID, priceType))
|
| | | return ipyData
|
| | |
|
| | | def DelCostItem(curPlayer, itemPack, delInfoDict, delEvent="ReduceItem"):
|
| | | ## 扣除消耗材料, 配置函数使用 GetCostItemIndexList, GetAutoBuyItemNeedGold, DelCostItem
|