Fix actor auto-patch for babele
This commit is contained in:
parent
822bc58f9f
commit
0f09baa7fe
@ -296,9 +296,8 @@ const __add_actors_translation = () => {
|
||||
"entries": [
|
||||
]
|
||||
}
|
||||
game.babele.packs.set(metadata, new TranslatedCompendium(metadata, translations));
|
||||
//newpack = new TranslatedCompendium(pack, translations);
|
||||
//console.log("Actor compendium has been replaced !!!!", pack.metadata.name);
|
||||
//console.log(metadata, translations)
|
||||
game.babele.packs.set(metadata.metadata.id, new TranslatedCompendium(metadata.metadata, translations))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
}
|
||||
],
|
||||
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
||||
"version": "6.2.9",
|
||||
"version": "6.2.10",
|
||||
"esmodules": [
|
||||
"babele-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",
|
||||
"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",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
|
@ -322,7 +322,7 @@ export default async function statParserFR(statString, type = "npc") {
|
||||
}
|
||||
catch { }
|
||||
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"
|
||||
}
|
||||
if (itemFound)
|
||||
|
Loading…
Reference in New Issue
Block a user