Skip to content

Commit

Permalink
chore: mine hydrogen
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Oct 7, 2024
1 parent e4a346e commit b72922a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/basedbot/fleet-strategies/mainnet-lu-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Game } from '@staratlas/sage'

import { mineRochinol } from '../fsm/configs/mine/mine-rochinol'
import { mineHydrogen } from '../fsm/configs/mine/mine-hydrogen'
import { createInfoStrategy } from '../fsm/info'
import { createMiningStrategy } from '../fsm/mine'

Check warning on line 5 in src/main/basedbot/fleet-strategies/mainnet-lu-strategy.ts

View workflow job for this annotation

GitHub Actions / lint

Dependency cycle via ../lib/sage/act/load-cargo:8=>../../../basedbot:12=>./fleet-strategies/get-fleet-strategy:27

Check warning on line 5 in src/main/basedbot/fleet-strategies/mainnet-lu-strategy.ts

View workflow job for this annotation

GitHub Actions / lint

Dependency cycle via ../lib/sage/act/load-cargo:8=>../../../basedbot:12=>./fleet-strategies/get-fleet-strategy:27
import { Player } from '../lib/sage/state/user-account'
Expand All @@ -22,7 +22,7 @@ export const mainnetLuStrategy = (
{
fleet: null,
strategy: createMiningStrategy(
mineRochinol(worldMap),
mineHydrogen(worldMap),
player,
game,
),
Expand Down
2 changes: 1 addition & 1 deletion src/main/basedbot/fsm/mine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const transition = async (
const cargoLevelFood = fleetInfo.cargoLevels.food
const cargoLevelAmmo = fleetInfo.cargoLevels.ammo
const cargoLevelFuel = fleetInfo.cargoLevels.fuel
const desiredFood = cargoCapacity / 10
const desiredFood = cargoCapacity / 20
const toLoad = desiredFood - cargoLevelFood
const hasEnoughFood = toLoad <= 10
const hasEnoughAmmo =
Expand Down

0 comments on commit b72922a

Please sign in to comment.