5772 【后端】【1.5】物品拾取优化处理(只boss才记录掉落物品的NPCID)
| | |
| | | #===========================================================================================
|
| | |
|
| | | # 在地上添加物品(统一接口)
|
| | | dropNPCID = 0 if not curNPC.GetIsBoss() else curNPCID
|
| | | dropNPCID = 0 if not ChConfig.IsGameBoss(curNPC) else curNPCID
|
| | | specOwnerIDList = self.__AllKillerDict.keys() if (len(self.__AllKillerDict) > 1 or dropType == ChConfig.Def_NPCHurtTypeSpecial) else []
|
| | | curMapItem = ChItem.AddMapDropItem(posX, posY, curItem, ownerInfo=[dropType, ownerID, specOwnerIDList], dropNPCID=dropNPCID)
|
| | |
|