mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-24 21:13:35 -04:00
Recording scores even for non-real-time-submit levels.
This commit is contained in:
parent
022d31c19a
commit
e59f2bcc62
2 changed files with 3 additions and 0 deletions
app
|
@ -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.'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue