示例#1
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get(
         'newbieBattlesCount', 0)
示例#2
0
 def isEnabled(self):
     isTutorialEnabled = IS_TUTORIAL_ENABLED
     serverSettings = getServerSettings()
     if 'isTutorialEnabled' in serverSettings:
         isTutorialEnabled = serverSettings['isTutorialEnabled']
     return isTutorialEnabled
示例#3
0
 def prepare(self, ctx):
     ctx.bonusCompleted = game_vars.getTutorialsCompleted()
     ctx.battlesCount = game_vars.getRandomBattlesCount()
     ctx.newbieBattlesCount = getServerSettings().get('newbieBattlesCount', 0)
示例#4
0
 def isEnabled(self):
     isTutorialEnabled = IS_TUTORIAL_ENABLED
     serverSettings = getServerSettings()
     if 'isTutorialEnabled' in serverSettings:
         isTutorialEnabled = serverSettings['isTutorialEnabled']
     return isTutorialEnabled