示例#1
0
    def getOutfitsInfo(self):
        outfitsInfo = {}
        for season in SEASONS_ORDER:
            outfitsInfo[season] = OutfitInfo(self._originalOutfits[season],
                                             self._modifiedOutfits[season])

        return outfitsInfo
示例#2
0
    def getOutfitsInfo(self):
        outfitsInfo = {}
        for season in SeasonType.COMMON_SEASONS:
            outfitsInfo[season] = OutfitInfo(self._originalOutfits[season],
                                             self._modifiedOutfits[season])

        return outfitsInfo
示例#3
0
 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)
示例#4
0
 def getStyleInfo(self):
     return OutfitInfo(self._originalStyle, self._modifiedStyle)
示例#5
0
 def getItemInventoryCount(self, item):
     return (getItemInventoryCount(item, self.getOutfitsInfo()) if self._mode == C11nMode.CUSTOM else
             getStyleInventoryCount(item, OutfitInfo(self.__originalStyle, self.__modifiedStyle)))
示例#6
0
 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))