Skip to content

Commit

Permalink
chore: more flexible fleet creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Sep 8, 2024
1 parent 1a66357 commit 4e94db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/basedbot/fsm/disband.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const transition = async (
logger.info(
`Wrong direction, stopping fleet ${fleetInfo.fleetName}`,
)

return endMove(fleetInfo, player, game)
}

Expand All @@ -109,7 +110,8 @@ const transition = async (
logger.info(
`Wrong direction, stopping fleet ${fleetInfo.fleetName}`,
)
return stopSubwarp(fleetInfo, player, game)

return stopSubwarp(fleetInfo, player, game)
}

if (arrivalTime.isBefore(now())) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/basedbot/lib/sage/act/stop-subwarp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const stopSubwarp = async (
true,
)


await ixReturnsToIxs(
[
fuelToken.instructions,
Expand All @@ -50,5 +49,4 @@ export const stopSubwarp = async (
player.signer,
).then(sendAndConfirmInstructions)
await endMove(fleetInfo, player, game)

}

0 comments on commit 4e94db0

Please sign in to comment.