Add converter for disease incubation/duration units

This commit is contained in:
Pallando 2024-11-10 14:25:36 +01:00
parent e1e52ca2be
commit 46b47a5b24

View File

@ -662,6 +662,10 @@ Hooks.once('init', () => {
// Auto-translate duration // Auto-translate duration
"spells_duration_range_target_damage": (value) => { "spells_duration_range_target_damage": (value) => {
return WFRP4FrTranslation.processSpellContent(value); return WFRP4FrTranslation.processSpellContent(value);
},
// Auto-translate disease duration units
"disease_duration_unit": (unit) => {
return game.i18n.localize(unit).capitalize();
} }
}); });
} }