Made proficiencies their own objects, added migration functionality

This commit is contained in:
Thaum
2015-04-17 13:56:52 +00:00
parent 245867dae6
commit b76ac23713
20 changed files with 331 additions and 17 deletions

View File

@@ -7,12 +7,24 @@ Schemas.Proficiency = new SimpleSchema({
},
name: {
type: String,
trim: false
trim: false,
optional: true,
},
value: {
type: Number,
allowedValues: [0, 0.5, 1],
allowedValues: [0, 0.5, 1, 2],
defaultValue: 1,
decimal: true,
},
type: {
type: String,
allowedValues: ["skill", "save", "weapon", "armor", "tool", "language"],
defaultValue: "skill",
},
enabled: {
type: Boolean,
defaultValue: true,
}
});
Proficiencies.attachSchema(Schemas.Proficiency);