Carrieres pour gnomes

This commit is contained in:
sladecraven 2021-05-06 23:06:17 +02:00
parent d6346b2859
commit d7bc636714
4 changed files with 31 additions and 5 deletions

View File

@ -145,11 +145,13 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
for (var file of resp.files) {
if ( file.match("career.json") ) {
if ( file.match("career_gnome.json") ) {
fetch(file).then(r=>r.json()).then(records => {
let mycareer = records;
game.wfrp4e.tables.career.columns = mycareer.columns;
for (let k=0; k<game.wfrp4e.tables.career.rows.length; k++) {
game.wfrp4e.tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
game.wfrp4e.tables.career.rows[k].range = mycareer.rows[k].range;
game.wfrp4e.tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
}
});
}

View File

@ -565,7 +565,7 @@
"name": "Duelliste",
"description": "",
"trappings": [
"Main Gauche ou Brise-Epées",
"Main Gauche ou Brise-Epée",
"Pistolet avec poudre et munitions"
]
},
@ -1469,7 +1469,7 @@
"Fléau ou Arme Loude",
"Arme à 1 main",
"Filet ou Fouet",
"Bouclier ou Brise-Epées"
"Bouclier ou Brise-Epée"
]
},
{

View File

@ -3,7 +3,7 @@
"name": "WH4-fr-translation",
"title": "Traduction du module WH4 en Français.",
"description": "La traduction du module WH4.",
"version": "1.5.9",
"version": "1.5.10",
"minimumCoreVersion" : "0.7.1",
"compatibleCoreVersion": "0.7.9",
"author": "LeRatierBretonnien",

File diff suppressed because one or more lines are too long