Iterated on proficiencies towards making them first class assets
This commit is contained in:
@@ -2,25 +2,27 @@ Proficiencies = new Mongo.Collection("proficiencies");
|
|||||||
|
|
||||||
Schemas.Proficiency = new SimpleSchema({
|
Schemas.Proficiency = new SimpleSchema({
|
||||||
charId: {
|
charId: {
|
||||||
type: String,
|
type: String,
|
||||||
regEx: SimpleSchema.RegEx.Id
|
regEx: SimpleSchema.RegEx.Id
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: String,
|
type: String,
|
||||||
trim: false
|
trim: false
|
||||||
},
|
},
|
||||||
//indicates what type of thing proficiency originated from
|
value: {
|
||||||
|
type: Number,
|
||||||
|
allowedValues: [0, 0.5, 1],
|
||||||
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
defaultValue: "editable",
|
allowedValues: ["skill", "save", "weapon", "armor", "tool", "language"]
|
||||||
allowedValues: ["editable", "feature", "buff", "equipment", "inate"]
|
}
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Proficiencies.attachSchema(Schemas.Proficiency);
|
Proficiencies.attachSchema(Schemas.Proficiency);
|
||||||
|
|
||||||
Proficiencies.attachBehaviour('softRemovable');
|
Proficiencies.attachBehaviour('softRemovable');
|
||||||
makeChild(Proficiencies);
|
makeChild(Proficiencies);
|
||||||
|
|
||||||
Proficiencies.allow(CHARACTER_SUBSCHEMA_ALLOW);
|
Proficiencies.allow(CHARACTER_SUBSCHEMA_ALLOW);
|
||||||
Proficiencies.deny(CHARACTER_SUBSCHEMA_DENY);
|
Proficiencies.deny(CHARACTER_SUBSCHEMA_DENY);
|
||||||
|
|||||||
Reference in New Issue
Block a user