This commit is contained in:
Daniel van Noord
2020-12-05 23:05:43 +01:00
parent f3ea56f34d
commit 1b88b70c72
2 changed files with 10 additions and 6 deletions

View File

@@ -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.