This is now officially support fan-material
Add Ship sheet
Layout fix for adversaries
Ability to remove skills on adversaries, useful when duplicating a adversary
Option to automatically apply spell cost when rolled
Added Armor compendium
Added Weapons compendium
Skills compendium updated with descriptions
Co-Authored-By: erebus <erebus@rikspolisen.se>
Co-Committed-By: erebus <erebus@rikspolisen.se>
This commit was merged in pull request #3.
This commit is contained in:
2020-12-04 19:50:46 +00:00
parent 2e389704ea
commit c103fac27c
26 changed files with 559 additions and 76 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,