Exemple #1
0
 def createToolTipContent(self, event, contentID):
     _logger.debug('DailyQuests::createToolTipContent')
     if contentID == R.views.lobby.missions.RerollTooltip():
         return RerollTooltip(self.__getCountdown(), getRerollTimeout())
     return RerollTooltip(
         self.__getCountdown(), getRerollTimeout(), True
     ) if contentID == R.views.lobby.missions.RerollTooltipWithCountdown(
     ) else super(DailyQuestsView, self).createToolTipContent(
         event=event, contentID=contentID)
Exemple #2
0
 def getNextAvailableRerollTimestamp(self):
     return self.getLastRerollTimestamp() + getRerollTimeout()
Exemple #3
0
 def _updateCountdownUntilNextReroll(self, model):
     countdown = self.__getCountdown()
     timeout = getRerollTimeout()
     with model.dailyQuests.transaction() as tx:
         tx.setRerollCountDown(countdown)
         tx.setRerollTimeout(timeout)