Iterated on proficiencies towards making them first class assets

This commit is contained in:
Thaum
2015-04-16 09:02:00 +00:00
parent 6aeb6635a7
commit 8ec3b74299

View File

@@ -2,25 +2,27 @@ Proficiencies = new Mongo.Collection("proficiencies");
Schemas.Proficiency = new SimpleSchema({
charId: {
type: String,
type: String,
regEx: SimpleSchema.RegEx.Id
},
name: {
name: {
type: String,
trim: false
},
//indicates what type of thing proficiency originated from
value: {
type: Number,
allowedValues: [0, 0.5, 1],
},
type: {
type: String,
defaultValue: "editable",
allowedValues: ["editable", "feature", "buff", "equipment", "inate"]
},
allowedValues: ["skill", "save", "weapon", "armor", "tool", "language"]
}
});
Proficiencies.attachSchema(Schemas.Proficiency);
Proficiencies.attachBehaviour('softRemovable');
makeChild(Proficiencies);
makeChild(Proficiencies);
Proficiencies.allow(CHARACTER_SUBSCHEMA_ALLOW);
Proficiencies.deny(CHARACTER_SUBSCHEMA_DENY);