Added saving throws, messed with data structure a bunch, and updated forms to suit
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import AdjustmentSchema from '/imports/api/properties/subSchemas/AdjustmentSchema.js';
|
||||
import { StoredBuffWithIdSchema } from '/imports/api/properties/Buffs.js';
|
||||
import ResultsSchema from '/imports/api/properties/subSchemas/ResultsSchema.js';
|
||||
|
||||
// These are the rolls made when saves are called for
|
||||
// For the saving throw bonus or proficiency, see ./Skills.js
|
||||
@@ -14,34 +13,14 @@ let SavingThrowSchema = new SimpleSchema ({
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
passAdjustments: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'passAdjustments.$': {
|
||||
type: AdjustmentSchema,
|
||||
},
|
||||
passBuffs: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'passBuffs.$': {
|
||||
type: StoredBuffWithIdSchema,
|
||||
},
|
||||
failAdjustments: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'failAdjustments.$': {
|
||||
type: AdjustmentSchema,
|
||||
},
|
||||
failBuffs: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'failBuffs.$': {
|
||||
type: StoredBuffWithIdSchema,
|
||||
passResults: {
|
||||
type: ResultsSchema,
|
||||
defaultValue: {},
|
||||
},
|
||||
failResults: {
|
||||
type: ResultsSchema,
|
||||
defaultValue: {},
|
||||
},
|
||||
});
|
||||
|
||||
export { SavingThrowSchema };
|
||||
|
||||
Reference in New Issue
Block a user