Files
DiceCloud/app/imports/api/creature/subSchemas/DeathSavesSchema.js
2018-10-19 14:01:23 +02:00

27 lines
403 B
JavaScript

import SimpleSchema from 'simpl-schema';
const DeathSavesSchema = new SimpleSchema({
pass: {
type: SimpleSchema.Integer,
min: 0,
max: 3,
defaultValue: 0,
},
fail: {
type: SimpleSchema.Integer,
min: 0,
max: 3,
defaultValue: 0,
},
canDeathSave: {
type: Boolean,
defaultValue: true,
},
stable: {
type: Boolean,
defaultValue: false,
},
});
export default DeathSavesSchema;