Added Flooring the Required amount (#904)

pull/965/head
CEbbinghaus 4 years ago committed by GitHub
parent 400e3e0b08
commit ff37013074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save