Saving throws now work in actions

This commit is contained in:
Stefan Zermatten
2021-02-22 12:38:21 +02:00
parent d00eedac19
commit 88133a2fa3
4 changed files with 131 additions and 3 deletions

View File

@@ -8,11 +8,22 @@ let SavingThrowSchema = new SimpleSchema ({
type: String,
optional: true,
},
// The computed DC
dc: {
type: String,
optional: true,
},
// The variable name of ability the save to roll
// Who this saving throw applies to
target: {
type: String,
defaultValue: 'every',
allowedValues: [
'self', // the character who took the action
'each', // rolled once for `each` target
'every', // rolled once and applied to `every` target
],
},
// The variable name of save to roll
stat: {
type: String,
optional: true,