Merge branch 'master' into production

This commit is contained in:
Nick Winter 2015-01-30 22:06:38 -08:00
commit 61b8636ce5
2 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@ defaultTasks = [
'Publish.'
'Choose level options like required/restricted gear.'
'Create achievements, including unlocking next level.'
'Choose leaderboard score types.'
'Playtest with a slow/tough hero.'
'Playtest with a fast/weak hero.'

View file

@ -73,6 +73,7 @@ module.exports = class CastButtonView extends CocoView
@updateReplayability()
onDoneButtonClick: (e) ->
@options.session.recordScores @world.scores, @options.level
Backbone.Mediator.publish 'level:show-victory', showModal: true
onSpellChanged: (e) ->
@ -97,6 +98,7 @@ module.exports = class CastButtonView extends CocoView
@playSound 'cast-end', 0.5
@hasCastOnce = true
@updateCastButton()
@world = e.world
onNewGoalStates: (e) ->
winnable = e.overallStatus is 'success'