From 762b43dafce3564ac9789b2394f8877342739936 Mon Sep 17 00:00:00 2001 From: Jon <vitale.jonathan@ymail.com> Date: Tue, 4 Oct 2022 12:48:32 +1100 Subject: [PATCH] Make the time to return the dirty plates longer --- src/classes/task3/kitchen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/task3/kitchen.js b/src/classes/task3/kitchen.js index 822244e..118d989 100644 --- a/src/classes/task3/kitchen.js +++ b/src/classes/task3/kitchen.js @@ -83,7 +83,8 @@ class Kitchen{ } async _returnDirtyPlates(msg){ - let rndTime = 8000 + Math.floor(Math.random() * 7000); + let rndTime = 70000 + Math.floor(Math.random() * 30000); + log('The customers are eating the prepared food. The plates will be brought back soon...') await this.tick(rndTime); while(this._returningPlates){ await this.tick(100); -- GitLab