mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
31 lines
735 B
Python
31 lines
735 B
Python
|
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):
|
||
|
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
|