diff --git a/app/schemas/models/level.coffee b/app/schemas/models/level.coffee index b7c7b9325..798ec8ad9 100644 --- a/app/schemas/models/level.coffee +++ b/app/schemas/models/level.coffee @@ -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.' diff --git a/app/views/play/level/tome/CastButtonView.coffee b/app/views/play/level/tome/CastButtonView.coffee index cc61c1bd1..9b4d0a480 100644 --- a/app/views/play/level/tome/CastButtonView.coffee +++ b/app/views/play/level/tome/CastButtonView.coffee @@ -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'