Added a couple levels' next-campaign links.

This commit is contained in:
Nick Winter 2015-06-14 11:07:21 -07:00
parent b1680f500b
commit 7d637a0a27
2 changed files with 2 additions and 2 deletions

View file

@ -352,7 +352,7 @@ module.exports = class CampaignView extends RootView
particleKey.push level.type if level.type and level.type isnt 'hero' particleKey.push level.type if level.type and level.type isnt 'hero'
particleKey.push 'replayable' if level.replayable particleKey.push 'replayable' if level.replayable
particleKey.push 'premium' if level.requiresSubscription particleKey.push 'premium' if level.requiresSubscription
particleKey.push 'gate' if level.slug in ['kithgard-gates', 'siege-of-stonehold', 'clash-of-clones'] particleKey.push 'gate' if level.slug in ['kithgard-gates', 'siege-of-stonehold', 'clash-of-clones', 'summits-gate']
particleKey.push 'hero' if level.unlocksHero and not level.unlockedHero particleKey.push 'hero' if level.unlocksHero and not level.unlockedHero
particleKey.push 'item' if level.slug is 'apocalypse' # TODO: generalize particleKey.push 'item' if level.slug is 'apocalypse' # TODO: generalize
continue if particleKey.length is 2 # Don't show basic levels continue if particleKey.length is 2 # Don't show basic levels

View file

@ -329,7 +329,7 @@ module.exports = class HeroVictoryModal extends ModalView
AudioPlayer.playSound name, 1 AudioPlayer.playSound name, 1
getNextLevelCampaign: -> getNextLevelCampaign: ->
{'kithgard-gates': 'forest', 'siege-of-stonehold': 'desert', 'clash-of-clones': 'mountain'}[@level.get('slug')] or @level.get 'campaign' # Much easier to just keep this updated than to dynamically figure it out. {'kithgard-gates': 'forest', 'kithgard-mastery': 'forest', 'siege-of-stonehold': 'desert', 'clash-of-clones': 'mountain'}[@level.get('slug')] or @level.get 'campaign' # Much easier to just keep this updated than to dynamically figure it out.
getNextLevelLink: -> getNextLevelLink: ->
link = '/play' link = '/play'