Setup new compendiums

This commit is contained in:
2020-11-05 23:14:01 +01:00
parent 44a2a9161f
commit 8cb8b2257e
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
/************************************************************************************/
import WFRP_Tables from "/systems/wfrp4e/system/tables-wfrp4e.js";
import WFRP4E from "./modules/system/config-wfrp4e.js";
/************************************************************************************/
const _patch_eis = () => {
@ -269,7 +272,7 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
let filename = file.substring(file.lastIndexOf("/")+1, file.indexOf(".json"));
if ( __wfrp4e_tables[filename] == 1 ) { // Matching table name -> patch !
fetch(file).then(r=>r.json()).then(records => {
game.wfrp4e.tables[filename] = records;
WFRP_Tables[filename] = records;
});
}
}