feature/fix-bestiary-xp-bonus-bp-tier #9

Merged
incentive merged 7 commits from feature/fix-bestiary-xp-bonus-bp-tier into main 2026-06-13 20:40:43 -04:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 7c8dd807da - Show all commits
+5 -1
View File
@@ -148,7 +148,11 @@
}
function bpTier() {
const tier = Number(qs("#bestiary-tier")?.value || 0);
const select = qs("#bestiary-tier");
const raw = String(select?.value || "");
const label = String(select?.selectedOptions?.[0]?.textContent || "");
const match = raw.match(/(\d+)$/) || label.match(/(\d+)/);
const tier = match ? Number(match[1]) : 0;
return BP_TIERS[tier] || BP_TIERS[0];
}
+1 -1
View File
@@ -113,6 +113,6 @@
</div>
</footer>
</div>
<script src="bestiary-tables.js?v=xp-bonus-multiplier-1" defer></script>
<script src="bestiary-tables.js?v=bp-tier-parser-2" defer></script>
</body>
</html>