Fix for challenge mode

This commit is contained in:
Daniel van Noord committed 2020-12-05 23:17:15 +01:00
1 parent b6370c1873
commit bbc2fdf29f
2 files changed
+21 -17

No files matched your search

+5 -1
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.