Fixed some level IDs.
This commit is contained in:
parent
45cd7e31ca
commit
6e47416d24
4 changed files with 5 additions and 2 deletions
app/views
editor/components
play/level
|
@ -18,6 +18,7 @@ module.exports = class ThangComponentEditView extends CocoView
|
||||||
@callback = options.callback
|
@callback = options.callback
|
||||||
|
|
||||||
render: =>
|
render: =>
|
||||||
|
return if @destroyed
|
||||||
for model in [Level, LevelComponent]
|
for model in [Level, LevelComponent]
|
||||||
(new model()).on 'schema-loaded', @render unless model.schema?.loaded
|
(new model()).on 'schema-loaded', @render unless model.schema?.loaded
|
||||||
if not @componentCollection
|
if not @componentCollection
|
||||||
|
@ -35,6 +36,7 @@ module.exports = class ThangComponentEditView extends CocoView
|
||||||
@buildAddComponentTreema()
|
@buildAddComponentTreema()
|
||||||
|
|
||||||
onComponentsSync: =>
|
onComponentsSync: =>
|
||||||
|
return if @destroyed
|
||||||
@supermodel.addCollection @componentCollection
|
@supermodel.addCollection @componentCollection
|
||||||
@render()
|
@render()
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ 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 ["brawlwood", "brawlwood-tutorial"]
|
if levelID in ["brawlwood", "brawlwood-tutorial", "dungeon-arena"]
|
||||||
levelID = 'brawlwood' if levelID is 'brawlwood-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 ['brawlwood', 'brawlwood-tutorial']
|
if @levelID in ['brawlwood', 'brawlwood-tutorial', 'dungeon-arena']
|
||||||
delay = 90019001
|
delay = 90019001
|
||||||
@setAutocastDelay delay
|
@setAutocastDelay delay
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,7 @@ module.exports = class TomeView extends View
|
||||||
unless method.cloneOf
|
unless method.cloneOf
|
||||||
skipProtectAPI = @getQueryVariable("skip_protect_api") is "true" or @options.levelID isnt 'brawlwood'
|
skipProtectAPI = @getQueryVariable("skip_protect_api") is "true" or @options.levelID isnt 'brawlwood'
|
||||||
skipProtectAPI = true # gah, it's so slow :( and somehow still affects simulation
|
skipProtectAPI = true # gah, it's so slow :( and somehow still affects simulation
|
||||||
|
#skipProtectAPI = false if @options.levelID is 'dungeon-arena'
|
||||||
skipFlow = @getQueryVariable("skip_flow") is "true" or @options.levelID is 'brawlwood'
|
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
|
||||||
|
|
Reference in a new issue