Minor fixes and enhancements

This commit is contained in:
2025-05-28 21:30:07 +02:00
parent 2ed29b3a3a
commit 7432c4aced
35 changed files with 222 additions and 94 deletions

View File

@@ -115,6 +115,16 @@ export class WH4FRPatchConfig {
}
}
/************************************************************************************/
static fixSpeciesTable() {
let speciesTable = game.wfrp4e.tables.findTable("species");
for (let result of speciesTable.results) {
result.name = game.i18n.localize(result.name);
}
console.log("Species table patched to use 'Humain' instead of 'Human'", speciesTable);
}
/************************************************************************************/
static perform_patch() {
@@ -128,6 +138,9 @@ export class WH4FRPatchConfig {
// Detect and patch as necessary
if (game.wfrp4e.config?.talentBonuses ) {
this.fixSpeciesTable() // Force 'name' field replacement
game.wfrp4e.config.qualityDescriptions["distract"] = game.i18n.localize("WFRP4E.Properties.Distract"); // Patch missing quality
game.wfrp4e.config.talentBonuses = {