Removed value from effects, calculation now stores the effect value even if it's a number
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user