Fixed negative PP #406

This commit is contained in:
Daniel van Noord
2020-12-04 20:50:20 +01:00
parent 8bbec4c8a4
commit f65749db50
2 changed files with 8 additions and 8 deletions

View File

@@ -3951,11 +3951,11 @@ CM.Sim.hasGod=function(what) {
CM.Sim.eff = function(name) {
if (typeof CM.Sim.effs[name]==='undefined') {
CM.Sim.effs[name] = 1
return CM.Sim.effs[name]
CM.Sim.effs[name] = 1;
return CM.Sim.effs[name];
}
else {
return Game.effs[name];
return CM.Sim.effs[name];
}
}
@@ -4089,7 +4089,7 @@ CM.Sim.CalculateGains = function() {
var mult = 1;
// Include minigame effects
var effs={};
for (var i in CM.Cache.Objects) {
for (var i in Game.Objects) {
// TODO Store minigames and effects in Cache
// Include possibility of new/modded building and new/modded minigames
if (CM.Sim.Objects[i].minigameLoaded && CM.Sim.Objects[i].minigame.effs) {