Fix for Misc.js

This commit is contained in:
sladecraven 2021-05-22 17:51:30 +02:00
parent a6d1a84b13
commit 0c092b9099
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { Misc } from "./misc"; import { Misc } from "./misc.js";
/** /**
* Class providing helper methods to get the list of users, and * Class providing helper methods to get the list of users, and

View File

@ -79,6 +79,7 @@ export class RdDCombatManager extends Combat {
//if (!c) return results; //if (!c) return results;
let rollFormula = formula; // Init per default let rollFormula = formula; // Init per default
console.log("RR :", rollFormula);
if (!rollFormula) { if (!rollFormula) {
let armeCombat, competence; let armeCombat, competence;
if (c.actor.data.type == 'creature' || c.actor.data.type == 'entite') { if (c.actor.data.type == 'creature' || c.actor.data.type == 'entite') {
@ -101,6 +102,7 @@ export class RdDCombatManager extends Combat {
} }
} }
//console.log("Combatat", c); //console.log("Combatat", c);
console.log("RR :", rollFormula);
const roll = super._getInitiativeRoll(c, rollFormula); const roll = super._getInitiativeRoll(c, rollFormula);
if (roll.total <= 0) roll.total = 0.00; if (roll.total <= 0) roll.total = 0.00;
console.log("Compute init for", rollFormula, roll.total); console.log("Compute init for", rollFormula, roll.total);

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.3.58", "version": "1.3.59",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.9",