Fix stuff

This commit is contained in:
sladecraven 2021-05-29 23:50:40 +02:00
parent c4b8f30188
commit 4c99b11bb1
3 changed files with 5 additions and 5 deletions

View File

@ -109,8 +109,8 @@ export class frostgraveActorSheet extends ActorSheet {
const dataset = element.dataset; const dataset = element.dataset;
if (dataset.roll) { if (dataset.roll) {
let roll = new Roll(dataset.roll, this.actor.data.data); let roll = new Roll(dataset.roll, this.actor.data.data );
let damage = parseInt(roll.roll().total) + parseInt(dataset.bonus); let damage = parseInt(roll.evaluate( {async: false} ).total) + parseInt(dataset.bonus);
let rollflavor = `${dataset.label} Roll: ` + roll.total; let rollflavor = `${dataset.label} Roll: ` + roll.total;
if (dataset.label == "Combat" || dataset.label == "Shooting") { if (dataset.label == "Combat" || dataset.label == "Shooting") {
@ -151,7 +151,7 @@ export class frostgraveActorSheet extends ActorSheet {
let roll = new Roll(`1d20+` + empowerment); let roll = new Roll(`1d20+` + empowerment);
//let roll = new Roll(`(1d20+` + empowerment + `)ms>=` + difficulty); //let roll = new Roll(`(1d20+` + empowerment + `)ms>=` + difficulty);
roll.roll(); roll.evaluate( { async: false});
let rollresult = difficulty - roll.total; let rollresult = difficulty - roll.total;

View File

@ -1,7 +1,7 @@
<div class="tab gear container is-fluid" data-group="primary" data-tab="items"> <div class="tab gear container is-fluid" data-group="primary" data-tab="items">
{{#each gear as |item id|}} {{#each gear as |item id|}}
<div class="box item-card my-2 py-2" data-item-id="{{item._id}}"> <div class="box item-card my-2 py-2" data-item-id="{{item.id}}">
<div class="media"> <div class="media">
<div class="media-left"> <div class="media-left">
<figure class="image is-square"> <figure class="image is-square">

View File

@ -20,7 +20,7 @@
{{#each spells as |item id|}} {{#each spells as |item id|}}
<div class="box item-card my-2 py-2" data-item-id="{{item._id}}"> <div class="box item-card my-2 py-2" data-item-id="{{item.id}}">
<div class="media"> <div class="media">
<div class="media-left"> <div class="media-left">
<figure class="image is-square"> <figure class="image is-square">