XP Calculation will be done client sided

This commit is contained in:
Lncvrt committed 2026-02-10 18:32:48 -07:00
1 parent 70e6b590d0
commit 8015d7c5ac
2 files changed
-29

No files matched your search

-20
View File
@@ -1,20 +0,0 @@
export const calculateXP = (
normalBerries: bigint,
poisonBerries: bigint,
slowBerries: bigint,
ultraBerries: bigint,
speedyBerries: bigint,
coinBerries: bigint
): bigint => {
let totalXp: bigint = 0n
totalXp += normalBerries
totalXp -= poisonBerries
totalXp -= slowBerries
totalXp += ultraBerries * 5n
totalXp += speedyBerries * 10n
totalXp += coinBerries * 10n
if (totalXp < 0n) totalXp = 0n
return totalXp
}