diff --git a/CookieMonster.js b/CookieMonster.js index d8a7445..f056e5f 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -1874,11 +1874,11 @@ CM.Disp.UpdateBotTimerBarPosition = function() { */ CM.Disp.UpdateBuildings = function() { if (Game.buyMode == 1) { + var target = ''; + if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10'; + else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100'; + else target = 'Objects'; if (CM.Options.BuildColor == 1) { - var target = ''; - if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10'; - else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100'; - else target = 'Objects'; for (var i in CM.Cache[target]) { l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color]; } diff --git a/src/Disp.js b/src/Disp.js index f55a4e7..1288e30 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -691,11 +691,11 @@ CM.Disp.UpdateBotTimerBarPosition = function() { */ CM.Disp.UpdateBuildings = function() { if (Game.buyMode == 1) { + var target = ''; + if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10'; + else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100'; + else target = 'Objects'; if (CM.Options.BuildColor == 1) { - var target = ''; - if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10'; - else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100'; - else target = 'Objects'; for (var i in CM.Cache[target]) { l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color]; }