mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
61b8636ce5
2 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue