Fix influences not being placed on board

This commit is contained in:
thepaperpilot 2023-04-30 15:37:36 -05:00
parent 44844f0de7
commit b9cf016672

View file

@ -407,8 +407,8 @@ export function createPlane(
);
influenceTreasures.push(randomInfluence);
description = `Gain a new portal influence`;
onComplete = () =>
main.board.placeInAvailableSpace({
onComplete = () => {
const node = {
id: getUniqueNodeID(main.board),
position: {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@ -421,7 +421,10 @@ export function createPlane(
type: randomInfluence,
data: influenceTypes[randomInfluence].initialData
}
});
};
main.board.placeInAvailableSpace(node);
main.board.nodes.value.push(node);
};
break;
}
const milestoneVisibility = visibility;