| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_DelPackIndex, int(itemIndexs))
|
| | | return
|
| | |
|
| | | def PayAutoBuyItem(curPlayer, lackItemDict, priceType, costType=ChConfig.Def_Cost_Unknown, infoDict={}):
|
| | | def PayAutoBuyItem(curPlayer, lackItemDict, priceType, costType=ChConfig.Def_Cost_Unknown, infoDict={}, isCheck=False):
|
| | | ''' 支付自动购买物品消耗,从商城中购买,直接扣钱,不产生物品
|
| | | 一般用于基础商店自动购买物品,不考虑复杂的限购逻辑
|
| | | '''
|
| | |
| | | if totalMoney <= 0:
|
| | | return
|
| | |
|
| | | if isCheck:
|
| | | return PlayerControl.HaveMoney(curPlayer, priceType, totalMoney)
|
| | | |
| | | GameWorld.DebugLog("扣除自动购买消耗: lackItemDict=%s,priceType=%s,totalMoney=%s,costType=%s,addLimitCountInfo=%s"
|
| | | % (lackItemDict, priceType, totalMoney, costType, addLimitCountInfo), curPlayer.GetPlayerID())
|
| | |
|