Compare commits

..

2 Commits

3 changed files with 20 additions and 4 deletions

View File

@ -69,10 +69,16 @@
"converter": "generic_localization" "converter": "generic_localization"
}, },
"durationValue": "system.duration.value", "durationValue": "system.duration.value",
"durationUnit": "system.duration.unit", "durationUnit": {
"path": "system.duration.unit",
"converter": "disease_duration_unit"
},
"contraction": "system.contraction.value", "contraction": "system.contraction.value",
"incubationValue": "system.incubation.value", "incubationValue": "system.incubation.value",
"incubationUnit": "system.incubation.unit", "incubationUnit": {
"path": "system.incubation.unit",
"converter": "disease_duration_unit"
},
"symptoms": "system.symptoms.value", "symptoms": "system.symptoms.value",
"permanent": "system.permanent.value", "permanent": "system.permanent.value",
"special": "system.special.value", "special": "system.special.value",

View File

@ -78,10 +78,16 @@
"converter": "generic_localization" "converter": "generic_localization"
}, },
"durationValue": "system.duration.value", "durationValue": "system.duration.value",
"durationUnit": "system.duration.unit", "durationUnit": {
"path": "system.duration.unit",
"converter": "disease_duration_unit"
},
"contraction": "system.contraction.value", "contraction": "system.contraction.value",
"incubationValue": "system.incubation.value", "incubationValue": "system.incubation.value",
"incubationUnit": "system.incubation.unit", "incubationUnit": {
"path": "system.incubation.unit",
"converter": "disease_duration_unit"
},
"symptoms": "system.symptoms.value", "symptoms": "system.symptoms.value",
"permanent": "system.permanent.value", "permanent": "system.permanent.value",
"special": "system.special.value", "special": "system.special.value",

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();
} }
}); });
} }