Fixed class level not having computed description
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user