mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
Renamed hardcoded project-dotas to brawlwoods.
This commit is contained in:
parent
2894d4f39c
commit
10795df7d9
4 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ block content
|
||||||
if !me.get('anonymous')
|
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="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
|
hr
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,8 @@ module.exports = class ControlBarView extends View
|
||||||
c.ladderGame = @ladderGame
|
c.ladderGame = @ladderGame
|
||||||
c.homeLink = "/"
|
c.homeLink = "/"
|
||||||
levelID = @level.get('slug')
|
levelID = @level.get('slug')
|
||||||
if levelID in ["project-dota", "brawlwood", "ladder-tutorial"]
|
if levelID in ["brawlwood", "brawlwood-tutorial"]
|
||||||
levelID = 'project-dota' if levelID is 'ladder-tutorial'
|
levelID = 'brawlwood' if levelID is 'brawlwood-tutorial'
|
||||||
c.homeLink = "/play/ladder/" + levelID
|
c.homeLink = "/play/ladder/" + levelID
|
||||||
c
|
c
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ module.exports = class CastButtonView extends View
|
||||||
# TODO: use a User setting instead of localStorage
|
# TODO: use a User setting instead of localStorage
|
||||||
delay = localStorage.getItem 'autocastDelay'
|
delay = localStorage.getItem 'autocastDelay'
|
||||||
delay ?= 5000
|
delay ?= 5000
|
||||||
if @levelID in ['project-dota', 'brawlwood', 'ladder-tutorial']
|
if @levelID in ['brawlwood', 'brawlwood-tutorial']
|
||||||
delay = 90019001
|
delay = 90019001
|
||||||
@setAutocastDelay delay
|
@setAutocastDelay delay
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ module.exports = class TomeView extends View
|
||||||
@thangSpells[thang.id].push spellKey
|
@thangSpells[thang.id].push spellKey
|
||||||
unless method.cloneOf
|
unless method.cloneOf
|
||||||
skipProtectAPI = true #@getQueryVariable("skip_protect_api") is "true"
|
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
|
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
|
for thangID, spellKeys of @thangSpells
|
||||||
thang = world.getThangByID thangID
|
thang = world.getThangByID thangID
|
||||||
|
@ -151,7 +151,7 @@ module.exports = class TomeView extends View
|
||||||
@cast()
|
@cast()
|
||||||
|
|
||||||
cast: ->
|
cast: ->
|
||||||
if @options.levelID is 'project-dota'
|
if @options.levelID is 'brawlwood'
|
||||||
# For performance reasons, only includeFlow on the currently Thang.
|
# For performance reasons, only includeFlow on the currently Thang.
|
||||||
for spellKey, spell of @spells
|
for spellKey, spell of @spells
|
||||||
for thangID, spellThang of spell.thangs
|
for thangID, spellThang of spell.thangs
|
||||||
|
|
Loading…
Reference in a new issue