From 84249d1b234cc49e35ecbdbda1807371db5e9edf Mon Sep 17 00:00:00 2001 From: Christopher-Robin Date: Mon, 19 Oct 2020 02:11:29 +1100 Subject: [PATCH] Added Flooring the Required amount --- src/js/game/hub_goals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/game/hub_goals.js b/src/js/game/hub_goals.js index c9d9494f..9a945128 100644 --- a/src/js/game/hub_goals.js +++ b/src/js/game/hub_goals.js @@ -238,7 +238,8 @@ export class HubGoals extends BasicSerializableObject { return; } - const required = Math.min(200, 4 + (this.level - 27) * 0.25); + //Floor Required amount to remove confusion + const required = Math.min(200, Math.floor(4 + (this.level - 27) * 0.25)); this.currentGoal = { definition: this.computeFreeplayShape(this.level), required,