From a1c20019e8beaed18a0bb63ae0a6094a545a1c7f Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 19 Sep 2022 23:23:54 +0200 Subject: [PATCH] v10 init fix --- module/system/bol-combat.js | 8 +++++--- system.json | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/module/system/bol-combat.js b/module/system/bol-combat.js index dcd6bd5..0055e87 100644 --- a/module/system/bol-combat.js +++ b/module/system/bol-combat.js @@ -24,6 +24,7 @@ export class BoLCombatManager extends Combat { for (let cId = 0; cId < ids.length; cId++) { const combatant = this.combatants.get(ids[cId]); let fvttInit = 5 + //console.log("TYPE", combatant.actor.type) if (combatant.actor.type == 'character') { let initData = combatant.actor.getLastInitData() console.log("Init data !!!", initData) @@ -37,11 +38,12 @@ export class BoLCombatManager extends Combat { fvttInit = 3 } } else { - fvttInit = 4 // Pietaille par defaut - if ( combatant.actor.getSubtype == 'adversary') { + fvttInit = 4 // Pietaille par defautco + //console.log("ACTOR", combatant.actor.getCharType()) + if ( combatant.actor.getCharType() == 'adversary') { fvttInit = 7 } - if ( combatant.actor.getSubtype == 'tough') { + if ( combatant.actor.getCharType() == 'tough') { fvttInit = 6 } } diff --git a/system.json b/system.json index ba816c2..7cd6c65 100644 --- a/system.json +++ b/system.json @@ -14,7 +14,7 @@ ], "url": "https://www.uberwald.me/gitea/public/bol", "license": "LICENSE.txt", - "version": "10.1.1", + "version": "10.1.2", "compatibility": { "minimum": "10" }, @@ -192,7 +192,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.1.1.zip", + "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.1.2.zip", "background": "systems/images/map_lemurie.webp", "gridDistance": 1.5, "gridUnits": "m",