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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user