Removed unneeded "type" from schemas, use parent.collection instead.

This commit is contained in:
Thaum
2015-04-17 11:30:44 +00:00
parent 1352bd1178
commit 245867dae6
13 changed files with 14 additions and 47 deletions

View File

@@ -42,12 +42,6 @@ Schemas.Attack = new SimpleSchema({
"poison", "psychic", "radiant", "thunder"],
defaultValue: "slashing"
},
//indicates what the attack originated from
type: {
type: String,
defaultValue: "editable",
allowedValues: ["editable", "feature", "class", "buff", "equipment", "racial", "inate"]
},
//the id of the feature, buff or item that created this effect
parent: {
type: Schemas.Parent

View File

@@ -29,12 +29,6 @@ Schemas.Effect = new SimpleSchema({
optional: true,
trim: false
},
//indicates what the effect originated from
type: {
type: String,
defaultValue: "editable",
allowedValues: ["editable", "feature", "class", "buff", "equipment", "racial", "inate"]
},
//the thing that created this effect
parent: {
type: Schemas.Parent

View File

@@ -13,10 +13,6 @@ Schemas.Proficiency = new SimpleSchema({
type: Number,
allowedValues: [0, 0.5, 1],
},
type: {
type: String,
allowedValues: ["skill", "save", "weapon", "armor", "tool", "language"]
}
});
Proficiencies.attachSchema(Schemas.Proficiency);