Files
DiceCloud/rpg-docs/Model/Character/SubSchemas/Spell.js

22 lines
609 B
JavaScript

Schemas.Spell = new SimpleSchema({
_id: {
type: String,
regEx: SimpleSchema.RegEx.Id,
autoValue: function(){
if(!isSet) return Random.id();
}
},
name: {type: String},
description:{type: String},
castingTime:{type: String},
range: {type: String},
duration: {type: Number},
"components.verbal": {type: Boolean},
"components.somatic": {type: Boolean},
"components.material": {type: String, optional: true},
"components.concentration": {type: Boolean},
ritual: {type: Boolean},
selfBuffs: {type: [Schemas.Buff], defaultValue: []},
level: {type: Number},
class: {type: String}
});