feat: Make it possible to subtract ability cost from pool points
This commit is contained in:
@@ -714,6 +714,14 @@
|
|||||||
updateAbilityCostDisplay();
|
updateAbilityCostDisplay();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const subtractPoolPoints = () => {
|
||||||
|
var abilityCost = calculateAbilityCost();
|
||||||
|
|
||||||
|
if (abilityCost === null) return;
|
||||||
|
|
||||||
|
updateAbilityCostDisplay();
|
||||||
|
};
|
||||||
|
|
||||||
document.addEventListener(
|
document.addEventListener(
|
||||||
"DOMContentLoaded",
|
"DOMContentLoaded",
|
||||||
() => {
|
() => {
|
||||||
@@ -751,6 +759,7 @@
|
|||||||
|
|
||||||
loadCharacter(selectedID);
|
loadCharacter(selectedID);
|
||||||
});
|
});
|
||||||
|
btnAbilityDo.addEventListener("click", subtractPoolPoints);
|
||||||
|
|
||||||
clearSheet();
|
clearSheet();
|
||||||
loadCharacterRoster(true);
|
loadCharacterRoster(true);
|
||||||
|
Reference in New Issue
Block a user