Initial commit for v11 support

This commit is contained in:
LeRatierBretonnien 2023-05-25 14:55:31 +02:00
parent cc2c282593
commit d7e54aeb4f
3 changed files with 32 additions and 28 deletions

View File

@ -574,4 +574,5 @@ Hooks.once('ready', () => {
registerUsageCount("wh4-fr-translation")
});

View File

@ -8,7 +8,7 @@
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "6.5.0",
"version": "6.5.3",
"esmodules": [
"babele-register.js",
"addon-register.js",
@ -44,15 +44,6 @@
"private": false,
"flags": {}
},
{
"label": "Carrières FR",
"type": "Item",
"name": "carriere-fr",
"path": "packs/carriere-fr.db",
"system": "wfrp4e",
"private": false,
"flags": {}
},
{
"label": "Sorts FR",
"type": "Item",
@ -136,12 +127,12 @@
}
],
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.5.0.zip",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.5.3.zip",
"id": "wh4-fr-translation",
"compatibility": {
"minimum": "10",
"verified": "10",
"maximum": "10"
"maximum": "11"
},
"relationships": {
"systems": [

View File

@ -112,6 +112,14 @@ export class WH4FRPatchConfig {
/************************************************************************************/
static perform_patch() {
if (game.user.isGM) {
let coreC7 = game.modules.find(mod => mod.id == "wfrp4e-core")
if (!coreC7 || !coreC7.active) {
ui.notifications.warn("Vous n'avez pas activé le module CoreC7 ! La traduction sera donc incomplète et inopérante.")
return
}
}
// Detect and patch as necessary
if (game.wfrp4e.config && game.wfrp4e.config.talentBonuses && game.wfrp4e.config.talentBonuses["vivacité"] == undefined) {
console.log("Patching WFRP4E now ....");
@ -130,6 +138,7 @@ export class WH4FRPatchConfig {
"guerrier né": "ws"
}
if (game.wfrp4e.config.loreEffects) {
game.wfrp4e.config.loreEffects["beasts"].label = "Domaine des Bêtes"
game.wfrp4e.config.loreEffects["death"].label = "Domaine de la Mort"
game.wfrp4e.config.loreEffects["fire"].label = "Domaine du Feu"
@ -140,12 +149,15 @@ export class WH4FRPatchConfig {
game.wfrp4e.config.loreEffects["shadow"].label = "Domaine des Ombres"
game.wfrp4e.config.loreEffects["hedgecraft"].label = "Domaine de la Magie de Village"
game.wfrp4e.config.loreEffects["hedgecraft"].label = "Domaine de la Sorcellerie"
}
if (game.wfrp4e.config.species) {
game.wfrp4e.config.species["human"] = "Humain";
game.wfrp4e.config.species["dwarf"] = "Nain";
game.wfrp4e.config.species["halfling"] = "Halfling";
game.wfrp4e.config.species["helf"] = "Haut Elfe";
game.wfrp4e.config.species["welf"] = "Elfe Sylvain";
}
this.patch_species_skills();
this.patch_species_talents();