def getOutfitsInfo(self): outfitsInfo = {} for season in SEASONS_ORDER: outfitsInfo[season] = OutfitInfo(self._originalOutfits[season], self._modifiedOutfits[season]) return outfitsInfo
def getOutfitsInfo(self): outfitsInfo = {} for season in SeasonType.COMMON_SEASONS: outfitsInfo[season] = OutfitInfo(self._originalOutfits[season], self._modifiedOutfits[season]) return outfitsInfo
def getPurchaseItems(self): import inspect if not self.isBuy and inspect.stack()[1][0].f_code.co_name == 'buildList': return self.getModdedPurchaseItems() if self._lastTab[CSMode.BUY] != C11nTabs.STYLE: currentSeason = self.currentSeason order = [currentSeason] + [s for s in SEASONS_ORDER if s != currentSeason] return getCustomPurchaseItems(self.getOutfitsInfo(), order) return getStylePurchaseItems(OutfitInfo(self.__originalStyle, self.__modifiedStyle), buyMore=self.__prolongStyleRent)
def getStyleInfo(self): return OutfitInfo(self._originalStyle, self._modifiedStyle)
def getItemInventoryCount(self, item): return (getItemInventoryCount(item, self.getOutfitsInfo()) if self._mode == C11nMode.CUSTOM else getStyleInventoryCount(item, OutfitInfo(self.__originalStyle, self.__modifiedStyle)))
def getModdedPurchaseItems(self): if self._lastTab[CSMode.INSTALL] != C11nTabs.STYLE: currentSeason = self.currentSeason order = [currentSeason] + [s for s in SEASONS_ORDER if s != currentSeason] return getCustomPurchaseItems(self.getModdedOutfitsInfo(), order) return getStylePurchaseItems(OutfitInfo(self._originalModdedStyle, self._modifiedModdedStyle))