Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def UpdateItems(self):
- #self.currentInfo = {}
- self.slots = [0] * (self.gridSize[0]*self.gridSize[1])
- mobVnum = nonplayer.GetVnumByVID(self.vid)
- mobDropTable = constInfo.mobDropTable
- table = mobDropTable.get(mobVnum)
- if (table):
- for _slot in xrange(self.gridSize[0] * self.gridSize[1]):
- self.gridSlot.ClearSlot(_slot)
- self.gridSlot.RefreshSlot()
- for data in table:
- #self.currentInfo[data[0]] = data[1]
- vnum = int(data[1])
- chat.AppendChat(chat.CHAT_TYPE_INFO, str(vnum))
- if vnum > 1:
- self.AddDropItem(vnum, 1)
- #for vnum in sorted(self.currentInfo.keys()):
- # self.AddDropItem(vnum, self.currentInfo[vnum])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement