Generalised some dialogs
This commit is contained in:
@@ -9,10 +9,10 @@ Schemas.Action = new SimpleSchema({
|
||||
regEx: SimpleSchema.RegEx.Id
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
type: String, trim: false
|
||||
},
|
||||
description: {
|
||||
type: String
|
||||
type: String, trim: false
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
|
||||
@@ -10,21 +10,25 @@ Schemas.Attack = new SimpleSchema({
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
defaultValue: "New Attack"
|
||||
defaultValue: "New Attack",
|
||||
trim: false
|
||||
},
|
||||
range: {
|
||||
type: String,
|
||||
optional: true
|
||||
optional: true,
|
||||
trim: false
|
||||
},
|
||||
attackBonus: {
|
||||
type: String,
|
||||
optional: true,
|
||||
defaultValue: "strengthMod + proficiencyBonus"
|
||||
defaultValue: "strengthMod + proficiencyBonus",
|
||||
trim: false
|
||||
},
|
||||
damage: {
|
||||
type: String,
|
||||
optional: true,
|
||||
defaultValue: "1d8 + {strengthMod}"
|
||||
defaultValue: "1d8 + {strengthMod}",
|
||||
trim: false
|
||||
},
|
||||
damageType: {
|
||||
type: String,
|
||||
|
||||
@@ -11,7 +11,8 @@ Schemas.Effect = new SimpleSchema({
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
optional: true //TODO make necessary if there is no owner
|
||||
optional: true, //TODO make necessary if there is no owner
|
||||
trim: false
|
||||
},
|
||||
operation: {
|
||||
type: String,
|
||||
@@ -25,7 +26,8 @@ Schemas.Effect = new SimpleSchema({
|
||||
},
|
||||
calculation: {
|
||||
type: String,
|
||||
optional: true
|
||||
optional: true,
|
||||
trim: false
|
||||
},
|
||||
//indicates what the effect originated from
|
||||
type: {
|
||||
|
||||
@@ -2,8 +2,8 @@ Experiences = new Meteor.Collection("experience");
|
||||
|
||||
Schemas.Experience = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String, defaultValue: "New Experience"},
|
||||
description: {type: String, optional: true},
|
||||
name: {type: String, defaultValue: "New Experience", trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
value: {type: Number, defaultValue: 0},
|
||||
dateAdded: {
|
||||
type: Date,
|
||||
|
||||
@@ -2,8 +2,8 @@ Features = new Meteor.Collection("features");
|
||||
|
||||
Schemas.Feature = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String},
|
||||
description:{type: String, optional: true},
|
||||
name: {type: String, trim: false},
|
||||
description:{type: String, optional: true, trim: false},
|
||||
uses: {type: String, optional: true, trim: false},
|
||||
used: {type: Number, defaultValue: 0},
|
||||
reset: {type: String, allowedValues: ["manual", "longRest", "shortRest"], defaultValue: "manual"},
|
||||
|
||||
@@ -2,7 +2,7 @@ Classes = new Meteor.Collection("classes");
|
||||
|
||||
Schemas.Class = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String},
|
||||
name: {type: String, trim: false},
|
||||
createdAt: {
|
||||
type: Date,
|
||||
autoValue: function() {
|
||||
|
||||
@@ -2,8 +2,8 @@ Notes = new Meteor.Collection("notes");
|
||||
|
||||
Schemas.Note = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String},
|
||||
description: {type: String, optional: true},
|
||||
name: {type: String, trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
|
||||
});
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ Schemas.Proficiency = new SimpleSchema({
|
||||
regEx: SimpleSchema.RegEx.Id
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
type: String,
|
||||
trim: false
|
||||
},
|
||||
//indicates what type of thing proficiency originated from
|
||||
type: {
|
||||
|
||||
@@ -2,11 +2,11 @@ SpellLists = new Meteor.Collection("spellLists");
|
||||
|
||||
Schemas.SpellLists = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String},
|
||||
description: {type: String, optional: true},
|
||||
saveDC: {type: String, optional: true},
|
||||
attackBonus: {type: String, optional: true},
|
||||
maxPrepared: {type: String, optional: true},
|
||||
name: {type: String, trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
saveDC: {type: String, optional: true, trim: false},
|
||||
attackBonus: {type: String, optional: true, trim: false},
|
||||
maxPrepared: {type: String, optional: true, trim: false},
|
||||
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"},
|
||||
"settings.showUnprepared": {type: Boolean, defaultValue: true},
|
||||
});
|
||||
|
||||
@@ -4,11 +4,11 @@ Schemas.Spell = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
listId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
prepared: {type: String, defaultValue: "unprepared", allowedValues: ["prepared","unprepared","always"]},
|
||||
name: {type: String},
|
||||
description: {type: String, optional: true},
|
||||
castingTime: {type: String, optional: true, defaultValue: "action"},
|
||||
range: {type: String, optional: true},
|
||||
duration: {type: String, optional: true},
|
||||
name: {type: String, trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
castingTime: {type: String, optional: true, defaultValue: "action", trim: false},
|
||||
range: {type: String, optional: true, trim: false},
|
||||
duration: {type: String, optional: true, trim: false},
|
||||
"components.verbal": {type: Boolean, defaultValue: false},
|
||||
"components.somatic": {type: Boolean, defaultValue: false},
|
||||
"components.material": {type: String, optional: true},
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
Containers = new Meteor.Collection("containers");
|
||||
|
||||
Schemas.Container = new SimpleSchema({
|
||||
name: { type: String },
|
||||
name: { type: String, trim: false },
|
||||
charId: { type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
isCarried: { type: Boolean },
|
||||
weight: {type: Number, min: 0, defaultValue: 0, decimal: true},
|
||||
value: {type: Number, min: 0, defaultValue: 0, decimal: true},
|
||||
description:{type: String, optional: true},
|
||||
description:{type: String, optional: true, trim: false},
|
||||
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
Items = new Meteor.Collection('items');
|
||||
|
||||
Schemas.Item = new SimpleSchema({
|
||||
name: {type: String, defaultValue: "New Item"},
|
||||
plural: {type: String, optional: true},
|
||||
description:{type: String, optional: true},
|
||||
name: {type: String, defaultValue: "New Item", trim: false},
|
||||
plural: {type: String, optional: true, trim: false},
|
||||
description:{type: String, optional: true, trim: false},
|
||||
container: {type: String, regEx: SimpleSchema.RegEx.Id}, //id of container it is normally stowed in
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id}, //id of owner
|
||||
quantity: {type: Number, min: 0, defaultValue: 1},
|
||||
|
||||
Reference in New Issue
Block a user