Fix TypeScript errors in action engine

This commit is contained in:
Thaum Rystra
2025-05-02 15:38:18 +02:00
parent d42d2a724e
commit ae5a159e58
31 changed files with 198 additions and 93 deletions

View File

@@ -4,14 +4,15 @@ import {
createTestCreature,
getRandomIds,
removeAllCreaturesAndProps,
runActionById
runActionById,
TestCreature
} from '/imports/api/engine/action/functions/actionEngineTest.testFn';
const [
creatureId, targetCreatureId, buffId
] = getRandomIds(100);
const actionTestCreature = {
const actionTestCreature: TestCreature = {
_id: creatureId,
props: [
{
@@ -36,7 +37,7 @@ const actionTestCreature = {
],
};
const actionTargetCreature = {
const actionTargetCreature: TestCreature = {
_id: targetCreatureId,
props: [
{
@@ -87,7 +88,6 @@ describe('Apply Buff Properties', function () {
},
left: 1,
right: 4,
parentId: null,
root: {
collection: 'creatures',
id: targetCreatureId,