Fix career + ajout traduction de tables

This commit is contained in:
2021-05-31 14:04:31 +02:00
parent 9d5883ca8d
commit 00d87b8795
24 changed files with 4470 additions and 132 deletions

View File

@ -143,7 +143,7 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
if ( name == "wfrp4e-rnhd" && module.active && game.wfrp4e.tables.career) {
game.wfrp4e.tables.career.name = "Carrières aléatoires";
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
/*FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
for (var file of resp.files) {
if ( file.match("career_gnome.json") ) {
fetch(file).then(r=>r.json()).then(records => {
@ -156,7 +156,7 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
});
}
}
});
});*/
WH4FRPatchConfig.perform_rnhd_patch();
if (game.user.isGM && chatFlag)