From 10795df7d96c7588b1a71808574837d0ae0064c4 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Fri, 28 Feb 2014 13:59:02 -0800 Subject: [PATCH] Renamed hardcoded project-dotas to brawlwoods. --- app/templates/play/ladder.jade | 2 +- app/views/play/level/control_bar_view.coffee | 4 ++-- app/views/play/level/tome/cast_button_view.coffee | 2 +- app/views/play/level/tome/tome_view.coffee | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/play/ladder.jade b/app/templates/play/ladder.jade index 66e05ff1b..1eb85a6f0 100644 --- a/app/templates/play/ladder.jade +++ b/app/templates/play/ladder.jade @@ -9,7 +9,7 @@ block content if !me.get('anonymous') //a(href="http://www.youtube.com/watch?v=IFvfZiJGDsw&list=HL1392928835&feature=mh_lolz").intro-button.btn.btn-primary.btn-lg Watch the Video - a(href="/play/level/ladder-tutorial").intro-button.btn.btn-primary.btn-lg Play the Tutorial + a(href="/play/level/brawlwood-tutorial").intro-button.btn.btn-primary.btn-lg Play the Tutorial hr diff --git a/app/views/play/level/control_bar_view.coffee b/app/views/play/level/control_bar_view.coffee index 685452d81..392eb4ebf 100644 --- a/app/views/play/level/control_bar_view.coffee +++ b/app/views/play/level/control_bar_view.coffee @@ -54,8 +54,8 @@ module.exports = class ControlBarView extends View c.ladderGame = @ladderGame c.homeLink = "/" levelID = @level.get('slug') - if levelID in ["project-dota", "brawlwood", "ladder-tutorial"] - levelID = 'project-dota' if levelID is 'ladder-tutorial' + if levelID in ["brawlwood", "brawlwood-tutorial"] + levelID = 'brawlwood' if levelID is 'brawlwood-tutorial' c.homeLink = "/play/ladder/" + levelID c diff --git a/app/views/play/level/tome/cast_button_view.coffee b/app/views/play/level/tome/cast_button_view.coffee index 3fbd1af6b..98c8ab3c8 100644 --- a/app/views/play/level/tome/cast_button_view.coffee +++ b/app/views/play/level/tome/cast_button_view.coffee @@ -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 ['project-dota', 'brawlwood', 'ladder-tutorial'] + if @levelID in ['brawlwood', 'brawlwood-tutorial'] delay = 90019001 @setAutocastDelay delay diff --git a/app/views/play/level/tome/tome_view.coffee b/app/views/play/level/tome/tome_view.coffee index 5b525ad39..11fad104b 100644 --- a/app/views/play/level/tome/tome_view.coffee +++ b/app/views/play/level/tome/tome_view.coffee @@ -129,7 +129,7 @@ module.exports = class TomeView extends View @thangSpells[thang.id].push spellKey unless method.cloneOf skipProtectAPI = true #@getQueryVariable("skip_protect_api") is "true" - skipFlow = @getQueryVariable("skip_flow") is "true" or @options.levelID is 'project-dota' + skipFlow = @getQueryVariable("skip_flow") is "true" or @options.levelID is 'brawlwood' spell = @spells[spellKey] = new Spell programmableMethod: method, spellKey: spellKey, pathComponents: pathPrefixComponents.concat(pathComponents), session: @options.session, supermodel: @supermodel, skipFlow: skipFlow, skipProtectAPI: skipProtectAPI, worker: @worker for thangID, spellKeys of @thangSpells thang = world.getThangByID thangID @@ -151,7 +151,7 @@ module.exports = class TomeView extends View @cast() cast: -> - if @options.levelID is 'project-dota' + if @options.levelID is 'brawlwood' # For performance reasons, only includeFlow on the currently Thang. for spellKey, spell of @spells for thangID, spellThang of spell.thangs