Sync to v9/v5

This commit is contained in:
2021-12-22 17:25:01 +01:00
parent d7c25ce7d2
commit bdb2ab552b
7 changed files with 852 additions and 10 deletions

View File

@ -137,6 +137,9 @@ const loadCompendium = async (compendium, filter = item => true) => {
/************************************************************************************/
const patch_core_tables = (tableList) => {
if ( game.version) { // v9 and above
return;
}
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
for (var file of resp.files) {
let filename = file.substring(file.lastIndexOf("/")+1, file.indexOf(".json"));