Added conditions to action resources

This commit is contained in:
Stefan Zermatten
2023-08-24 14:51:09 +02:00
parent 7fa993de47
commit 75ea462e64
10 changed files with 205 additions and 5 deletions

View File

@@ -80,6 +80,15 @@ function linkAction(dependencyGraph, prop, { propsById }) {
key: `resources.attributesConsumed[${index}].quantity`,
});
});
// Link conditions
prop.resources.conditions?.forEach((con, index) => {
// Link the property to its condition calculation
dependOnCalc({
dependencyGraph,
prop,
key: `resources.conditions[${index}].condition`,
});
});
}
function linkAdjustment(dependencyGraph, prop) {