From 7d637a0a27a393cd6c399fbeb068e08e11faa2ec Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Sun, 14 Jun 2015 11:07:21 -0700 Subject: [PATCH] Added a couple levels' next-campaign links. --- app/views/play/CampaignView.coffee | 2 +- app/views/play/level/modal/HeroVictoryModal.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index 54f4d35ca..d2629223b 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -352,7 +352,7 @@ module.exports = class CampaignView extends RootView particleKey.push level.type if level.type and level.type isnt 'hero' particleKey.push 'replayable' if level.replayable 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 'item' if level.slug is 'apocalypse' # TODO: generalize continue if particleKey.length is 2 # Don't show basic levels diff --git a/app/views/play/level/modal/HeroVictoryModal.coffee b/app/views/play/level/modal/HeroVictoryModal.coffee index c5a644044..086548fc4 100644 --- a/app/views/play/level/modal/HeroVictoryModal.coffee +++ b/app/views/play/level/modal/HeroVictoryModal.coffee @@ -329,7 +329,7 @@ module.exports = class HeroVictoryModal extends ModalView AudioPlayer.playSound name, 1 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: -> link = '/play'