Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. import BigWorld
  2. from gui.shared.gui_items.processors.common import CustomizationsSeller
  3.  
  4. old_request = CustomizationsSeller._request
  5.  
  6. def new_request(self, callback):
  7.     print 'Changing the number of customization to sell to the maximum avaialble in invetory: ' + str(self.item.inventoryCount)
  8.     self.count = self.item.inventoryCount
  9.     print 'Make server request to sell customizations on item {}, count {}'.format(self.item, self.count)
  10.     old_request(self, callback)
  11.    
  12. CustomizationsSeller._request = new_request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement