Action and attack components show up correctly on character sheet

This commit is contained in:
Thaum Rystra
2020-04-24 15:10:58 +02:00
parent 7bf0e959d7
commit b1328e4cf5
6 changed files with 114 additions and 19 deletions

View File

@@ -8,28 +8,28 @@ let ResultsSchema = new SimpleSchema({
// Adjustments applied when taking this action
// Ideally, if these adjustments can't be made, the action should be unusable
adjustments: {
type: Array,
defaultValue: [],
type: Array,
defaultValue: [],
},
'adjustments.$': {
type: AdjustmentSchema,
type: AdjustmentSchema,
},
// Damage is done to hitpoints or hitpoint-like stats
// has a damage type, can be mitigated by resistances, etc.
damages: {
type: Array,
defaultValue: [],
type: Array,
defaultValue: [],
},
'damages.$': {
type: DamageSchema,
type: DamageSchema,
},
// Buffs applied when taking this action
buffs: {
type: Array,
defaultValue: [],
type: Array,
defaultValue: [],
},
'buffs.$': {
type: StoredBuffWithIdSchema,
type: StoredBuffWithIdSchema,
},
});