From e35187433e943f2c9bcb09b5c658ada12a35cb17 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 25 Nov 2022 14:24:03 +0100 Subject: [PATCH] Fix malus dice (again) and scroll rendering --- css/bol.css | 3 ++- module/controllers/bol-rolls.js | 2 +- system.json | 4 ++-- templates/actor/actor-sheet.hbs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/css/bol.css b/css/bol.css index db5fbd6..4e3562c 100644 --- a/css/bol.css +++ b/css/bol.css @@ -447,7 +447,8 @@ ul.no-bullets { list-style: none; margin: 7px 0; padding: 0; - overflow-y: auto; + overflow-y:hidden; + /*overflow-y: auto;*/ } .items-list .item-header { font-family: 'Signika', sans-serif; diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index e34ccc9..8b0ab5e 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -498,7 +498,7 @@ export class BoLRoll { rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ? $('#register-init').is(":checked") : false; - const isMalus = rollData.nbFlaws > rollData.nbBoons + const isMalus = (rollData.bmDice < 0) //rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0 let rollbase = rollData.attrValue + rollData.aptValue diff --git a/system.json b/system.json index 7ad09cd..7c44ebc 100644 --- a/system.json +++ b/system.json @@ -14,7 +14,7 @@ ], "url": "https://www.uberwald.me/gitea/public/bol", "license": "LICENSE.txt", - "version": "10.4.1", + "version": "10.4.2", "compatibility": { "minimum": "10", "verified": "10", @@ -203,7 +203,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.4.1.zip", + "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.4.2.zip", "background": "systems/images/map_lemurie.webp", "gridDistance": 1.5, "gridUnits": "m", diff --git a/templates/actor/actor-sheet.hbs b/templates/actor/actor-sheet.hbs index 1db4be4..ee629fc 100644 --- a/templates/actor/actor-sheet.hbs +++ b/templates/actor/actor-sheet.hbs @@ -17,7 +17,7 @@ {{#each boleffects as |effect keyEffect|}}
  • -
    +

    {{effect.name}}

  • {{/each}}