Made character arrays of objects into their own collections

This commit is contained in:
Thaum
2015-01-28 10:20:23 +00:00
parent 80c2c3249d
commit 4f205eb970
8 changed files with 59 additions and 40 deletions

View File

@@ -180,17 +180,10 @@ Schemas.Character = new SimpleSchema({
dexterityArmor: {type: Schemas.Skill},
"dexterityArmor.ability": { type: String, defaultValue: "dexterity" },
//proficiencies
weaponsProficiencies: { type: [Schemas.Proficiency], defaultValue: [] },
toolsProficiencies: { type: [Schemas.Proficiency], defaultValue: [] },
languages: { type: [Schemas.Proficiency], defaultValue: [] },
//mechanics
actions: { type: [Schemas.Action], defaultValue: []},
deathSave: { type: Schemas.DeathSave },
time: { type: Number, min: 0, decimal: true, defaultValue: 0},
initiativeOrder:{ type: Number, min: 0, max: 1, decimal: true, defaultValue: 0},
buffs: { type: [Schemas.Buff], defaultValue: []}
initiativeRoll: { type: Number, min: 0, max: 1, decimal: true, defaultValue: 0},
//TODO add permission stuff for owner, readers and writers
//TODO add per-character settings
});