Implemented remaining core features

This commit is contained in:
Thaum
2015-02-25 12:48:45 +00:00
parent 52b8c8b8d6
commit 56f8e95d81
38 changed files with 748 additions and 100 deletions

View File

@@ -9,7 +9,8 @@ Schemas.Attack = new SimpleSchema({
regEx: SimpleSchema.RegEx.Id
},
name: {
type: String
type: String,
defaultValue: "New Attack"
},
range: {
type: String,
@@ -17,15 +18,24 @@ Schemas.Attack = new SimpleSchema({
},
attackBonus: {
type: String,
optional: true
optional: true,
defaultValue: "strengthMod + proficiencyBonus"
},
damage: {
type: String
type: String,
optional: true,
defaultValue: "1d8 + {strengthMod}"
},
damageType: {
type: String,
allowedValues: ["acid", "bludgeoning", "cold", "fire", "force", "lightning", "necrotic",
"piercing", "poison", "psychic", "radiant", "slashing", "thunder"]
allowedValues: ["bludgeoning", "piercing", "slashing", "acid", "cold", "fire", "force", "lightning", "necrotic",
"poison", "psychic", "radiant", "thunder"],
defaultValue: "slashing"
},
color: {
type: String,
allowedValues: _.pluck(colorOptions, "key"),
defaultValue: "q"
}
});