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"