Fix bestiary import

This commit is contained in:
sladecraven 2022-11-10 11:44:01 +01:00
parent bc604a9159
commit f52c533fde
3 changed files with 7 additions and 6 deletions

View File

@ -273,13 +273,13 @@ const __add_actors_translation = () => {
if (lang == "fr") {
let pack_array = [];
for (let metadata of game.packs) {
if (!game.babele.isTranslated(metadata) && metadata.documentName === 'Actor') {
//console.log("PACK : ", metadata);
if (!game.babele.isTranslated(metadata) && metadata.collection != "wfrp4e-core.bestiary" && metadata.documentName === 'Actor') {
//console.log("REPLACE PACK : ", metadata);
let translations = {
"label": metadata.name,
"mapping": {
"name": "name",
"description": "system.biography.value",
"description": "system.details.biography.value",
"items": {
"path": "items",
"converter": "bestiary_traits"

View File

@ -1,6 +1,7 @@
{
"label": "Bestiaire",
"mapping": {
"description": "system.details.biography.value",
"items": {
"path": "items",
"converter": "bestiary_traits"

View File

@ -8,7 +8,7 @@
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "6.2.14",
"version": "6.2.15",
"esmodules": [
"babele-register.js",
"addon-register.js",
@ -136,11 +136,11 @@
}
],
"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.2.14.zip",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.15.zip",
"id": "wh4-fr-translation",
"compatibility": {
"minimum": "10",
"verified": "10.285",
"verified": "10",
"maximum": "10"
},
"relationships": {