diff --git a/CookieMonster.js b/CookieMonster.js index 0e38cb5..fc7c8e6 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -4007,11 +4007,13 @@ CM.Sim.InitialBuildingData = function(buildingName) { } /* Similar to the previous function, but for upgrades. - * Note: currently no static data is used by Cookie Monster, - * so this function just returns an empty object. */ CM.Sim.InitUpgrade = function(upgradeName) { - return {}; + var me = Game.Upgrades[upgradeName]; + var you = {}; + you.pool = me.pool; + you.name = me.name; + return you; } /* Similar to the previous function, but for achievements. diff --git a/src/Sim.js b/src/Sim.js index 09b79ad..1f01194 100644 --- a/src/Sim.js +++ b/src/Sim.js @@ -167,11 +167,13 @@ CM.Sim.InitialBuildingData = function(buildingName) { } /* Similar to the previous function, but for upgrades. - * Note: currently no static data is used by Cookie Monster, - * so this function just returns an empty object. */ CM.Sim.InitUpgrade = function(upgradeName) { - return {}; + var me = Game.Upgrades[upgradeName]; + var you = {}; + you.pool = me.pool; + you.name = me.name; + return you; } /* Similar to the previous function, but for achievements.