Files
DiceCloud/app/imports/api/library/subSchemas/LibraryAttacks.js
2018-10-19 14:01:23 +02:00

46 lines
664 B
JavaScript

import SimpleSchema from 'simpl-schema';
libraryAttacksSchema = new SimpleSchema({
name: {
type: String,
defaultValue: "New Attack",
trim: false,
},
details: {
type: String,
optional: true,
trim: false,
},
attackBonus: {
type: String,
optional: true,
trim: false,
},
damage: {
type: String,
optional: true,
trim: false,
},
damageType: {
type: String,
allowedValues: [
"bludgeoning",
"piercing",
"slashing",
"acid",
"cold",
"fire",
"force",
"lightning",
"necrotic",
"poison",
"psychic",
"radiant",
"thunder",
],
defaultValue: "slashing",
},
});
export default libraryAttacksSchema;