Fixed action rewrite build errors

This commit is contained in:
Stefan Zermatten
2021-10-10 20:08:29 +02:00
parent eebfbfd636
commit f3c52999e8
3 changed files with 12 additions and 2 deletions

View File

@@ -146,6 +146,7 @@ Creatures.attachSchema(CreatureSchema);
import '/imports/api/creature/creatures/methods/index.js';
import '/imports/api/engine/actions/doAction.js';
export default Creatures;
export { CreatureSchema };

View File

@@ -1,12 +1,21 @@
import action from './applyPropertyByType/applyAction.js';
import adjustment from './applyPropertyByType/applyAdjustment.js';
import branch from './applyPropertyByType/applyBranch.js';
import buff from './applyPropertyByType/applyBuff.js';
import damage from './applyPropertyByType/applyDamage.js';
import roll from './applyPropertyByType/applyRoll.js';
import savingThrow from './applyPropertyByType/applySavingThrow.js';
import toggle from './applyPropertyByType/applyToggle.js';
const applyPropertyByType = {
action,
adjustment,
branch,
buff,
damage,
roll,
savingThrow,
spell,
spell: action,
toggle,
};

View File

@@ -1,4 +1,4 @@
import evaluateCalculation from '../utility/evaluateCalculation.js';
import evaluateCalculation from '/imports/api/engine/computation/utility/evaluateCalculation.js';
import logErrors from './logErrors.js';
export default function recalculateCalculation(calc, scope, log, context){