v10 support - minor fixes

This commit is contained in:
sladecraven 2022-09-16 09:55:58 +02:00
parent d725b84011
commit 1662ea9804
3 changed files with 28 additions and 16 deletions

View File

@ -354,11 +354,17 @@ Hooks.once('init', () => {
"trapping_qualities_flaws": (value) => { "trapping_qualities_flaws": (value) => {
if ( value ) { if ( value ) {
let newQF = []; let newQF = [];
//console.log("ATOUTS", value); //console.log("ATOUTS", value, typeof(value));
var i=0; let list = value
//var re = /(.*) (\d+)/i; if (typeof(value) == "string") {
for (i=0; i<value.length; i++) { let myList = value.split(",")
newQF[i] = duplicate(value[i]); list = []
for (let l of myList) {
list.push( { name: l.trim() } )
}
}
for (let i=0; i<list.length; i++) {
newQF[i] = duplicate(list[i] )
if ( newQF[i].name == "Trap Blade") { if ( newQF[i].name == "Trap Blade") {
newQF[i].name = "TrapBlade"; // Auto-patch, without space! newQF[i].name = "TrapBlade"; // Auto-patch, without space!
//console.log("PATCHED", trim); //console.log("PATCHED", trim);

View File

@ -14,7 +14,7 @@
"converter": "generic_localization" "converter": "generic_localization"
}, },
"careergroup": "system.careergroup.value", "careergroup": "system.careergroup.value",
"trappings": "data.trappings" "trappings": "system.trappings"
}, },
"entries": [ "entries": [
{ {

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.1", "version": "6.2.2",
"esmodules": [ "esmodules": [
"babele-register.js", "babele-register.js",
"addon-register.js", "addon-register.js",
@ -136,20 +136,26 @@
} }
], ],
"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.1.zip", "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.2.zip",
"id": "wh4-fr-translation", "id": "wh4-fr-translation",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"verified": "10.285" "verified": "10.285"
}, },
"relationships": { "relationships": {
"systems": [{ "systems": [
"id": "wfrp4e", {
"type": "system" "id": "wfrp4e",
}], "type": "system",
"requires": [{ "compatibility": {}
"id": "babele", }
"type": "module" ],
}] "requires": [
{
"id": "babele",
"type": "module",
"compatibility": {}
}
]
} }
} }