From 4f22403c5f35c2e24162a5efea7115257bb4a738 Mon Sep 17 00:00:00 2001 From: pallando Date: Tue, 12 Sep 2023 15:55:37 +0200 Subject: [PATCH] Fix class trappings in character creation --- fr.json | 17 +++++++++++------ modules/config-patch.js | 6 ++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/fr.json b/fr.json index 79673f2..7b10595 100644 --- a/fr.json +++ b/fr.json @@ -1523,14 +1523,19 @@ "Academics": "Lettrés", "Academic": "Lettré", - "Burgher": "Citadins", - "Rogues": "Roublards", + "Burghers": "Citadins", + "Burgher": "Citadin", + "Rogues": "Roublards", + "Rogue": "Roublard", "Riverfolk": "Riverains", "Peasants": "Ruraux", - "Peasant": "Ruraux", - "Warrior": "Guerriers", - "Ranger": "Itinérants", - "Courtier": "Courtisans", + "Peasant": "Rural", + "Warriors": "Guerriers", + "Warrior": "Guerrier", + "Rangers": "Itinérants", + "Ranger": "Itinérant", + "Courtiers": "Courtisans", + "Courtier": "Courtisan", "Calvalry": "Cavalerie", "Flail": "Fléau", diff --git a/modules/config-patch.js b/modules/config-patch.js index ec6669e..eab63ab 100644 --- a/modules/config-patch.js +++ b/modules/config-patch.js @@ -176,6 +176,12 @@ export class WH4FRPatchConfig { game.wfrp4e.config.species["welf"] = "Elfe Sylvain"; } + if (game.wfrp4e.config.classTrappings) { + for(const c of Object.keys(game.wfrp4e.config.classTrappings)) { + game.wfrp4e.config.classTrappings[game.i18n.localize(c)] = game.wfrp4e.config.classTrappings[c]; + } + } + this.patch_species_skills(); this.patch_species_talents(); this.patch_subspecies();