Exemple #1
0
 def triggerEffect(self):
     chapterID = self._tutorial.getVars().get(self.getTargetID())
     descriptor = getQuestsDescriptor()
     completed = game_vars.getTutorialsCompleted()
     chapterIdx = descriptor.getChapterIdx(chapterID)
     chaptersCount = descriptor.getNumberOfChapters()
     nextChapterID = self.__getOpenedChapterID(
         descriptor, completed, chapterIdx,
         chaptersCount) or self.__getOpenedChapterID(
             descriptor, completed, 0, chapterIdx)
     events_dispatcher.showTutorialTabInEventsWindow(nextChapterID)
Exemple #2
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
Exemple #3
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get(
         'newbieBattlesCount', 0)
Exemple #4
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get('newbieBattlesCount', 0)
Exemple #5
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()