From dfd353e07bad6b1b48a8281c661d7291e4d06d80 Mon Sep 17 00:00:00 2001 From: lukas Date: Fri, 6 Sep 2024 01:29:11 +0200 Subject: [PATCH] feat: disband-all-strategy --- src/main/basedbot/fsm/disband.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/basedbot/fsm/disband.ts b/src/main/basedbot/fsm/disband.ts index fb2a0e6..8c20d64 100644 --- a/src/main/basedbot/fsm/disband.ts +++ b/src/main/basedbot/fsm/disband.ts @@ -4,6 +4,7 @@ import dayjs from 'dayjs' import { now } from '../../../dayjs' import { logger } from '../../../logger' +import { disbandFleet } from '../lib/sage/act/disband-fleet' import { dock } from '../lib/sage/act/dock' import { endMine } from '../lib/sage/act/end-mine' import { endMove } from '../lib/sage/act/end-move' @@ -63,6 +64,12 @@ const transition = async ( logger.info( `${fleetInfo.fleetName} is at home base, disbanding...`, ) + await disbandFleet( + player, + game, + player.homeStarbase, + fleetInfo.fleet, + ) } logger.info( `${fleetInfo.fleetName} is at ${location}, undocking...`,