This commit is contained in:
2023-05-25 15:13:41 +02:00
parent ecd164c3e5
commit 2c79743009
3 changed files with 5 additions and 13 deletions

View File

@ -407,7 +407,6 @@ export class YggdrasillActor extends Actor {
/* -------------------------------------------- */
getActiveEffects(matching = it => true) {
let array = Array.from(this.getEmbeddedCollection("ActiveEffect").values());
return Array.from(this.getEmbeddedCollection("ActiveEffect").values()).filter(it => matching(it));
}
/* -------------------------------------------- */

View File

@ -1,5 +1,4 @@
/* -------------------------------------------- */
//import { YggdrasillCombat } from "./yggdrasill-combat.js";
/* -------------------------------------------- */
const dureeGaldrText = { "1d5a": "Actions", "1d10t": "Tours", "1d10m": "Minutes", "1d10h": "Heures", "1d5j": "Jours"};
@ -86,11 +85,7 @@ export class YggdrasillUtility {
}
/* -------------------------------------------- */
static async specificYggRoll( nbDice ) {
return specificYggRoll(nbDice, false);
}
static async specificYggRoll( nbDice, isFurorUsage ) {
static async specificYggRoll( nbDice, isFurorUsage = false) {
let rawDices = []
let rolls = []
let maxTab = []
@ -175,7 +170,6 @@ export class YggdrasillUtility {
this.createChatWithRollMode( rollData.alias, {
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
});
//myRoll.toMessage();
}
/* -------------------------------------------- */
@ -292,7 +286,6 @@ export class YggdrasillUtility {
this.createChatWithRollMode( rollData.alias, {
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
});
//myRoll.toMessage();
}
/* -------------------------------------------- */