From 35d500f24bc28c9b6ae19040ef4e4a258116f9e8 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 26 Aug 2022 18:54:40 +0200 Subject: [PATCH] Fix armors --- modules/crucible-actor.js | 4 ++-- system.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/crucible-actor.js b/modules/crucible-actor.js index 00e669f..351ad73 100644 --- a/modules/crucible-actor.js +++ b/modules/crucible-actor.js @@ -752,10 +752,10 @@ export class CrucibleActor extends Actor { let diceColor = armor.system.absorprionroll let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false ) console.log("Armor log", armorResult) - let armorValue = (Number(armorResult.text) - reduce) * multiply + let armorValue = (Number(armorResult.text) + reduce) * multiply if ( advantage || disadvantage) { let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false ) - let armorValue2 = (Number(armorResult2.text) - reduce) * multiply + let armorValue2 = (Number(armorResult2.text) + reduce) * multiply if ( advantage) { armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`) diff --git a/system.json b/system.json index f6acf3a..3dcc8de 100644 --- a/system.json +++ b/system.json @@ -199,15 +199,15 @@ "styles": [ "styles/simple.css" ], - "version": "10.0.6", + "version": "10.0.7", "compatibility": { "minimum": "10", - "verified": "10.278", + "verified": "10.279", "maximum": "10" }, "title": "Crucible RPG", "manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v10.0.6.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v10.0.7.zip", "url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg", "background": "images/ui/crucible_welcome_page.webp", "id": "fvtt-crucible-rpg"