Merge pull request #435 from DanielNoord/dispstats

Final work on initial rewrite of Disp.js
This commit is contained in:
DanielNoord
2020-12-07 21:26:40 +01:00
committed by GitHub
3 changed files with 786 additions and 636 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.