Poodletooth-iLand/toontown/catalog/CatalogSurfaceItem.py

36 lines
872 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
import CatalogItem
import CatalogAtticItem
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
from CatalogSurfaceColors import *
STWallpaper = 0
STMoulding = 1
STFlooring = 2
STWainscoting = 3
NUM_ST_TYPES = 4
class CatalogSurfaceItem(CatalogAtticItem.CatalogAtticItem):
2015-03-09 12:33:29 -05:00
def makeNewItem(self):
CatalogAtticItem.CatalogAtticItem.makeNewItem(self)
2015-03-03 16:10:12 -06:00
def setPatternIndex(self, patternIndex):
self.patternIndex = patternIndex
def setColorIndex(self, colorIndex):
self.colorIndex = colorIndex
def saveHistory(self):
return 1
def recordPurchase(self, avatar, optional):
self.giftTag = None
house, retcode = self.getHouseInfo(avatar)
if retcode >= 0:
house.addWallpaper(self)
return retcode
2015-03-09 12:33:29 -05:00
def getDeliveryTime(self):
return 1