From 76cc63e510f2da75bd86b7e6414ae73e2c60aa51 Mon Sep 17 00:00:00 2001 From: Aktanusa Date: Mon, 2 May 2016 22:58:44 -0400 Subject: [PATCH] Changed Done! for new timer format (Issue #85) --- CookieMonster.js | 7 ++++++- src/Disp.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CookieMonster.js b/CookieMonster.js index ce31109..15f3594 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -567,7 +567,12 @@ CM.Disp.GetTimeColor = function(price, bank, cps) { var text; if (bank >= price) { color = CM.Disp.colorGreen; - text = 'Done!'; + if (CM.Config.TimeFormat) { + text = '00:00:00:00:00'; + } + else { + text = 'Done!'; + } } else { var time = (price - bank) / cps; diff --git a/src/Disp.js b/src/Disp.js index 7279416..4a4a259 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -60,7 +60,12 @@ CM.Disp.GetTimeColor = function(price, bank, cps) { var text; if (bank >= price) { color = CM.Disp.colorGreen; - text = 'Done!'; + if (CM.Config.TimeFormat) { + text = '00:00:00:00:00'; + } + else { + text = 'Done!'; + } } else { var time = (price - bank) / cps;