101 lines
1.8 KiB
JavaScript
101 lines
1.8 KiB
JavaScript
const PROPERTIES = Object.freeze({
|
|
action: {
|
|
icon: '$vuetify.icons.action',
|
|
name: 'Action'
|
|
},
|
|
attack: {
|
|
icon: '$vuetify.icons.attack',
|
|
name: 'Attack'
|
|
},
|
|
attribute: {
|
|
icon: '$vuetify.icons.attribute',
|
|
name: 'Attribute'
|
|
},
|
|
adjustment: {
|
|
icon: '$vuetify.icons.attribute_damage',
|
|
name: 'Attribute damage'
|
|
},
|
|
buff: {
|
|
icon: '$vuetify.icons.buff',
|
|
name: 'Buff'
|
|
},
|
|
classLevel: {
|
|
icon: '$vuetify.icons.class_level',
|
|
name: 'Class level'
|
|
},
|
|
container: {
|
|
icon: 'work',
|
|
name: 'Container'
|
|
},
|
|
damage: {
|
|
icon: '$vuetify.icons.damage',
|
|
name: 'Damage'
|
|
},
|
|
damageMultiplier: {
|
|
icon: '$vuetify.icons.damage_multiplier',
|
|
name: 'Damage multiplier'
|
|
},
|
|
effect: {
|
|
icon: '$vuetify.icons.effect',
|
|
name: 'Effect'
|
|
},
|
|
feature: {
|
|
icon: 'subject',
|
|
name: 'Feature'
|
|
},
|
|
folder: {
|
|
icon: 'folder',
|
|
name: 'Folder'
|
|
},
|
|
item: {
|
|
icon: '$vuetify.icons.item',
|
|
name: 'Item'
|
|
},
|
|
note: {
|
|
icon: 'note',
|
|
name: 'Note'
|
|
},
|
|
proficiency: {
|
|
icon: 'radio_button_checked',
|
|
name: 'Proficiency'
|
|
},
|
|
roll: {
|
|
icon: '$vuetify.icons.roll',
|
|
name: 'Roll'
|
|
},
|
|
savingThrow: {
|
|
icon: '$vuetify.icons.saving_throw',
|
|
name: 'Saving throw'
|
|
},
|
|
skill: {
|
|
icon: '$vuetify.icons.skill',
|
|
name: 'Skill'
|
|
},
|
|
propertySlot: {
|
|
icon: 'tab_unselected',
|
|
name: 'Slot'
|
|
},
|
|
spellList: {
|
|
icon: '$vuetify.icons.spell_list',
|
|
name: 'Spell list'
|
|
},
|
|
spell: {
|
|
icon: '$vuetify.icons.spell',
|
|
name: 'Spell'
|
|
},
|
|
toggle: {
|
|
icon: '$vuetify.icons.toggle',
|
|
name: 'Toggle'
|
|
},
|
|
});
|
|
|
|
export default PROPERTIES;
|
|
|
|
export function getPropertyName(type){
|
|
return type && PROPERTIES[type] && PROPERTIES[type].name;
|
|
}
|
|
|
|
export function getPropertyIcon(type){
|
|
return type && PROPERTIES[type] && PROPERTIES[type].icon;
|
|
}
|