From 2c79743009995066038c21fb34c0abfac3f333de Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 25 May 2023 15:13:41 +0200 Subject: [PATCH] Sync --- modules/yggdrasill-actor.js | 1 - modules/yggdrasill-utility.js | 9 +-------- system.json | 8 ++++---- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/modules/yggdrasill-actor.js b/modules/yggdrasill-actor.js index 07d2446..b0bc9bc 100644 --- a/modules/yggdrasill-actor.js +++ b/modules/yggdrasill-actor.js @@ -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)); } /* -------------------------------------------- */ diff --git a/modules/yggdrasill-utility.js b/modules/yggdrasill-utility.js index bd4a618..83f0fd8 100644 --- a/modules/yggdrasill-utility.js +++ b/modules/yggdrasill-utility.js @@ -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(); } /* -------------------------------------------- */ diff --git a/system.json b/system.json index 5622c2b..10f6f67 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "title": "Yggdrasill", "description": "Système non-officiel Yggdrasill (7ième Cercle) pour FoundryVTT", - "version": "10.0.4", + "version": "11.0.0", "esmodules": [ "modules/yggdrasill-main.js" ], @@ -196,7 +196,7 @@ "socket": true, "url": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/", "manifest": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/raw/branch/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/archive/fvtt-yggdrasill-10.0.4.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/archive/fvtt-yggdrasill-11.0.0.zip", "license": "LICENSE.txt", "id": "fvtt-yggdrasill", "authors": [ @@ -221,7 +221,7 @@ }, "compatibility": { "minimum": "10", - "verified": "10", - "maximum": "10" + "verified": "11", + "maximum": "11" } } \ No newline at end of file