Added dungeon arena tutorial to a few hardcoded places.

This commit is contained in:
Scott Erickson 2014-03-07 15:16:13 -08:00
parent 990a2e34e5
commit 13b9a9cb58
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ module.exports = class ControlBarView extends View
c.ladderGame = @ladderGame
c.homeLink = "/"
levelID = @level.get('slug')
if levelID in ["brawlwood", "brawlwood-tutorial", "dungeon-arena"]
if levelID in ["brawlwood", "brawlwood-tutorial", "dungeon-arena", "dungeon-arena-tutorial"]
levelID = 'brawlwood' if levelID is 'brawlwood-tutorial'
c.homeLink = "/play/ladder/" + levelID
c

View file

@ -35,7 +35,7 @@ module.exports = class CastButtonView extends View
# TODO: use a User setting instead of localStorage
delay = localStorage.getItem 'autocastDelay'
delay ?= 5000
if @levelID in ['brawlwood', 'brawlwood-tutorial', 'dungeon-arena']
if @levelID in ['brawlwood', 'brawlwood-tutorial', 'dungeon-arena', 'dungeon-arena-tutorial']
delay = 90019001
@setAutocastDelay delay