Files
DiceCloud/app/imports/constants/PROPERTIES.js

89 lines
1.4 KiB
JavaScript

const PROPERTIES = Object.freeze({
action: {
icon: 'offline_bolt',
name: 'Action'
},
attack: {
icon: 'bolt',
name: 'Attack'
},
attribute: {
icon: 'donut_small',
name: 'Attribute'
},
buff: {
icon: 'star',
name: 'Buff'
},
classLevel: {
icon: 'school',
name: 'Class level'
},
damageMultiplier: {
icon: 'layers',
name: 'Damage multiplier'
},
effect: {
icon: 'show_chart',
name: 'Effect'
},
experience: {
icon: 'add',
name: 'Experience'
},
feature: {
icon: 'subject',
name: 'Feature'
},
folder: {
icon: 'folder',
name: 'Folder'
},
note: {
icon: 'note',
name: 'Note'
},
proficiency: {
icon: 'radio_button_checked',
name: 'Proficiency'
},
roll: {
icon: 'flare',
name: 'Roll'
},
savingThrow: {
icon: 'all_out',
name: 'Saving throw'
},
skill: {
icon: 'check_box',
name: 'Skill'
},
spellList: {
icon: 'list',
name: 'Spell list'
},
spell: {
icon: 'whatshot',
name: 'Spell'
},
container: {
icon: 'work',
name: 'Container'
},
item: {
icon: 'category',
name: 'Item'
},
});
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;
}