Added basic timing, made features a part of character schema

This commit is contained in:
Thaum
2014-11-13 12:45:57 +00:00
parent 7ab97a17cc
commit 0ead14d159
10 changed files with 84 additions and 90 deletions

View File

@@ -0,0 +1,11 @@
Schemas.Feature = new SimpleSchema({
_id: {type: String, regEx: SimpleSchema.RegEx.Id},
character: {type: String, regEx: SimpleSchema.RegEx.Id},
name: {type: String},
description:{type: String},
buffs: {type: [Schemas.Buff], optional: true},
enabled: {type: Boolean},
expires: {type: Number, optional: true},
duration: {type: Number, optional: true},
uses: {type: Number, min: 0, optional: true},
})

View File

@@ -1,13 +1,13 @@
Schemas.Strings = new SimpleSchema({
name: { type: String, defaultValue: "" },
alignment: { type: String, defaultValue: "" },
gender: { type: String, defaultValue: "" },
race: { type: String, defaultValue: "" },
description:{ type: String, defaultValue: "" },
personality:{ type: String, defaultValue: "" },
ideals: { type: String, defaultValue: "" },
bonds: { type: String, defaultValue: "" },
flaws: { type: String, defaultValue: "" },
backstory: { type: String, defaultValue: "" },
notes: { type: String, defaultValue: "" },
name: { type: String, defaultValue: "", optional: true },
alignment: { type: String, defaultValue: "", optional: true },
gender: { type: String, defaultValue: "", optional: true },
race: { type: String, defaultValue: "", optional: true },
description:{ type: String, defaultValue: "", optional: true },
personality:{ type: String, defaultValue: "", optional: true },
ideals: { type: String, defaultValue: "", optional: true },
bonds: { type: String, defaultValue: "", optional: true },
flaws: { type: String, defaultValue: "", optional: true },
backstory: { type: String, defaultValue: "", optional: true },
notes: { type: String, defaultValue: "", optional: true },
});