Fix Foundry v13/v14 and Babele 2.8+ compatibility breaks

- Remove dead import of babele/script/translated-compendium.js (404,
  MIME-type block on load) and its unused TranslatedCompendium usage
- Replace broken game.babele.converters.X() cross-calls (career_skills,
  career_careergroup, tableResults) with direct function references,
  since Babele 2.8+ wraps converters as objects
- Rename RollTable fields data.text/results[].text -> .description and
  documentCollection -> documentUuid to match Babele's current schema
- Migrate ActiveEffect label -> name (Foundry v13 requires name) with
  legacy fallback in process_effects, bestiary_traits, effects and
  diseases_effects converters
- Fix stray bare duplicate() call and a syntax typo in the infighting
  effect script in config-patch.js
- Bump module.json compatibility to minimum 13 / verified 14
This commit is contained in:
2026-07-20 21:54:57 +02:00
parent 9b09f6d1da
commit 5e2c91c3d4
4 changed files with 66 additions and 49 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/************************************************************************************/
//import WFRP_Tables from "/systems/wfrp4e/modules/system/tables-wfrp4e.js";
import { WH4FRPatchConfig } from "./config-patch.js";
import { TranslatedCompendium } from "../../babele/script/translated-compendium.js";
//import { TranslatedCompendium } from "../../babele/script/translated-compendium.js";
/************************************************************************************/
const _patch_eis = () => {
@@ -365,7 +365,7 @@ const __add_actors_translation = () => {
}
}
//console.log(metadata, translations)
game.babele.packs.set(metadata.metadata.id, new TranslatedCompendium(metadata.metadata, translations))
//game.babele.packs.set(metadata.metadata.id, new TranslatedCompendium(metadata.metadata, translations))
}
}
}