added armor pack, updated skills pack, initial work on ship sheet, minor fixes, added options for spell cost to be drawn on roll

This commit is contained in:
2020-12-04 03:45:09 +01:00
parent 4cb6c390a4
commit c6cc01bb25
19 changed files with 354 additions and 80 deletions

View File

@@ -14,6 +14,12 @@ export default class KHDiceRoller {
const html = await renderTemplate("systems/kopparhavet/templates/dice/roll.html", rollData);
if(game.settings.get("kopparhavet", "applySpellCost")) {
let totalCostForActor = speaker.data.data.mana.value + roll.total
speaker.update({ ["data.mana.value"]: totalCostForActor });
}
await roll.toMessage({
create: true,
content: html,