feat: Make it possible to subtract ability cost from pool points
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user