Fixed adding custom programmableProperties to heroes for specific levels.

This commit is contained in:
Nick Winter 2015-03-26 22:29:21 -07:00
parent 4d1babb95e
commit 0e56117642

View file

@ -119,6 +119,8 @@ module.exports = class Level extends CocoModel
else if placeholderConfig.programmableMethods
# Take the ThangType default Programmable and merge level-specific Component config into it
copy = $.extend true, {}, placeholderConfig
programmableProperties = levelThangComponent.config?.programmableProperties ? []
copy.programmableProperties = _.union programmableProperties, copy.programmableProperties ? []
levelThangComponent.config = _.merge copy, levelThangComponent.config
else if placeholderConfig.extraHUDProperties
levelThangComponent.config ?= {}