Merge pull request #421 from Aktanusa/fix/sellprice

Hotfix for #414
This commit is contained in:
DanielNoord authored and GitHub committed 2020-12-05 23:09:28 +01:00
commit 6c5821593f
2 files changed
+10 -6

No files matched your search

+5 -3
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.
+5 -3
View File
@@ -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.