Creature properties now duplicate with up to 50 children

This commit is contained in:
Stefan Zermatten
2021-04-11 14:47:41 +02:00
parent d87524418a
commit bfb860605f
8 changed files with 93 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ const AdjustmentSchema = new SimpleSchema({
const ComputedOnlyAdjustmentSchema = new SimpleSchema({
amountResult: {
type: SimpleSchema.Integer,
type: SimpleSchema.oneOf(String, Number),
optional: true,
},
amountErrors: {

View File

@@ -29,7 +29,7 @@ const DamageSchema = new SimpleSchema({
const ComputedOnlyDamageSchema = new SimpleSchema({
amountResult: {
type: SimpleSchema.oneOf(String, SimpleSchema.Integer),
type: SimpleSchema.oneOf(String, Number),
optional: true,
},
amountErrors: {

View File

@@ -10,7 +10,11 @@ const InlineComputationSchema = new SimpleSchema({
type: String,
optional: true,
},
errors: ErrorSchema,
errors: {
type: Array,
optional: true,
},
'errors.$': ErrorSchema,
});
export default InlineComputationSchema;