From 2dcbc91ccddcd0ae964b577e6bbeace0dedae2ea Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 4 Feb 2019 14:28:21 +0200 Subject: [PATCH] Removed value from effects, calculation now stores the effect value even if it's a number --- app/imports/api/creature/properties/Effects.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/imports/api/creature/properties/Effects.js b/app/imports/api/creature/properties/Effects.js index ba186e8f..15a6db07 100644 --- a/app/imports/api/creature/properties/Effects.js +++ b/app/imports/api/creature/properties/Effects.js @@ -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,