Made character arrays of objects into their own collections
This commit is contained in:
32
rpg-docs/Model/Character/Attacks.js
Normal file
32
rpg-docs/Model/Character/Attacks.js
Normal file
@@ -0,0 +1,32 @@
|
||||
Attacks = new Meteor.Collection("attacks");
|
||||
|
||||
/*
|
||||
* Attacks are given to a character by items and features
|
||||
*/
|
||||
Schemas.Attack = new SimpleSchema({
|
||||
charId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
range: {
|
||||
type: String,
|
||||
optional: true
|
||||
},
|
||||
attackBonus: {
|
||||
type: String,
|
||||
optional: true
|
||||
},
|
||||
damage: {
|
||||
type: String
|
||||
},
|
||||
damageType: {
|
||||
type: String,
|
||||
allowedValues: ["acid", "bludgeoning", "cold", "fire", "force", "lightning", "necrotic",
|
||||
"piercing", "poison", "psychic", "radiant", "slashing", "thunder"]
|
||||
}
|
||||
});
|
||||
|
||||
Attacks.attachSchema(Schemas.Attack);
|
||||
Reference in New Issue
Block a user