mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed missing colon in bg.coffee.
This commit is contained in:
parent
96e57a7520
commit
6ef9532b1d
2 changed files with 12 additions and 8 deletions
app
|
@ -149,7 +149,7 @@ module.exports = nativeDescription: "български език", englishDescri
|
|||
# body: "Body"
|
||||
version: "Версия"
|
||||
# commit_msg: "Commit Message"
|
||||
version_history "Предишни версии" # "Version History"
|
||||
version_history: "Предишни версии" # "Version History"
|
||||
# version_history_for: "Version History for: "
|
||||
# result: "Result"
|
||||
results: "Резултати"
|
||||
|
|
|
@ -68,13 +68,17 @@ module.exports = class Level extends CocoModel
|
|||
placeholders = {}
|
||||
placeholdersUsed = {}
|
||||
placeholderThangType = supermodel.getModelByOriginal(ThangType, levelThang.thangType)
|
||||
for defaultPlaceholderComponent in placeholderThangType.get('components')
|
||||
placeholders[defaultPlaceholderComponent.original] = defaultPlaceholderComponent
|
||||
for thangComponent in levelThang.components
|
||||
placeholders[thangComponent.original] = thangComponent
|
||||
levelThang.components = [] # We have stored the placeholder values, so we can inherit everything else.
|
||||
heroThangType = session?.get('heroConfig')?.thangType
|
||||
levelThang.thangType = heroThangType if heroThangType
|
||||
unless placeholderThangType
|
||||
console.error "Couldn't find placeholder ThangType for the hero!"
|
||||
isHero = false
|
||||
else
|
||||
for defaultPlaceholderComponent in placeholderThangType.get('components')
|
||||
placeholders[defaultPlaceholderComponent.original] = defaultPlaceholderComponent
|
||||
for thangComponent in levelThang.components
|
||||
placeholders[thangComponent.original] = thangComponent
|
||||
levelThang.components = [] # We have stored the placeholder values, so we can inherit everything else.
|
||||
heroThangType = session?.get('heroConfig')?.thangType
|
||||
levelThang.thangType = heroThangType if heroThangType
|
||||
|
||||
thangType = supermodel.getModelByOriginal(ThangType, levelThang.thangType, (m) -> m.get('components')?)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue