Added and fixed some tests for tag targeted effects

This commit is contained in:
ThaumRystra
2023-11-11 13:31:15 +02:00
parent 6af9246ad1
commit 3b1f61aa0a
6 changed files with 132 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ function parseAllCalculationFields(prop, schemas) {
// For each computed key in the schema
schemas[prop.type]?.computedFields?.()?.forEach(calcKey => {
// Determine the level the calculation should compute down to
let parseLevel = schemas[prop.type].getDefinition(calcKey).parseLevel || 'reduce';
let parseLevel = schemas[prop.type].getDefinition(calcKey).parseLevel || 'compile';
// Special case of effects, when targeting by tags compile
if (prop.type === 'effect' && prop.targetByTags) parseLevel = 'compile';