Skip to content

Commit

Permalink
Fix accidental global leakage (#250)
Browse files Browse the repository at this point in the history
* Fix accidental global leakage
  • Loading branch information
CraftSpider authored Nov 23, 2020
1 parent 011698a commit deb309c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CookieMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3520,7 +3520,7 @@ CM.Sim.CalculateGains = function() {
mult *= CM.Sim.getCPSBuffMult();

// Pointless?
name = Game.bakeryName.toLowerCase();
var name = Game.bakeryName.toLowerCase();
if (name == 'orteil') mult *= 0.99;
else if (name == 'ortiel') mult *= 0.98; //or so help me

Expand Down
2 changes: 1 addition & 1 deletion src/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ CM.Sim.CalculateGains = function() {
mult *= CM.Sim.getCPSBuffMult();

// Pointless?
name = Game.bakeryName.toLowerCase();
var name = Game.bakeryName.toLowerCase();
if (name == 'orteil') mult *= 0.99;
else if (name == 'ortiel') mult *= 0.98; //or so help me

Expand Down

0 comments on commit deb309c

Please sign in to comment.