diff --git a/src/lang/en.json b/src/lang/en.json index a768c9f..4f79f7e 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -44,6 +44,10 @@ "DS4.ItemTypeTalentPlural": "Talents", "DS4.ItemTypeRacialAbility": "Racial Ability", "DS4.ItemTypeRacialAbilityPlural": "Racial Abilities", + "DS4.ItemTypeLanguage": "Language", + "DS4.ItemTypeLanguagePlural": "Languages", + "DS4.ItemTypeAlphabet": "Alphabet", + "DS4.ItemTypeAlphabetPlural": "Alphabets", "DS4.ArmorType": "Armor Type", "DS4.ArmorTypeAbbr": "AT", "DS4.ArmorMaterialType": "Material Type", @@ -88,7 +92,6 @@ "DS4.BaseInfoRace": "Race", "DS4.BaseInfoClass": "Class", "DS4.BaseInfoHeroClass": "Hero Class", - "DS4.BaseInfoRacialAbilities": "Racial Abilites", "DS4.BaseInfoCulture": "Culture", "DS4.ProgressionLevel": "Level", "DS4.ProgressionExperiencePoints": "Experience Points", diff --git a/src/module/actor/actor-data.ts b/src/module/actor/actor-data.ts index 4269bce..a3ac75b 100644 --- a/src/module/actor/actor-data.ts +++ b/src/module/actor/actor-data.ts @@ -57,7 +57,6 @@ interface DS4ActorDataBaseInfo { race: string; class: string; heroClass: string; - racialAbilities: string; culture: string; } diff --git a/src/module/config.ts b/src/module/config.ts index 28e0a65..03b2c9d 100644 --- a/src/module/config.ts +++ b/src/module/config.ts @@ -50,6 +50,8 @@ export const DS4 = { equipment: "DS4.ItemTypeEquipment", talent: "DS4.ItemTypeTalent", racialAbility: "DS4.ItemTypeRacialAbility", + language: "DS4.ItemTypeLanguage", + alphabet: "DS4.ItemTypeAlphabet", }, /** @@ -136,7 +138,6 @@ export const DS4 = { race: "DS4.BaseInfoRace", class: "DS4.BaseInfoClass", heroClass: "DS4.BaseInfoHeroClass", - racialAbilities: "DS4.BaseInfoRacialAbilities", culture: "DS4.BaseInfoCulture", }, diff --git a/src/module/ds4.ts b/src/module/ds4.ts index cd5dd1a..a9d46ac 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -41,6 +41,7 @@ Hooks.once("init", async function () { async function registerHandlebarsPartials() { const templatePaths = [ + "systems/ds4/templates/item/partials/sheet-header.hbs", "systems/ds4/templates/item/partials/description.hbs", "systems/ds4/templates/item/partials/details.hbs", "systems/ds4/templates/item/partials/effects.hbs", diff --git a/src/module/item/item-data.ts b/src/module/item/item-data.ts index 76b90e7..23105eb 100644 --- a/src/module/item/item-data.ts +++ b/src/module/item/item-data.ts @@ -7,7 +7,9 @@ export type DS4ItemDataType = | DS4Trinket | DS4Equipment | DS4Talent - | DS4RacialAbility; + | DS4RacialAbility + | DS4Language + | DS4Alphabet; // types @@ -34,6 +36,8 @@ interface DS4Shield extends DS4ItemBase, DS4ItemPhysical, DS4ItemEquipable, DS4I interface DS4Trinket extends DS4ItemBase, DS4ItemPhysical, DS4ItemEquipable {} interface DS4Equipment extends DS4ItemBase, DS4ItemPhysical {} type DS4RacialAbility = DS4ItemBase; +type DS4Language = DS4ItemBase; +type DS4Alphabet = DS4ItemBase; // templates diff --git a/src/template.json b/src/template.json index 6e8d635..eee8ace 100644 --- a/src/template.json +++ b/src/template.json @@ -83,7 +83,6 @@ "race": "", "class": "", "heroClass": "", - "racialAbilities": "", "culture": "" }, "progression": { @@ -98,10 +97,6 @@ "used": 0 } }, - "language": { - "languages": "", - "alphabets": "" - }, "profile": { "gender": "", "birthday": "", @@ -116,7 +111,17 @@ } }, "Item": { - "types": ["weapon", "armor", "shield", "trinket", "equipment", "talent", "racialAbility"], + "types": [ + "weapon", + "armor", + "shield", + "trinket", + "equipment", + "talent", + "racialAbility", + "language", + "alphabet" + ], "templates": { "base": { "description": "" @@ -164,6 +169,12 @@ }, "racialAbility": { "templates": ["base"] + }, + "language": { + "templates": ["base"] + }, + "alphabet": { + "templates": ["base"] } } } diff --git a/src/templates/actor/partials/talents-overview.hbs b/src/templates/actor/partials/talents-overview.hbs index 179703e..7aa194e 100644 --- a/src/templates/actor/partials/talents-overview.hbs +++ b/src/templates/actor/partials/talents-overview.hbs @@ -25,7 +25,6 @@ !-- The partial assumes a variable item to be given in the context. !-- !-- @param item: hand over the item to the partial as hash parameter -!-- @param partial-block: hand over custom children of the flexbox in the partial block. --}} {{#*inline "talentListEntry"}}