Skip to content

Commit

Permalink
feat: disband-all-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Sep 5, 2024
1 parent bab1556 commit dfd353e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/basedbot/fsm/disband.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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...`,
Expand Down

0 comments on commit dfd353e

Please sign in to comment.