forked from public/foundryvtt-reve-de-dragon
Various fixes for TMR, WIP
This commit is contained in:
@ -357,7 +357,7 @@ export class TMRRencontres {
|
||||
/* -------------------------------------------- */
|
||||
static async getRencontreAleatoire(terrain, roll = undefined) {
|
||||
if (!roll || roll <= 0 || roll > 100) {
|
||||
roll = new Roll("1d100").evaluate().total;
|
||||
roll = new Roll("1d100").evaluate( {async: false}).total;
|
||||
}
|
||||
terrain = Grammar.toLowerCaseNoAccent(terrain);
|
||||
//console.log("getRencontreAleatoire", terrain, roll);
|
||||
@ -386,7 +386,7 @@ export class TMRRencontres {
|
||||
rencontre.force = 7 + ddr.total;
|
||||
}
|
||||
else {
|
||||
rencontre.force = new Roll(rencontre.force).evaluate().total;
|
||||
rencontre.force = new Roll(rencontre.force).evaluate( {async: false} ).total;
|
||||
}
|
||||
return rencontre.force;
|
||||
}
|
||||
|
Reference in New Issue
Block a user