daily pastebin goal
68%
SHARE
TWEET

Untitled

Bambus3k Jul 18th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def UpdateItems(self):
  2.         #self.currentInfo = {}
  3.         self.slots = [0] * (self.gridSize[0]*self.gridSize[1])
  4.        
  5.         mobVnum = nonplayer.GetVnumByVID(self.vid)
  6.         mobDropTable = constInfo.mobDropTable
  7.  
  8.         table = mobDropTable.get(mobVnum)
  9.         if (table):
  10.             for _slot in xrange(self.gridSize[0] * self.gridSize[1]):
  11.                 self.gridSlot.ClearSlot(_slot)
  12.             self.gridSlot.RefreshSlot()
  13.            
  14.             for data in table:
  15.                 #self.currentInfo[data[0]] = data[1]
  16.                 vnum = int(data[1])
  17.                 if vnum > 1:
  18.                     self.AddDropItem(data[1], 1)
  19.                                
  20.             #for vnum in sorted(self.currentInfo.keys()):
  21.             #   self.AddDropItem(vnum, self.currentInfo[vnum])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top