Paying attention to level-specific Allied significantProperty overrides in Hero Placeholder replacement.

This commit is contained in:
Nick Winter 2014-11-04 16:09:29 -08:00
parent b776350e6a
commit 3a811a05fd

View file

@ -102,6 +102,8 @@ module.exports = class Level extends CocoModel
levelThangComponent.config.pos.y = placeholderConfig.pos.y
else if placeholderConfig.team # Pull in Allied team
levelThangComponent.config.team = placeholderConfig.team
else if placeholderConfig.significantProperty # For levels where we cheat on what counts as an enemy
levelThangComponent.config.significantProperty = placeholderConfig.significantProperty
else if placeholderConfig.programmableMethods
# Take the ThangType default Programmable and merge level-specific Component config into it
copy = $.extend true, {}, placeholderConfig