fix(magic-potions): Correct potion list merge

This commit is contained in:
Sabe Jones
2015-10-01 16:53:11 -04:00
parent 8e69681718
commit 22c69c7e2f

View File

@@ -1182,8 +1182,9 @@ _.each api.dropHatchingPotions, (pot,key) ->
_.each api.premiumHatchingPotions, (pot,key) -> _.each api.premiumHatchingPotions, (pot,key) ->
_.defaults pot, {key, value: 2, notes: t('hatchingPotionNotes', {potText: pot.text}), premium: true, limited: false, canBuy: (()->true)} _.defaults pot, {key, value: 2, notes: t('hatchingPotionNotes', {potText: pot.text}), premium: true, limited: false, canBuy: (()->true)}
api.hatchingPotions = _.merge(api.dropHatchingPotions, api.premiumHatchingPotions) api.hatchingPotions = {}
_.merge(api.hatchingPotions, api.dropHatchingPotions)
_.merge(api.hatchingPotions, api.premiumHatchingPotions)
api.pets = _.transform api.dropEggs, (m, egg) -> api.pets = _.transform api.dropEggs, (m, egg) ->
_.defaults m, _.transform api.hatchingPotions, (m2, pot) -> _.defaults m, _.transform api.hatchingPotions, (m2, pot) ->