diff --git a/modules/mournblade-utility.js b/modules/mournblade-utility.js index b21b6da..05cdd43 100644 --- a/modules/mournblade-utility.js +++ b/modules/mournblade-utility.js @@ -129,7 +129,7 @@ export class MournbladeUtility { let actor = MournbladeUtility.getActorFromRollData(rollData) await actor.setPredilectionUsed(rollData.competence._id, predIdx) rollData.competence = duplicate(actor.getCompetence(rollData.competence._id)) - MournbladeUtility.rollMournblade(rollData) + await MournbladeUtility.rollMournblade(rollData) }) } @@ -224,7 +224,6 @@ export class MournbladeUtility { /* -------------------------------------------- */ static onSocketMesssage(msg) { - //console.log("SOCKET MESSAGE", msg.name, game.user.character.id, msg.data.defenderId); if (msg.name == "msg_update_defense_state") { this.updateDefenseState(msg.data.defenderId, msg.data.rollId); } @@ -346,7 +345,7 @@ export class MournbladeUtility { let myRoll = new Roll(rollData.diceFormula).roll({ async: false }) await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode")) - rollData.roll = myRoll + rollData.roll = duplicate(myRoll) rollData.diceResult = myRoll.terms[0].results[0].result console.log(">>>> ", myRoll) @@ -373,7 +372,7 @@ export class MournbladeUtility { let bonusRoll = new Roll(rollData.bonusFormula).roll({ async: false }) await this.showDiceSoNice(bonusRoll, game.settings.get("core", "rollMode")); - rollData.bonusRoll = bonusRoll + rollData.bonusRoll = duplicate(bonusRoll) rollData.finalResult += rollData.bonusRoll.total diff --git a/system.json b/system.json index 3c26b7b..7a9df0c 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-mournblade", "description": "Mournblade RPG for FoundryVTT", - "version": "10.0.17", + "version": "11.0.0", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -23,7 +23,7 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.17.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-11.0.0.zip", "packs": [ { "type": "Item", @@ -31,7 +31,6 @@ "name": "skills", "path": "packs/skills.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -40,7 +39,6 @@ "name": "armes", "path": "packs/armes.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -49,7 +47,6 @@ "name": "protection", "path": "packs/protection.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -58,7 +55,6 @@ "name": "equipement", "path": "packs/equipement.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -67,7 +63,6 @@ "name": "dons", "path": "packs/dons.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -76,7 +71,6 @@ "name": "origines", "path": "packs/origines.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -85,7 +79,6 @@ "name": "heritages", "path": "packs/heritages.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -94,7 +87,6 @@ "name": "metiers", "path": "packs/metiers.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -103,7 +95,6 @@ "name": "tendances", "path": "packs/tendances.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -112,7 +103,9 @@ "name": "traits-chaotiques", "path": "packs/traits-chaotiques.db", "system": "fvtt-mournblade", - "private": true, + "ownership": { + "PLAYER": "NONE" + }, "flags": {} }, { @@ -121,7 +114,6 @@ "name": "runes", "path": "packs/runes.db", "system": "fvtt-mournblade", - "private": false, "flags": {} }, { @@ -130,7 +122,9 @@ "name": "tables", "path": "packs/tables.db", "system": "fvtt-mournblade", - "private": true, + "ownership": { + "PLAYER": "NONE" + }, "flags": {} } ], @@ -145,6 +139,7 @@ "background": "systems/fvtt-mournblade/assets/ui/fond_mournblade.webp", "compatibility": { "minimum": "10", - "verified": "10.288" + "maximum": "11", + "verified": "11" } } \ No newline at end of file