feat : better ui
CI / Verify (push) Successful in 59s
CI / Build immutable images and deploy (push) Failing after 1m4s

This commit is contained in:
2026-08-31 00:48:33 +07:00 Unverified
parent fd841057c1
commit e3692fe75b
19 changed files with 465 additions and 114 deletions
+9
View File
@@ -42,6 +42,15 @@ export function targetStatIconName(value: string): string | null {
: stat.toLowerCase();
}
export function recommendedStatIconName(value: string): string | null {
if (value === "CRIT Rate%/CRIT DMG%") return "critrate";
if (value === "Healing Bonus%") return "healing-bonus";
if (value.endsWith(" DMG%")) return "elemental-bonus";
const base = value.replace(/%$/, "").toLowerCase();
return ["hp", "atk", "def", "em", "er"].includes(base) ? base : null;
}
export function statPriorityColorClass(index: number): string {
return index === 0
? "text-tier-gold"