From 850c5dd771a4c90d6e2ef5675460631450e68eb0 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 14 Dec 2025 21:14:03 -0800 Subject: [PATCH] auto-update summon max level based on uncap same behavior as weapons: 100/150/200/250 for base/flb/ulb/trans --- .../summons/sections/SummonStatsSection.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib/features/database/summons/sections/SummonStatsSection.svelte b/src/lib/features/database/summons/sections/SummonStatsSection.svelte index 4d90dc26..52d6d319 100644 --- a/src/lib/features/database/summons/sections/SummonStatsSection.svelte +++ b/src/lib/features/database/summons/sections/SummonStatsSection.svelte @@ -32,6 +32,22 @@ const transcendence = $derived( editMode ? Boolean(editData.transcendence) : Boolean(summon?.uncap?.transcendence) ) + + // Auto-update Max Level based on uncap status + // No FLB: 100, FLB: 150, ULB: 200, Transcendence: 250 + $effect(() => { + if (editMode && editData) { + if (transcendence) { + editData.maxLevel = 250 + } else if (ulb) { + editData.maxLevel = 200 + } else if (flb) { + editData.maxLevel = 150 + } else { + editData.maxLevel = 100 + } + } + })