Removed per-row point buy cost/min/max

This commit is contained in:
ThaumRystra
2023-09-22 16:46:26 +02:00
parent 745296c1db
commit ad15020f0b

View File

@@ -29,7 +29,7 @@ let PointBuySchema = createPropertySchema({
'values.$._id': { 'values.$._id': {
type: String, type: String,
regEx: SimpleSchema.RegEx.Id, regEx: SimpleSchema.RegEx.Id,
autoValue(){ autoValue() {
if (!this.isSet) return Random.id(); if (!this.isSet) return Random.id();
} }
}, },
@@ -49,18 +49,6 @@ let PointBuySchema = createPropertySchema({
type: Number, type: Number,
optional: true, optional: true,
}, },
'values.$.min': {
type: 'fieldToCompute',
optional: true,
},
'values.$.max': {
type: 'fieldToCompute',
optional: true,
},
'values.$.cost': {
type: 'fieldToCompute',
optional: true,
},
min: { min: {
type: 'fieldToCompute', type: 'fieldToCompute',
optional: true, optional: true,
@@ -102,19 +90,6 @@ const ComputedOnlyPointBuySchema = createPropertySchema({
'values.$': { 'values.$': {
type: Object, type: Object,
}, },
'values.$.min': {
type: 'computedOnlyField',
optional: true,
},
'values.$.max': {
type: 'computedOnlyField',
optional: true,
},
'values.$.cost': {
type: 'computedOnlyField',
optional: true,
parseLevel: 'compile',
},
'values.$.spent': { 'values.$.spent': {
type: Number, type: Number,
optional: true, optional: true,