diff --git a/app/core/ParticleMan.coffee b/app/core/ParticleMan.coffee index 41be7829c..797e2d4ac 100644 --- a/app/core/ParticleMan.coffee +++ b/app/core/ParticleMan.coffee @@ -84,7 +84,6 @@ module.exports = ParticleMan = class ParticleMan extends CocoClass addEmitter: (x, y, kind="level-dungeon-premium") -> return if @unsupported - kind = kind.replace 'intro', 'dungeon' options = $.extend true, {}, particleKinds[kind] return console.error "Couldn't find particle configuration for", kind unless options.group options.group.texture = THREE.ImageUtils.loadTexture "/images/common/particles/#{options.group.texture}.png" diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index a551e2b22..031005a0d 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -404,7 +404,7 @@ module.exports = class CampaignView extends RootView @particleMan.removeEmitters() @particleMan.attach @$el.find('.map') for level in @campaign.renderedLevels ? {} - terrain = @terrain.replace('-branching-test', '').replace(/(game|web)-dev-\d/, 'forest') + terrain = @terrain.replace('-branching-test', '').replace(/(campaign-)?(game|web)-dev-\d/, 'forest').replace('intro', 'dungeon') particleKey = ['level', terrain] particleKey.push level.type if level.type and not (level.type in ['hero', 'course']) # Would use isType, but it's not a Level model particleKey.push 'replayable' if level.replayable