fix flaws usage

This commit is contained in:
sladecraven 2022-11-19 21:56:51 +01:00
parent 30e316d34e
commit 1135e3aff2
2 changed files with 4 additions and 3 deletions

View File

@ -465,10 +465,11 @@ export class BoLRoll {
ui.notifications.warn("Pas assez de Points de Pouvoir !")
return
}
console.log("ROLLMALUS", rollData)
rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ? $('#register-init').is(":checked") : false;
const isMalus = rollData.mDice > 0
const isMalus = rollData.nbFlaws > rollData.nbBoons
rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0
let rollbase = rollData.attrValue + rollData.aptValue

View File

@ -14,7 +14,7 @@
],
"url": "https://www.uberwald.me/gitea/public/bol",
"license": "LICENSE.txt",
"version": "10.3.1",
"version": "10.3.2",
"compatibility": {
"minimum": "10",
"verified": "10.287"
@ -193,7 +193,7 @@
],
"socket": true,
"manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json",
"download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.3.1.zip",
"download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.3.2.zip",
"background": "systems/images/map_lemurie.webp",
"gridDistance": 1.5,
"gridUnits": "m",