Fix actor auto-patch for babele

This commit is contained in:
sladecraven 2022-10-17 18:04:07 +02:00
parent 822bc58f9f
commit 0f09baa7fe
3 changed files with 5 additions and 6 deletions

View File

@ -296,9 +296,8 @@ const __add_actors_translation = () => {
"entries": [ "entries": [
] ]
} }
game.babele.packs.set(metadata, new TranslatedCompendium(metadata, translations)); //console.log(metadata, translations)
//newpack = new TranslatedCompendium(pack, translations); game.babele.packs.set(metadata.metadata.id, new TranslatedCompendium(metadata.metadata, translations))
//console.log("Actor compendium has been replaced !!!!", pack.metadata.name);
} }
} }
} }

View File

@ -8,7 +8,7 @@
} }
], ],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr", "url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "6.2.9", "version": "6.2.10",
"esmodules": [ "esmodules": [
"babele-register.js", "babele-register.js",
"addon-register.js", "addon-register.js",
@ -136,7 +136,7 @@
} }
], ],
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json", "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.9.zip", "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.10.zip",
"id": "wh4-fr-translation", "id": "wh4-fr-translation",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",

View File

@ -322,7 +322,7 @@ export default async function statParserFR(statString, type = "npc") {
} }
catch { } catch { }
if (!itemFound && name) { if (!itemFound && name) {
itemFound = new game.entities.ItemWfrp4e({ img: "systems/wfrp4e/icons/blank.png", name: name, type: "trapping", data: game.system.model.Item.trapping }) itemFound = new game.entities.ItemWfrp4e({ img: "systems/wfrp4e/icons/blank.png", name: name, type: "trapping", system: game.system.model.Item.trapping })
itemFound.system.trappingType.value = "misc" itemFound.system.trappingType.value = "misc"
} }
if (itemFound) if (itemFound)