Do show bonus goals in course mode if you actually achieve them

This commit is contained in:
Nick Winter 2016-06-24 08:50:38 -07:00
parent f1d17ebcba
commit 7c876401bc

View file

@ -49,7 +49,7 @@ module.exports = class LevelGoalsView extends CocoView
goals = []
for goal in e.goals
state = e.goalStates[goal.id]
continue if goal.optional and @level.get('type', true) is 'course'
continue if goal.optional and @level.get('type', true) is 'course' and state.status isnt 'success'
if goal.hiddenGoal
continue if goal.optional and state.status isnt 'success'
continue if not goal.optional and state.status isnt 'failure'