From 08870d2938ebf116f49fa0e55ec589a8106415e0 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 11 Jun 2025 22:38:45 +0200 Subject: [PATCH] feat: Make it possible to subtract ability cost from pool points --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 4f628de..8ccb752 100644 --- a/index.html +++ b/index.html @@ -714,6 +714,14 @@ updateAbilityCostDisplay(); }; + const subtractPoolPoints = () => { + var abilityCost = calculateAbilityCost(); + + if (abilityCost === null) return; + + updateAbilityCostDisplay(); + }; + document.addEventListener( "DOMContentLoaded", () => { @@ -751,6 +759,7 @@ loadCharacter(selectedID); }); + btnAbilityDo.addEventListener("click", subtractPoolPoints); clearSheet(); loadCharacterRoster(true);