Fixed armor proficiency skilltype not existing
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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');
|
||||
},
|
||||
|
||||
@@ -112,6 +112,9 @@
|
||||
}, {
|
||||
text: 'Weapon',
|
||||
value: 'weapon',
|
||||
}, {
|
||||
text: 'Armor',
|
||||
value: 'armor',
|
||||
}, {
|
||||
text: 'Language',
|
||||
value: 'language',
|
||||
|
||||
Reference in New Issue
Block a user