mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Support for hiding optional bonus goals until they are achieved instead of until they are failed.
This commit is contained in:
parent
26f065370c
commit
ce6526863d
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ module.exports = class LevelGoalsView extends CocoView
|
|||
goals = []
|
||||
for goal in e.goals
|
||||
state = e.goalStates[goal.id]
|
||||
continue if goal.hiddenGoal and state.status isnt 'failure'
|
||||
if goal.hiddenGoal
|
||||
continue if goal.optional and state.status isnt 'success'
|
||||
continue if not goal.optional and state.status isnt 'failure'
|
||||
continue if goal.team and me.team isnt goal.team
|
||||
text = utils.i18n goal, 'name'
|
||||
if state.killed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue