Fix for challenge mode

This commit is contained in:
Daniel van Noord
2020-12-05 23:13:53 +01:00
parent b6370c1873
commit bbc2fdf29f
2 changed files with 21 additions and 17 deletions

View File

@@ -171,7 +171,11 @@ CM.Sim.InitialBuildingData = function(buildingName) {
* 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.