From 4a9b9dd40b4d7ff2e63dbeedb9dee1ef03c80651 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 13 Jun 2026 20:08:38 -0400 Subject: [PATCH 1/7] Fix bestiary XP bonus and BP tier controls --- site/bestiary-tables.js | 10 +++++++--- site/bestiary.html | 21 ++++++--------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/site/bestiary-tables.js b/site/bestiary-tables.js index 64dd920..e8fd36c 100644 --- a/site/bestiary-tables.js +++ b/site/bestiary-tables.js @@ -148,10 +148,14 @@ } function bpTier() { - const tier = Number(qs("#bestiary-bp-tier")?.value || 0); + const tier = Number(qs("#bestiary-tier")?.value || 0); return BP_TIERS[tier] || BP_TIERS[0]; } + function xpBonusMultiplier() { + return Number(qs("#bestiary-xp-bonus")?.value || 1); + } + function displayValue(row, key) { const value = row[key]; @@ -170,7 +174,7 @@ } if (key === "exp" && tier.exp !== null) { - return Math.round(Number(value || 0) * tier.exp); + return Math.round(Number(value || 0) * tier.exp * xpBonusMultiplier()); } return value ?? ""; @@ -332,7 +336,7 @@ renderTable(); }); - qs("#bestiary-bp-tier")?.addEventListener("change", () => { + qs("#bestiary-tier")?.addEventListener("change", () => { state.page = 1; renderTable(); }); diff --git a/site/bestiary.html b/site/bestiary.html index 60ec441..a81495e 100644 --- a/site/bestiary.html +++ b/site/bestiary.html @@ -51,22 +51,13 @@ - - + + + -

Applies HP, ATP, and EXP modifiers to Ultimate rows only.

+

Applies to EXP only.

- - + + -

Applies to EXP only.

+

Applies EXP multiplier only.

- + + @@ -113,6 +114,6 @@ - + -- 2.52.0 From b9e0cccfe1c7f519a8ead931a880c9f96e2bf43d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 13 Jun 2026 20:38:26 -0400 Subject: [PATCH 7/7] Hide zero-value bestiary rows --- site/bestiary-tables.js | 6 ++++++ site/bestiary.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/site/bestiary-tables.js b/site/bestiary-tables.js index 48ab514..601a1e8 100644 --- a/site/bestiary-tables.js +++ b/site/bestiary-tables.js @@ -188,10 +188,16 @@ return value ?? ""; } + function hasAnyBestiaryValue(row) { + const keys = ["hp", "atp", "dfp", "mst", "ata", "evp", "lck", "esp", "exp", "efr", "eic", "eth", "elt", "edk"]; + return keys.some((key) => Number(row[key] || 0) !== 0); + } + function visibleRows() { const search = state.filters.search.trim().toLowerCase(); return state.rows.filter((row) => { + if (!hasAnyBestiaryValue(row)) return false; if (state.filters.mode && row.mode !== state.filters.mode) return false; if (state.filters.episode && row.episode !== state.filters.episode) return false; if (state.filters.difficulty && row.difficulty !== state.filters.difficulty) return false; diff --git a/site/bestiary.html b/site/bestiary.html index c29ce03..df684e6 100644 --- a/site/bestiary.html +++ b/site/bestiary.html @@ -114,6 +114,6 @@ - + -- 2.52.0