Compare commits
1 Commits
foundryvtt
...
v4
Author | SHA1 | Date | |
---|---|---|---|
12fe0fd768 |
@ -25,8 +25,8 @@ const vo_conditions = {
|
||||
Hooks.once('init', () => {
|
||||
|
||||
// Check various settings in the installation
|
||||
game.modules.forEach((module, id) => {
|
||||
if ( id == "wfrp4e-core" && module.active) {
|
||||
game.modules.forEach((module, name) => {
|
||||
if ( name == "wfrp4e-core" && module.active) {
|
||||
compmod = "wfrp4e-core";
|
||||
}
|
||||
} );
|
||||
@ -354,17 +354,11 @@ Hooks.once('init', () => {
|
||||
"trapping_qualities_flaws": (value) => {
|
||||
if ( value ) {
|
||||
let newQF = [];
|
||||
//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] )
|
||||
//console.log("ATOUTS", value);
|
||||
var i=0;
|
||||
//var re = /(.*) (\d+)/i;
|
||||
for (i=0; i<value.length; i++) {
|
||||
newQF[i] = duplicate(value[i]);
|
||||
if ( newQF[i].name == "Trap Blade") {
|
||||
newQF[i].name = "TrapBlade"; // Auto-patch, without space!
|
||||
//console.log("PATCHED", trim);
|
||||
|
@ -17,7 +17,7 @@
|
||||
"path": "data.careergroup.value",
|
||||
"converter": "career_careergroup"
|
||||
},
|
||||
"trappings": "system.trappings"
|
||||
"trappings": "data.trappings"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
"converter": "bestiary_traits"
|
||||
},
|
||||
"characteristics": {
|
||||
"path": "system.characteristics",
|
||||
"path": "data.characteristics",
|
||||
"converter": "npc_characteristics"
|
||||
}
|
||||
},
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "Carrières",
|
||||
"mapping": {
|
||||
"skills": {
|
||||
"path": "system.skills",
|
||||
"path": "data.skills",
|
||||
"converter": "career_skills"
|
||||
},
|
||||
"talents": {
|
||||
"path": "system.talents",
|
||||
"path": "data.talents",
|
||||
"converter": "career_talents"
|
||||
},
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"path": "data.class.value",
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"careergroup": {
|
||||
"path": "system.careergroup.value",
|
||||
"path": "data.careergroup.value",
|
||||
"converter": "career_careergroup"
|
||||
},
|
||||
"trappings": "system.trappings"
|
||||
|
@ -3,7 +3,7 @@
|
||||
"mapping": {
|
||||
"location": {
|
||||
"converter": "generic_localization",
|
||||
"path": "system.location.value"
|
||||
"path": "data.location.value"
|
||||
},
|
||||
"effects": "effects"
|
||||
},
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"mapping": {
|
||||
"durationValue": "system.duration.value",
|
||||
"durationUnit": "system.duration.unit",
|
||||
"contraction": "system.contraction.value",
|
||||
"incubationValue": "system.incubation.value",
|
||||
"incubationUnit": "system.incubation.unit",
|
||||
"symptoms": "system.symptoms.value",
|
||||
"permanent": "system.permanent.value",
|
||||
"durationValue": "data.duration.value",
|
||||
"durationUnit": "data.duration.unit",
|
||||
"contraction": "data.contraction.value",
|
||||
"incubationValue": "data.incubation.value",
|
||||
"incubationUnit": "data.incubation.unit",
|
||||
"symptoms": "data.symptoms.value",
|
||||
"permanent": "data.permanent.value",
|
||||
"effects": "effects"
|
||||
},
|
||||
"label": "Maladies",
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"label": "Blessures",
|
||||
"mapping": {
|
||||
"penalty": "system.penalty.value",
|
||||
"penalty": "data.penalty.value",
|
||||
"location": {
|
||||
"path": "system.location.value",
|
||||
"path": "data.location.value",
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"effects": "effects"
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "Prières",
|
||||
"mapping": {
|
||||
"pduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"prange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"ptarget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"pdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"effects": "effects"
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "Sorts",
|
||||
"mapping": {
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"effects": "effects"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"label": "Talents",
|
||||
"mapping": {
|
||||
"tests": "system.tests.value",
|
||||
"tests": "data.tests.value",
|
||||
"effects": "effects"
|
||||
},
|
||||
"entries": [
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"label": "Equipement",
|
||||
"mapping": {
|
||||
"special": "system.special.value",
|
||||
"special": "data.special.value",
|
||||
"qualities": {
|
||||
"path": "system.qualities.value",
|
||||
"path": "data.qualities.value",
|
||||
"converter": "trapping_qualities_flaws"
|
||||
},
|
||||
"flaws": {
|
||||
"path": "system.flaws.value",
|
||||
"path": "data.flaws.value",
|
||||
"converter": "trapping_qualities_flaws"
|
||||
},
|
||||
"effects": "effects"
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "Items (Death on the Reik)",
|
||||
"mapping": {
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
}
|
||||
},
|
||||
|
@ -2,22 +2,22 @@
|
||||
"label": "Items Ennemis Intérieur",
|
||||
"mapping": {
|
||||
"skills": {
|
||||
"path": "system.skills",
|
||||
"path": "data.skills",
|
||||
"converter": "career_skills"
|
||||
},
|
||||
"talents": {
|
||||
"path": "system.talents",
|
||||
"path": "data.talents",
|
||||
"converter": "career_talents"
|
||||
},
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"path": "data.class.value",
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"careergroup": {
|
||||
"path": "system.careergroup.value",
|
||||
"path": "data.careergroup.value",
|
||||
"converter": "career_careergroup"
|
||||
},
|
||||
"trappings": "system.trappings"
|
||||
"trappings": "data.trappings"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "Sorts Ennemi Intérieur",
|
||||
"mapping": {
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"effets": "effects"
|
||||
|
@ -2,11 +2,11 @@
|
||||
"label": "Mutations Supplémentaires",
|
||||
"mappings": {
|
||||
"modifier": {
|
||||
"path": "system.modifier.value",
|
||||
"path": "data.modifier.value",
|
||||
"converter": "mutations_modifier"
|
||||
},
|
||||
"mutationType": {
|
||||
"path": "system.mutationType.value",
|
||||
"path": "data.mutationType.value",
|
||||
"converter": "generic_localization"
|
||||
}
|
||||
},
|
||||
|
@ -2,22 +2,22 @@
|
||||
"label": "Items Rough Nights & Hard Days",
|
||||
"mapping": {
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"tests": "system.tests.value"
|
||||
"tests": "data.tests.value"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
|
@ -1,35 +1,35 @@
|
||||
{
|
||||
"label": "Items Starter Set",
|
||||
"mapping": {
|
||||
"gmdescription": "system.gmdescription.value",
|
||||
"duration": "system.duration.value",
|
||||
"contraction": "system.contraction.value",
|
||||
"incubation": "system.incubation.value",
|
||||
"symptoms": "system.symptoms.value",
|
||||
"permanent": "system.permanent.value",
|
||||
"special": "system.special.value",
|
||||
"gmdescription": "data.gmdescription.value",
|
||||
"duration": "data.duration.value",
|
||||
"contraction": "data.contraction.value",
|
||||
"incubation": "data.incubation.value",
|
||||
"symptoms": "data.symptoms.value",
|
||||
"permanent": "data.permanent.value",
|
||||
"special": "data.special.value",
|
||||
"qualities": {
|
||||
"path": "system.qualities.value",
|
||||
"path": "data.qualities.value",
|
||||
"converter": "trapping_qualities_flaws"
|
||||
},
|
||||
"flaws": {
|
||||
"path": "system.flaws.value",
|
||||
"path": "data.flaws.value",
|
||||
"converter": "trapping_qualities_flaws"
|
||||
},
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
}
|
||||
},
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "UG - Carrières",
|
||||
"mapping": {
|
||||
"skills": {
|
||||
"path": "system.skills",
|
||||
"path": "data.skills",
|
||||
"converter": "career_skills"
|
||||
},
|
||||
"talents": {
|
||||
"path": "system.talents",
|
||||
"path": "data.talents",
|
||||
"converter": "career_talents"
|
||||
},
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"path": "data.class.value",
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"careergroup": "system.careergroup.value",
|
||||
"trappings": "system.trappings"
|
||||
"careergroup": "data.careergroup.value",
|
||||
"trappings": "data.trappings"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
"converter": "bestiary_traits"
|
||||
},
|
||||
"characteristics": {
|
||||
"path": "system.characteristics",
|
||||
"path": "data.characteristics",
|
||||
"converter": "npc_characteristics"
|
||||
}
|
||||
},
|
||||
|
@ -2,19 +2,19 @@
|
||||
"label": "UG - Sorts",
|
||||
"mapping": {
|
||||
"sduration": {
|
||||
"path": "system.duration.value",
|
||||
"path": "data.duration.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"srange": {
|
||||
"path": "system.range.value",
|
||||
"path": "data.range.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"starget": {
|
||||
"path": "system.target.value",
|
||||
"path": "data.target.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"sdamage": {
|
||||
"path": "system.damage.value",
|
||||
"path": "data.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
}
|
||||
},
|
||||
|
29
module.json
29
module.json
@ -8,7 +8,7 @@
|
||||
}
|
||||
],
|
||||
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
||||
"version": "6.2.2",
|
||||
"version": "6.1.9",
|
||||
"esmodules": [
|
||||
"babele-register.js",
|
||||
"addon-register.js",
|
||||
@ -135,27 +135,10 @@
|
||||
"flags": {}
|
||||
}
|
||||
],
|
||||
"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.2.zip",
|
||||
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v4/module.json",
|
||||
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.1.9.zip",
|
||||
"id": "wh4-fr-translation",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "10.285"
|
||||
},
|
||||
"relationships": {
|
||||
"systems": [
|
||||
{
|
||||
"id": "wfrp4e",
|
||||
"type": "system",
|
||||
"compatibility": {}
|
||||
}
|
||||
],
|
||||
"requires": [
|
||||
{
|
||||
"id": "babele",
|
||||
"type": "module",
|
||||
"compatibility": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
"name": "wh4-fr-translation",
|
||||
"minimumCoreVersion": "0.8.0",
|
||||
"compatibleCoreVersion": "9"
|
||||
}
|
Reference in New Issue
Block a user