mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed bug with heroes not loading the proper amount of gems.
This commit is contained in:
parent
7173fd367f
commit
929455b234
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ module.exports = class HeroVictoryModal extends ModalView
|
||||||
for thangTypeOriginal in thangTypeOriginals
|
for thangTypeOriginal in thangTypeOriginals
|
||||||
thangType = new ThangType()
|
thangType = new ThangType()
|
||||||
thangType.url = "/db/thang.type/#{thangTypeOriginal}/version"
|
thangType.url = "/db/thang.type/#{thangTypeOriginal}/version"
|
||||||
thangType.project = ['original', 'rasterIcon', 'name', 'soundTriggers', 'i18n']
|
#thangType.project = ['original', 'rasterIcon', 'name', 'soundTriggers', 'i18n'] # This is what we need, but the PlayHeroesModal needs more, and so we load more to fill up the supermodel.
|
||||||
|
thangType.project = ['original', 'rasterIcon', 'name', 'slug', 'soundTriggers', 'featureImages', 'gems', 'heroClass', 'description', 'components', 'extendedName', 'unlockLevelName', 'i18n']
|
||||||
@thangTypes[thangTypeOriginal] = @supermodel.loadModel(thangType, 'thang').model
|
@thangTypes[thangTypeOriginal] = @supermodel.loadModel(thangType, 'thang').model
|
||||||
|
|
||||||
@newEarnedAchievements = []
|
@newEarnedAchievements = []
|
||||||
|
|
Loading…
Reference in a new issue