Add localization of actor and item type labels

This commit is contained in:
Johannes Loher 2021-01-10 02:35:48 +01:00
parent 17d0213e62
commit 0568afc32b
4 changed files with 16 additions and 0 deletions

View file

@ -22,6 +22,10 @@ Hooks.once("init", async function () {
CONFIG.Actor.entityClass = DS4Actor as typeof Actor;
CONFIG.Item.entityClass = DS4Item as typeof Item;
// Define localized type labels
CONFIG.Actor.typeLabels = DS4.actorTypes;
CONFIG.Item.typeLabels = DS4.itemTypes;
// Configure Dice
CONFIG.Dice.types = [Die, DS4Check];
CONFIG.Dice.terms = {