Files
DiceCloud/app/imports/api/creature/properties/Proficiencies.js
2019-03-13 09:40:20 +02:00

27 lines
722 B
JavaScript

import schema from '/imports/api/schema.js';
import PropertySchema from '/imports/api/creature/subSchemas/PropertySchema.js';
import ChildSchema from '/imports/api/parenting/ChildSchema.js';
let Proficiencies = new Mongo.Collection("proficiencies");
let ProficiencySchema = schema({
// A number representing how proficient the character is
value: {
type: Number,
allowedValues: [0, 0.5, 1, 2],
defaultValue: 1,
},
// The variableName of the skill to apply this to
skill: {
type: String,
optional: true,
},
});
Proficiencies.attachSchema(ProficiencySchema);
Proficiencies.attachSchema(PropertySchema);
Proficiencies.attachSchema(ChildSchema);
export default Proficiencies;
export { ProficiencySchema };