Setup new compendiums

This commit is contained in:
sladecraven 2020-11-05 22:40:59 +01:00
parent f82352f4f0
commit e25371eec7
1 changed files with 3 additions and 3 deletions

View File

@ -279,18 +279,18 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
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 => {
/*FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
for (var file of resp.files) {
if ( file.match("career.json") ) {
fetch(file).then(r=>r.json()).then(records => {
let mycareer = records;
for (let k=0; k<WFRP_Tables.career.rows.length; k++) {
for (let k=0; k<game.wfrp4e.config.career.rows.length; k++) {
WFRP_Tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
}
});
}
}
});
});*/
game.wfrp4e.config.speciesSkills["gnome"] = [
"Focalisation (Ulgu)",
"Charme",