diff --git a/app/imports/api/properties/Skills.js b/app/imports/api/properties/Skills.js index 3597d097..eb871161 100644 --- a/app/imports/api/properties/Skills.js +++ b/app/imports/api/properties/Skills.js @@ -24,13 +24,14 @@ let SkillSchema = new SimpleSchema({ skillType: { type: String, allowedValues: [ - "skill", - "save", - "check", - "tool", - "weapon", - "language", - "utility", //not displayed anywhere + 'skill', + 'save', + 'check', + 'tool', + 'weapon', + 'armor', + 'language', + 'utility', //not displayed anywhere ], defaultValue: 'skill', }, diff --git a/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue b/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue index 610f9758..79d27641 100644 --- a/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue +++ b/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue @@ -162,6 +162,17 @@ :data-id="weapon._id" @click="clickProperty({_id: weapon._id})" /> + + Armor + + Tools @@ -308,6 +319,9 @@ weapons(){ return getSkillOfType(this.creatureId, 'weapon'); }, + armors(){ + return getSkillOfType(this.creatureId, 'armor'); + }, languages(){ return getSkillOfType(this.creatureId, 'language'); }, diff --git a/app/imports/ui/properties/forms/SkillForm.vue b/app/imports/ui/properties/forms/SkillForm.vue index d3a2b8ab..1b4b1738 100644 --- a/app/imports/ui/properties/forms/SkillForm.vue +++ b/app/imports/ui/properties/forms/SkillForm.vue @@ -112,6 +112,9 @@ }, { text: 'Weapon', value: 'weapon', + }, { + text: 'Armor', + value: 'armor', }, { text: 'Language', value: 'language',