Skip to content

Commit

Permalink
math fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 20, 2023
1 parent 6fb9142 commit 2e4e36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islander/AchievementsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class AchievementsModule {
}

private getRequiredXp(level: number) {
return Math.pow(level / 0.2, 2) - Math.pow(level + 1 / 0.2, 2);
return Math.pow((level + 1) / 0.2, 2) - Math.pow(level / 0.2, 2);
}

async GetProfile(memberID: string): Promise<AttachmentBuilder> {
Expand Down

0 comments on commit 2e4e36d

Please sign in to comment.