added alphabet item

- added to database and localization definitions
- added sheet
- added to talents & abilities tab
- removed languages & alphabets from actor properties
This commit is contained in:
Gesina Schwalbe 2021-01-08 23:54:41 +01:00
parent 1011b85067
commit 737a644ecd
6 changed files with 36 additions and 6 deletions

View file

@ -46,6 +46,8 @@
"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",

View file

@ -51,6 +51,7 @@ export const DS4 = {
talent: "DS4.ItemTypeTalent",
racialAbility: "DS4.ItemTypeRacialAbility",
language: "DS4.ItemTypeLanguage",
alphabet: "DS4.ItemTypeAlphabet",
},
/**

View file

@ -8,7 +8,8 @@ export type DS4ItemDataType =
| DS4Equipment
| DS4Talent
| DS4RacialAbility
| DS4Language;
| DS4Language
| DS4Alphabet;
// types
@ -36,6 +37,7 @@ interface DS4Trinket extends DS4ItemBase, DS4ItemPhysical, DS4ItemEquipable {}
interface DS4Equipment extends DS4ItemBase, DS4ItemPhysical {}
type DS4RacialAbility = DS4ItemBase;
type DS4Language = DS4ItemBase;
type DS4Alphabet = DS4ItemBase;
// templates

View file

@ -97,10 +97,6 @@
"used": 0
}
},
"language": {
"languages": "",
"alphabets": ""
},
"profile": {
"gender": "",
"birthday": "",
@ -115,7 +111,17 @@
}
},
"Item": {
"types": ["weapon", "armor", "shield", "trinket", "equipment", "talent", "racialAbility", "language"],
"types": [
"weapon",
"armor",
"shield",
"trinket",
"equipment",
"talent",
"racialAbility",
"language",
"alphabet"
],
"templates": {
"base": {
"description": ""
@ -166,6 +172,9 @@
},
"language": {
"templates": ["base"]
},
"alphabet": {
"templates": ["base"]
}
}
}

View file

@ -138,4 +138,12 @@
{{> baseItemListEntry item=item}}
{{/each}}
</ol>
<h4 class="items-list-title">{{localize 'DS4.ItemTypeAlphabetPlural'}}</h4>
<ol class="items-list">
{{> baseItemListHeader dataType='alphabet' }}
{{#each itemsByType.alphabet as |item id|}}
{{> baseItemListEntry item=item}}
{{/each}}
</ol>
</div>

View file

@ -0,0 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
{{!-- Common Item body --}}
{{> systems/ds4/templates/item/partials/body.hbs}}
</form>