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) => {
if ( value ) {
let newQF = [];
//console.log("ATOUTS", value);
var i=0;
//var re = /(.*) (\d+)/i;
for (i=0; i<value.length; i++) {
newQF[i] = duplicate(value[i]);
//console.log("ATOUTS", value, typeof(value));
let list = value
if (typeof(value) == "string") {
let myList = value.split(",")
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") {
newQF[i].name = "TrapBlade"; // Auto-patch, without space!
//console.log("PATCHED", trim);

View File

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

View File

@ -8,7 +8,7 @@
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "6.2.1",
"version": "6.2.2",
"esmodules": [
"babele-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",
"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",
"compatibility": {
"minimum": "10",
"verified": "10.285"
},
"relationships": {
"systems": [{
"id": "wfrp4e",
"type": "system"
}],
"requires": [{
"id": "babele",
"type": "module"
}]
"systems": [
{
"id": "wfrp4e",
"type": "system",
"compatibility": {}
}
],
"requires": [
{
"id": "babele",
"type": "module",
"compatibility": {}
}
]
}
}