mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Fix #3843
This commit is contained in:
parent
c33f86768a
commit
2f220eb007
2 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue