v10 init fix

This commit is contained in:
sladecraven 2022-09-19 23:23:54 +02:00
parent af8576a4a1
commit ed76139200
2 changed files with 7 additions and 5 deletions

View File

@ -24,6 +24,7 @@ export class BoLCombatManager extends Combat {
for (let cId = 0; cId < ids.length; cId++) { for (let cId = 0; cId < ids.length; cId++) {
const combatant = this.combatants.get(ids[cId]); const combatant = this.combatants.get(ids[cId]);
let fvttInit = 5 let fvttInit = 5
//console.log("TYPE", combatant.actor.type)
if (combatant.actor.type == 'character') { if (combatant.actor.type == 'character') {
let initData = combatant.actor.getLastInitData() let initData = combatant.actor.getLastInitData()
console.log("Init data !!!", initData) console.log("Init data !!!", initData)
@ -37,11 +38,12 @@ export class BoLCombatManager extends Combat {
fvttInit = 3 fvttInit = 3
} }
} else { } else {
fvttInit = 4 // Pietaille par defaut fvttInit = 4 // Pietaille par defautco
if ( combatant.actor.getSubtype == 'adversary') { //console.log("ACTOR", combatant.actor.getCharType())
if ( combatant.actor.getCharType() == 'adversary') {
fvttInit = 7 fvttInit = 7
} }
if ( combatant.actor.getSubtype == 'tough') { if ( combatant.actor.getCharType() == 'tough') {
fvttInit = 6 fvttInit = 6
} }
} }

View File

@ -14,7 +14,7 @@
], ],
"url": "https://www.uberwald.me/gitea/public/bol", "url": "https://www.uberwald.me/gitea/public/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"version": "10.1.1", "version": "10.1.2",
"compatibility": { "compatibility": {
"minimum": "10" "minimum": "10"
}, },
@ -192,7 +192,7 @@
], ],
"socket": true, "socket": true,
"manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json", "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", "background": "systems/images/map_lemurie.webp",
"gridDistance": 1.5, "gridDistance": 1.5,
"gridUnits": "m", "gridUnits": "m",