mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Paying attention to level-specific Allied significantProperty overrides in Hero Placeholder replacement.
This commit is contained in:
parent
b776350e6a
commit
3a811a05fd
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue