Started splitting engine tests into individual files and testing action props

This commit is contained in:
Thaum Rystra
2024-02-15 23:16:18 +02:00
parent 60117308f7
commit 5b7d352323
13 changed files with 1190 additions and 807 deletions

View File

@@ -30,7 +30,7 @@ export default async function spendResources(
if (prop.resources?.attributesConsumed?.length) {
for (const att of prop.resources.attributesConsumed) {
const scope = await getEffectiveActionScope(action);
const statToDamage = getFromScope(att.variableName, scope);
const statToDamage = await getFromScope(att.variableName, scope);
await recalculateCalculation(att.quantity, action, 'reduce');
await applyTask(action, {
prop,