Improved action and attack schemas
This commit is contained in:
15
app/imports/api/creature/subSchemas/AdjustmentSchema.js
Normal file
15
app/imports/api/creature/subSchemas/AdjustmentSchema.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
|
||||
const AdjustmentSchema = schema({
|
||||
stat: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
roll: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
});
|
||||
|
||||
export default AdjustmentSchema;
|
||||
31
app/imports/api/creature/subSchemas/DamageSchema.js
Normal file
31
app/imports/api/creature/subSchemas/DamageSchema.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
|
||||
const DamageSchema = schema({
|
||||
type: {
|
||||
type: String,
|
||||
allowedValues: [
|
||||
"bludgeoning",
|
||||
"piercing",
|
||||
"slashing",
|
||||
"acid",
|
||||
"cold",
|
||||
"fire",
|
||||
"force",
|
||||
"lightning",
|
||||
"necrotic",
|
||||
"poison",
|
||||
"psychic",
|
||||
"radiant",
|
||||
"thunder",
|
||||
],
|
||||
defaultValue: "slashing",
|
||||
},
|
||||
roll: {
|
||||
type: String,
|
||||
optional: true,
|
||||
defaultValue: '1d8 + strengthMod',
|
||||
},
|
||||
});
|
||||
|
||||
export default DamageSchema;
|
||||
Reference in New Issue
Block a user