From f88223b994c3769d381f68d289ba1aec59b18378 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 13 Jul 2016 14:20:22 -0700 Subject: [PATCH] Fix spawning Hero kind ThangTypes in game-dev levels --- app/models/Level.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Level.coffee b/app/models/Level.coffee index 8df696750..ab02889d3 100644 --- a/app/models/Level.coffee +++ b/app/models/Level.coffee @@ -33,7 +33,7 @@ module.exports = class Level extends CocoModel for tt in supermodel.getModels ThangType if tmap[tt.get('original')] or (tt.get('kind') isnt 'Hero' and tt.get('kind')? and tt.get('components') and not tt.notInLevel) or - (tt.get('kind') is 'Hero' and ((@get('type', true) in ['course', 'course-ladder']) or tt.get('original') in sessionHeroes)) + (tt.get('kind') is 'Hero' and ((@get('type', true) in ['course', 'course-ladder', 'game-dev']) or tt.get('original') in sessionHeroes)) o.thangTypes.push (original: tt.get('original'), name: tt.get('name'), components: $.extend(true, [], tt.get('components'))) @sortThangComponents o.thangTypes, o.levelComponents, 'ThangType' @fillInDefaultComponentConfiguration o.thangTypes, o.levelComponents