v10 support - minor fixes
This commit is contained in:
parent
d725b84011
commit
1662ea9804
@ -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);
|
||||
|
@ -14,7 +14,7 @@
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"careergroup": "system.careergroup.value",
|
||||
"trappings": "data.trappings"
|
||||
"trappings": "system.trappings"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
|
22
module.json
22
module.json
@ -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": [{
|
||||
"systems": [
|
||||
{
|
||||
"id": "wfrp4e",
|
||||
"type": "system"
|
||||
}],
|
||||
"requires": [{
|
||||
"type": "system",
|
||||
"compatibility": {}
|
||||
}
|
||||
],
|
||||
"requires": [
|
||||
{
|
||||
"id": "babele",
|
||||
"type": "module"
|
||||
}]
|
||||
"type": "module",
|
||||
"compatibility": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user