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",
],
},
value: {
type: Number,
optional: true,
},
calculation: {
type: String,
optional: true,
trim: false,
},
// The computed result of the effect
result: {
type: SimpleSchema.oneOf(Number, String),
optional: true,
},
//which stat the effect is applied to
stat: {
type: String,