1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Added Flooring the Required amount

This commit is contained in:
Christopher-Robin 2020-10-19 02:11:29 +11:00
parent 366a2a9f58
commit 84249d1b23
No known key found for this signature in database
GPG Key ID: 39A83BF9D91CC108

View File

@ -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,