This commit is contained in:
Daniel van Noord
2020-12-04 22:50:41 +01:00
parent 9ce42f2f3c
commit f3ea56f34d
2 changed files with 10 additions and 6 deletions

View File

@@ -1875,9 +1875,7 @@ CM.Disp.CheckGoldenCookie = function() {
CM.Disp.PlaySound(CM.Config.GCSoundURL, 'GCSound', 'GCVolume');
CM.Disp.Notification('GCNotification', "Golden Cookie Spawned", "A Golden Cookie has spawned. Click it now!")
}
CM.Disp.lastSpawnedGoldenCookieState = CM.Disp.currSpawnedGoldenCookieState
if (CM.Disp.currSpawnedGoldenCookieState == 0) CM.Disp.spawnedGoldenShimmer = 0;
CM.Disp.UpdateFavicon();
if (CM.Config.GCTimer == 1) {
for (var i in Game.shimmers) {
@@ -1892,6 +1890,10 @@ CM.Disp.CheckGoldenCookie = function() {
CM.Disp.GCTimers[i].style.display = 'none';
}
}
CM.Disp.lastSpawnedGoldenCookieState = CM.Disp.currSpawnedGoldenCookieState
if (CM.Disp.currSpawnedGoldenCookieState == 0) CM.Disp.spawnedGoldenShimmer = 0;
CM.Disp.UpdateFavicon();
}
else if (CM.Config.GCTimer == 1 && CM.Disp.lastGoldenCookieState) {
for (var i in CM.Disp.GCTimers) {