From d0e5a1a378fe6307e990d0bde4194247bd542a46 Mon Sep 17 00:00:00 2001 From: Thaum Date: Mon, 17 Nov 2014 13:48:59 +0000 Subject: [PATCH] Added spell schema --- rpg-docs/Model/Character/SubSchemas/Spell.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 rpg-docs/Model/Character/SubSchemas/Spell.js diff --git a/rpg-docs/Model/Character/SubSchemas/Spell.js b/rpg-docs/Model/Character/SubSchemas/Spell.js new file mode 100644 index 00000000..927d3eb5 --- /dev/null +++ b/rpg-docs/Model/Character/SubSchemas/Spell.js @@ -0,0 +1,20 @@ +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}, + "components.concentration": {type: Boolean}, + buffs: {type: [Schemas.Buff], optional: true}, + level: {type: Number}, +}); \ No newline at end of file