Made attacks less rigid, now using inline computations

This commit is contained in:
Stefan Zermatten
2015-05-18 13:16:33 +02:00
parent 83150bc527
commit ae416458b5
4 changed files with 23 additions and 34 deletions

View File

@@ -24,18 +24,12 @@ Schemas.Attack = new SimpleSchema({
optional: true,
trim: false,
},
damageBonus: {
damage: {
type: String,
defaultValue: "strengthMod",
defaultValue: "1d8 + {strengthMod}",
optional: true,
trim: false,
},
damageDice: {
type: String,
optional: true,
defaultValue: "1d8",
allowedValues: DAMAGE_DICE,
},
damageType: {
type: String,
allowedValues: [