Added color options for containers, added spell lists
This commit is contained in:
@@ -187,7 +187,8 @@ Schemas.Character = new SimpleSchema({
|
||||
//permissions
|
||||
owner: { type: String, regEx: SimpleSchema.RegEx.Id },
|
||||
readers: { type: [String], regEx: SimpleSchema.RegEx.Id },
|
||||
writers: { type: [String], regEx: SimpleSchema.RegEx.Id }
|
||||
writers: { type: [String], regEx: SimpleSchema.RegEx.Id },
|
||||
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "grey"}
|
||||
//TODO add per-character settings
|
||||
});
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ Schemas.Feature = new SimpleSchema({
|
||||
uses: {type: String, optional: true, trim: false},
|
||||
used: {type: Number, defaultValue: 0},
|
||||
reset: {type: String, allowedValues: ["manual", "longRest", "shortRest"], defaultValue: "manual"},
|
||||
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"}
|
||||
});
|
||||
|
||||
Features.attachSchema(Schemas.Feature);
|
||||
|
||||
@@ -3,8 +3,7 @@ Spells = new Meteor.Collection("spells");
|
||||
Schemas.Spell = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
listId: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
prepared: {type: Boolean, defaultValue: false},
|
||||
prepareCost: {type: Number, defaultValue: 1}, //0 for spells that "dont count against your max number of spells prepared", 1 otherwise
|
||||
prepared: {type: String, defaultValue: "unprepared", allowedValues: ["prepared","unprepared","always"]},
|
||||
name: {type: String},
|
||||
description: {type: String, optional: true},
|
||||
castingTime: {type: String, optional: true},
|
||||
|
||||
@@ -8,7 +8,8 @@ Schemas.Container = new SimpleSchema({
|
||||
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},
|
||||
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "brown"}
|
||||
});
|
||||
|
||||
Containers.attachSchema(Schemas.Container);
|
||||
|
||||
Reference in New Issue
Block a user