diff --git a/src/lang/de.json b/src/lang/de.json index fc973952..a457b768 100644 --- a/src/lang/de.json +++ b/src/lang/de.json @@ -99,6 +99,8 @@ "DS4.SpellDuration": "Wirkdauer", "DS4.SpellCooldownDuration": "Abklingzeit", "DS4.SpellScrollPriceGold": "Schriftrollenpreis (Gold)", + "DS4.ActorTypeCharacter": "Charakter", + "DS4.ActorTypeCreature": "Kreatur", "DS4.AttributeBody": "Körper", "DS4.AttributeMobility": "Agilität", "DS4.AttributeMind": "Geist", diff --git a/src/lang/en.json b/src/lang/en.json index f3b4e8a1..50ef84c6 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -99,6 +99,8 @@ "DS4.SpellDuration": "Duration", "DS4.SpellCooldownDuration": "Cooldown", "DS4.SpellScrollPriceGold": "Scroll Price (Gold)", + "DS4.ActorTypeCharacter": "Character", + "DS4.ActorTypeCreature": "Creature", "DS4.AttributeBody": "Body", "DS4.AttributeMobility": "Mobility", "DS4.AttributeMind": "Mind", diff --git a/src/module/config.ts b/src/module/config.ts index 9be27b2a..0f977d84 100644 --- a/src/module/config.ts +++ b/src/module/config.ts @@ -120,6 +120,14 @@ export const DS4 = { electricity: "DS4.SpellCategoryElectricity", }, + /** + * Define the set of actor types + */ + actorTypes: { + character: "DS4.ActorTypeCharacter", + creature: "DS4.ActorTypeCreature", + }, + /** * Define the set of attributes an actor has */ diff --git a/src/module/ds4.ts b/src/module/ds4.ts index 3465ea7d..8bd9ea53 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -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 = {