| | |
| | | # 满了不再给物品
|
| | | return
|
| | |
|
| | | dropIDCountDict, dropIDBindDict, money = {}, {}, 0
|
| | | dropIDCountDict, auctionIDList, money = {}, [], 0
|
| | | dropRet = NPCCommon.GetNPCDropInfoTJG(curPlayer, curPlayer.GetMapID(), npcID, killCnt)
|
| | | if dropRet:
|
| | | dropIDCountDict, dropIDBindDict, money = dropRet
|
| | | dropIDCountDict, auctionIDList, money = dropRet
|
| | | # 1. 出售为铜钱 2.放入背包 3.满则不继续给物品
|
| | | for itemID, dropCount in dropIDCountDict.items():
|
| | | if not ItemCommon.CheckPackHasSpace(curPlayer, IPY_GameWorld.rptItem):
|
| | |
| | | if not curItemData:
|
| | | continue
|
| | |
|
| | | # 掉落绑定, 默认绑定
|
| | | isDropBind = dropIDBindDict.get(itemID, 1)
|
| | | isAuctionItem = itemID in auctionIDList
|
| | | itemControl = ItemControler.PlayerItemControler(curPlayer)
|
| | |
|
| | | ## 装备物品 白蓝直接换算铜钱
|
| | |
| | | ## 装备一件件给
|
| | | if ItemCommon.GetIsEquip(curItemData):
|
| | | for _ in xrange(dropCount):
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, 1, False)
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, 1, isAuctionItem)
|
| | | if not curItem:
|
| | | continue
|
| | | if not itemControl.PutInItem(IPY_GameWorld.rptItem, curItem, event=[ChConfig.ItemGive_TJGDropItem, False, {}]):
|
| | |
| | | #记录紫橙装数量用于通知
|
| | | NoteEquip(curPlayer, curItemData.GetItemColor())
|
| | | else:
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, dropCount, False)
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, dropCount, isAuctionItem)
|
| | | if not curItem:
|
| | | continue
|
| | |
|