From 754bccc0ec5c3952e285922f1eb3cea4c6a59e61 Mon Sep 17 00:00:00 2001 From: nulfrost Date: Tue, 8 Jul 2025 19:45:00 -0400 Subject: [PATCH 1/2] feat: include skillpoints up to level 165 --- src/utils/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/utils/index.ts b/src/utils/index.ts index ee634fd..294a727 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -88,6 +88,18 @@ export function getSkillPointsForLevel(characterLevel: number) { 20 * 3 + 20 * 2 ); + case characterLevel > 160 && characterLevel <= 165: + return ( + (characterLevel - 160) * 2 + + 20 * 1 + + 20 * 8 + + 20 * 7 + + 20 * 6 + + 20 * 5 + + 20 * 4 + + 20 * 3 + + 20 * 2 + ); default: return 0; } From 9db3154133ba157495865fd31535ab2bcbae2fe6 Mon Sep 17 00:00:00 2001 From: nulfrost Date: Tue, 8 Jul 2025 20:37:19 -0400 Subject: [PATCH 2/2] allow number input to go up to the current max level --- src/routes/c.$class.tsx | 2 +- src/utils/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/c.$class.tsx b/src/routes/c.$class.tsx index 478e6da..6f3afe3 100644 --- a/src/routes/c.$class.tsx +++ b/src/routes/c.$class.tsx @@ -118,7 +118,7 @@ function SkillTree() { value={level} onChange={handleLevelChange} min={15} - max={160} + max={165} /> diff --git a/src/utils/index.ts b/src/utils/index.ts index 294a727..98587e8 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -98,6 +98,7 @@ export function getSkillPointsForLevel(characterLevel: number) { 20 * 5 + 20 * 4 + 20 * 3 + + 20 * 2 + 20 * 2 ); default: