mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Unlocking all audition levels in Auditions campaign.
This commit is contained in:
parent
7af2997445
commit
7dd128780f
6 changed files with 6 additions and 6 deletions
|
@ -73,7 +73,7 @@ module.exports = class Thang
|
|||
for [prop, type] in props
|
||||
unless type in ThangState.trackedPropertyTypes
|
||||
# How should errors for busted Components work? We can't recover from this and run the world.
|
||||
throw new Error "Type #{type} for property #{prop} is not a trackable property type: #{trackedPropertyTypes}"
|
||||
throw new Error "Type #{type} for property #{prop} is not a trackable property type: #{ThangState.trackedPropertyTypes}"
|
||||
oldPropIndex = @trackedPropertiesKeys.indexOf prop
|
||||
if oldPropIndex is -1
|
||||
@trackedPropertiesKeys.push prop
|
||||
|
|
|
@ -9,7 +9,6 @@ module.exports = class Level extends CocoModel
|
|||
@levels:
|
||||
'dungeons-of-kithgard': '5411cb3769152f1707be029c'
|
||||
'defense-of-plainswood': '541b67f71ccc8eaae19f3c62'
|
||||
'the-mighty-sand-yak': '5480b9d01bf0b10000711c5f'
|
||||
urlRoot: '/db/level'
|
||||
|
||||
serialize: (supermodel, session, otherSession, cached=false) ->
|
||||
|
|
|
@ -200,5 +200,5 @@ module.exports = class LevelEditView extends RootView
|
|||
|
||||
incrementBuildTime: =>
|
||||
return if application.userIsIdle
|
||||
@levelBuildTime ?= @level.get('buildTime')
|
||||
@levelBuildTime ?= @level.get('buildTime') ? 0
|
||||
++@levelBuildTime
|
||||
|
|
|
@ -138,6 +138,7 @@ module.exports = class CampaignView extends RootView
|
|||
level.locked = not me.ownsLevel level.original
|
||||
level.locked = false if @levelStatusMap[level.slug] in ['started', 'complete']
|
||||
level.locked = false if @editorMode
|
||||
level.locked = false if @campaign.get('name') is 'Auditions'
|
||||
level.disabled = true if level.adminOnly and @levelStatusMap[level.slug] not in ['started', 'complete']
|
||||
level.color = 'rgb(255, 80, 60)'
|
||||
if level.requiresSubscription
|
||||
|
|
|
@ -88,7 +88,7 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
me.fetch cache: false unless me.loading
|
||||
|
||||
@readyToContinue = true if not @achievements.models.length
|
||||
|
||||
|
||||
# have to use a something resource because addModelResource doesn't handle models being upserted/fetched via POST like we're doing here
|
||||
@newEarnedAchievementsResource = @supermodel.addSomethingResource('earned achievements') if @newEarnedAchievements.length
|
||||
|
||||
|
@ -314,7 +314,7 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
AudioPlayer.playSound name, 1
|
||||
|
||||
getNextLevelCampaign: ->
|
||||
{'kithgard-gates': 'forest', 'siege-of-stonehold': 'desert'}[@level.get('slug')] or @level.get 'campaign' # Much easier to just keep this updated than to dynamically figure it out.
|
||||
{'kithgard-gates': 'forest', 'siege-of-stonehold': 'desert', 'clash-of-clones': 'mountain'}[@level.get('slug')] or @level.get 'campaign' # Much easier to just keep this updated than to dynamically figure it out.
|
||||
|
||||
getNextLevelLink: ->
|
||||
link = '/play'
|
||||
|
|
|
@ -126,7 +126,7 @@ exports.config =
|
|||
'vendor/scripts/jasmine-html.js'
|
||||
'vendor/scripts/jasmine-boot.js'
|
||||
'vendor/scripts/jasmine-mock-ajax.js'
|
||||
|
||||
|
||||
# vendor.js ordering
|
||||
'bower_components/jquery/dist/jquery.js'
|
||||
'bower_components/lodash/dist/lodash.js'
|
||||
|
|
Loading…
Reference in a new issue