initiative bugfix

This commit is contained in:
sladecraven 2022-12-01 23:57:33 +01:00
parent 593db9ba5b
commit 085265df5d
3 changed files with 25 additions and 21 deletions

View File

@ -182,7 +182,8 @@
"BOL.ui.armornoformula": "L'armure {protect.name} n'a pas de formule pour la protection !", "BOL.ui.armornoformula": "L'armure {protect.name} n'a pas de formule pour la protection !",
"BOL.ui.selectactor": "Selectionnez votre personnage pour utiliser la macro", "BOL.ui.selectactor": "Selectionnez votre personnage pour utiliser la macro",
"BOL.ui.itemnotfound": "Impossible de trouver l'objet de cette macro", "BOL.ui.itemnotfound": "Impossible de trouver l'objet de cette macro",
"BOL.ui.noinit": "Pas d'initiative trouvée, veuillez en enregistrer une.",
"BOL.featureCategory.origins": "Origines", "BOL.featureCategory.origins": "Origines",
"BOL.featureCategory.races": "Races", "BOL.featureCategory.races": "Races",
"BOL.featureCategory.careers": "Carrières", "BOL.featureCategory.careers": "Carrières",

View File

@ -656,25 +656,28 @@ export class BoLActor extends Actor {
/*-------------------------------------------- */ /*-------------------------------------------- */
getInitiativeRank() { getInitiativeRank() {
let rollData = this.getFlag("world", "last-initiative") let rollData = this.getFlag("world", "last-initiative")
let fvttInit = 5 let fvttInit = 4 // Pietaille par defaut
if (this.type == 'character') { if (this.type == 'character' ) {
if (rollData.isLegendary) { fvttInit = 5
fvttInit = 10 if (!rollData) {
} else if (rollData.isCritical) { fvttInit = -1
fvttInit = 9 } else {
} else if (rollData.isSuccess ) { if (rollData.isLegendary) {
fvttInit = 8 fvttInit = 10
} else if (rollData.isFumble) { } else if (rollData.isCritical) {
fvttInit = 3 fvttInit = 9
} else if (rollData.isSuccess ) {
fvttInit = 8
} else if (rollData.isFumble) {
fvttInit = 3
}
} }
} else { }
fvttInit = 4 // Pietaille par defautco if ( this.getCharType() == 'adversary') {
if ( this.getCharType() == 'adversary') { fvttInit = 7
fvttInit = 7 }
} if ( this.getCharType() == 'tough') {
if ( this.getCharType() == 'tough') { fvttInit = 6
fvttInit = 6
}
} }
return fvttInit return fvttInit
} }

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.4.8", "version": "10.4.9",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"verified": "10", "verified": "10",
@ -203,7 +203,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.4.8.zip", "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.4.9.zip",
"background": "systems/images/map_lemurie.webp", "background": "systems/images/map_lemurie.webp",
"gridDistance": 1.5, "gridDistance": 1.5,
"gridUnits": "m", "gridUnits": "m",