Fixed class level not having computed description

This commit is contained in:
Stefan Zermatten
2021-09-27 11:06:48 +02:00
parent 2cb14146d4
commit 706303862f
2 changed files with 13 additions and 4 deletions

View File

@@ -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 };

View File

@@ -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,