def undecorate(self): if (self.__checkHoodValidity() or self.__checkStreetValidity()) and hasattr( base.cr.playGame.hood, 'sky') and base.cr.playGame.hood.sky: postShow = Sequence( Parallel( LerpColorScaleInterval(base.cr.playGame.hood.sky, 1.5, Vec4(1, 1, 1, 1)), LerpColorScaleInterval(base.cr.playGame.hood.loader.geom, 2.5, Vec4(1, 1, 1, 1))), Func(self.__stopSpookySky)) postShow.start() distributedEstate = base.cr.doFind('DistributedEstate') if distributedEstate: distributedEstate.unloadWitch() holidayIds = base.cr.newsManager.getDecorationHolidayId() if len(holidayIds) > 0: self.decorate() return storageFile = base.cr.playGame.hood.storageDNAFile if storageFile: loadDNAFile(self.dnaStore, storageFile, CSDefault) self.swapIval = self.getSwapVisibleIval() if self.swapIval: self.swapIval.start()
def undecorate(self): holidayIds = base.cr.newsManager.getDecorationHolidayId() if len(holidayIds) > 0: self.decorate() return storageFile = base.cr.playGame.hood.storageDNAFile if storageFile: loadDNAFile(self.dnaStore, storageFile, CSDefault) self.swapIval = self.getSwapVisibleIval() if self.swapIval: self.swapIval.start()
def undecorate(self): if base.config.GetBool('want-crashedLeaderBoard-Smoke', 1): self.stopSmokeEffect() holidayIds = base.cr.newsManager.getDecorationHolidayId() if len(holidayIds) > 0: self.decorate() return storageFile = base.cr.playGame.hood.storageDNAFile if storageFile: loadDNAFile(self.dnaStore, storageFile, CSDefault) self.swapIval = self.getSwapVisibleIval() if self.swapIval: self.swapIval.start()
def updateHoodDNAStore(self): hood = base.cr.playGame.hood holidayIds = base.cr.newsManager.getDecorationHolidayId() for holiday in holidayIds: for storageFile in hood.holidayStorageDNADict.get(holiday, []): loadDNAFile(self.dnaStore, storageFile, CSDefault)