Removed value from effects, calculation now stores the effect value even if it's a number

This commit is contained in:
Stefan Zermatten
2019-02-04 14:28:21 +02:00
parent 2fcf3047ee
commit 2dcbc91ccd

View File

@@ -34,15 +34,16 @@ effectSchema = new SimpleSchema({
"conditional", "conditional",
], ],
}, },
value: {
type: Number,
optional: true,
},
calculation: { calculation: {
type: String, type: String,
optional: true, optional: true,
trim: false, trim: false,
}, },
// The computed result of the effect
result: {
type: SimpleSchema.oneOf(Number, String),
optional: true,
},
//which stat the effect is applied to //which stat the effect is applied to
stat: { stat: {
type: String, type: String,