From ff37013074eb9a7a21c8be59984690241d63f908 Mon Sep 17 00:00:00 2001 From: CEbbinghaus <31423391+CEbbinghaus@users.noreply.github.com> Date: Sat, 31 Oct 2020 22:23:13 +1100 Subject: [PATCH] Added Flooring the Required amount (#904) --- 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,