Carrieres pour gnomes

This commit is contained in:
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 !!!
}
});
}