No longer display star on adventurer levels and make all adventurer levels purple

This commit is contained in:
Josh Callebaut 2016-08-24 14:35:26 -07:00
parent b175c02714
commit 18e985a845
2 changed files with 3 additions and 1 deletions

View file

@ -41,7 +41,7 @@ if view.showAds()
a(href=level.type == 'hero' ? '#' : level.disabled ? "/play" : "/play/#{level.levelPath || 'level'}/#{level.slug}", disabled=level.disabled, data-level-slug=level.slug, data-level-path=level.levelPath || 'level', data-level-name=level.name)
if level.slug == 'lost-viking'
img.star(src="/file/db/thang.type/5441c3144e9aeb727cc97111/portrait.png")
else if level.requiresSubscription
else if level.requiresSubscription && !level.adventurer
img.star(src="/images/pages/play/star.png")
if levelStatusMap[level.slug] === 'complete'
img.banner(src="/images/pages/play/level-banner-complete.png")

View file

@ -292,6 +292,8 @@ module.exports = class CampaignView extends RootView
level.color = 'rgb(255, 80, 60)'
if level.requiresSubscription
level.color = 'rgb(80, 130, 200)'
if level.adventurer
level.color = 'rgb(200, 80, 200)'
if unlocksHero = _.find(level.rewards, 'hero')?.hero
level.unlocksHero = unlocksHero
if level.unlocksHero