| | |
| | | randList = __GetDropWordsItemRateList(curPlayer, curNPC, actInfo)
|
| | | if not randList:
|
| | | continue
|
| | | |
| | | if isinstance(randList, dict):
|
| | | for dropItemID, dropCountList in randList.items():
|
| | | itemCount = GameWorld.GetResultByRandomList(dropCountList)
|
| | | if itemCount <= 0:
|
| | | continue
|
| | | GameWorld.DebugLog(" 集字活动掉落物品 dict! actNum=%s,npcID=%s,dropItemID=%s,itemCount=%s" % (actNum, curNPC.GetNPCID(), dropItemID, itemCount))
|
| | | |
| | | isAuctionItem = 0 # 非拍品
|
| | | ItemControler.GivePlayerItem(curPlayer, dropItemID, itemCount, isAuctionItem, [IPY_GameWorld.rptItem])
|
| | | continue
|
| | | |
| | | dropItemID = GameWorld.GetResultByRandomList(randList)
|
| | | if not dropItemID:
|
| | | continue
|
| | |
| | | if not dropRateList:
|
| | | continue
|
| | |
|
| | | if not isinstance(dropRateList, list):
|
| | | continue
|
| | | |
| | | preRate = 0
|
| | | maxRate = dropRateList[-1][0]
|
| | | for rateInfo in dropRateList:
|