Enable gnome and new translations
This commit is contained in:
@ -140,7 +140,7 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
|
||||
});
|
||||
}
|
||||
|
||||
if ( name == "wfrp4e-rnhd2" && module.active ) {
|
||||
if ( name == "wfrp4e-rnhd" && module.active ) {
|
||||
game.wfrp4e.tables.career.name = "Carrières aléatoires";
|
||||
|
||||
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
|
||||
@ -148,8 +148,8 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
|
||||
if ( file.match("career.json") ) {
|
||||
fetch(file).then(r=>r.json()).then(records => {
|
||||
let mycareer = records;
|
||||
for (let k=0; k<game.wfrp4e.config.career.rows.length; k++) {
|
||||
WFRP_Tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
|
||||
for (let k=0; k<game.wfrp4e.tables.career.rows.length; k++) {
|
||||
game.wfrp4e.tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user