Minor fixes and enhancements
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user