Skip to content

Commit

Permalink
Add blue flags to unfinished assessment levels
Browse files Browse the repository at this point in the history
  • Loading branch information
sderickson committed Jan 18, 2018
1 parent 6ba9d8b commit beea0a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/templates/play/campaign-view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ if showGameDevAlert
else
img.item-portrait.item-portrait-on-banner(src="/file/db/thang.type/#{level.unlocksItem}/portrait.png")
img.treasure-chest(src="/images/pages/play/#{level.requiresSubscription?'silver':'bronze'}-chest.png")
else if levelStatusMap[level.slug] !== 'complete' && level.assessment
img.banner(src="/images/pages/play/level-banner-unstarted-subscriber.png")
else if levelStatusMap[level.slug] === 'started'
img.banner(src="/images/pages/play/level-banner-started.png")
else if levelStatusMap[level.slug] !== 'complete'
Expand Down
4 changes: 3 additions & 1 deletion app/views/play/CampaignView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1268,13 +1268,15 @@ module.exports = class CampaignView extends RootView
level.locked = found
level.hidden = false

level.noFlag = !level.next
if level.locked
level.color = 'rgb(193, 193, 193)'
else if level.practice
level.color = 'rgb(45, 145, 81)'
else if level.assessment
level.color = 'rgb(196, 29, 176)'
level.noFlag = !level.next
if playerState isnt 'complete'
level.noFlag = false
level.unlocksHero = false
level.unlocksItem = false
prev = level
Expand Down

0 comments on commit beea0a7

Please sign in to comment.