Fixed armor proficiency skilltype not existing

This commit is contained in:
Thaum Rystra
2020-05-08 15:47:36 +02:00
parent eed11e8833
commit f486c3f176
3 changed files with 25 additions and 7 deletions

View File

@@ -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',
},

View File

@@ -162,6 +162,17 @@
:data-id="weapon._id"
@click="clickProperty({_id: weapon._id})"
/>
<v-subheader v-if="armors.length">
Armor
</v-subheader>
<skill-list-tile
v-for="armor in armors"
:key="armor._id"
hide-modifier
:model="armor"
:data-id="armor._id"
@click="clickProperty({_id: armor._id})"
/>
<v-subheader v-if="tools.length">
Tools
</v-subheader>
@@ -308,6 +319,9 @@
weapons(){
return getSkillOfType(this.creatureId, 'weapon');
},
armors(){
return getSkillOfType(this.creatureId, 'armor');
},
languages(){
return getSkillOfType(this.creatureId, 'language');
},

View File

@@ -112,6 +112,9 @@
}, {
text: 'Weapon',
value: 'weapon',
}, {
text: 'Armor',
value: 'armor',
}, {
text: 'Language',
value: 'language',