diff --git a/app/imports/api/properties/ClassLevels.js b/app/imports/api/properties/ClassLevels.js index 14c361b0..9b42c7b9 100644 --- a/app/imports/api/properties/ClassLevels.js +++ b/app/imports/api/properties/ClassLevels.js @@ -27,6 +27,15 @@ const ClassLevelSchema = createPropertySchema({ }, }); -const ComputedOnlyClassLevelSchema = new SimpleSchema({}); +const ComputedOnlyClassLevelSchema = new SimpleSchema({ + description: { + type: 'computedOnlyInlineCalculationField', + optional: true, + }, +}); -export { ClassLevelSchema, ComputedOnlyClassLevelSchema }; +const ComputedClassLevelSchema = new SimpleSchema() + .extend(ComputedOnlyClassLevelSchema) + .extend(ClassLevelSchema); + +export { ClassLevelSchema, ComputedOnlyClassLevelSchema, ComputedClassLevelSchema }; diff --git a/app/imports/api/properties/computedPropertySchemasIndex.js b/app/imports/api/properties/computedPropertySchemasIndex.js index 41fe5084..e9dc3fea 100644 --- a/app/imports/api/properties/computedPropertySchemasIndex.js +++ b/app/imports/api/properties/computedPropertySchemasIndex.js @@ -5,7 +5,7 @@ import { ComputedAttackSchema } from '/imports/api/properties/Attacks.js'; import { ComputedAttributeSchema } from '/imports/api/properties/Attributes.js'; import { ComputedBuffSchema } from '/imports/api/properties/Buffs.js'; import { ComputedClassSchema } from '/imports/api/properties/Classes.js'; -import { ClassLevelSchema } from '/imports/api/properties/ClassLevels.js'; +import { ComputedClassLevelSchema } from '/imports/api/properties/ClassLevels.js'; import { ConstantSchema } from '/imports/api/properties/Constants.js'; import { ComputedContainerSchema } from '/imports/api/properties/Containers.js'; import { ComputedDamageSchema } from '/imports/api/properties/Damages.js'; @@ -33,7 +33,7 @@ const propertySchemasIndex = { attribute: ComputedAttributeSchema, buff: ComputedBuffSchema, class: ComputedClassSchema, - classLevel: ClassLevelSchema, + classLevel: ComputedClassLevelSchema, constant: ConstantSchema, damage: ComputedDamageSchema, damageMultiplier: DamageMultiplierSchema,