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