コード例 #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)
コード例 #2
0
ファイル: context.py プロジェクト: jamesxia4/wot_client
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
コード例 #3
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get(
         'newbieBattlesCount', 0)
コード例 #4
0
ファイル: context.py プロジェクト: webiumsk/WOT-0.9.14-CT
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get('newbieBattlesCount', 0)
コード例 #5
0
ファイル: context.py プロジェクト: kblw/wot_client
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()