diff --git a/TODO.txt b/TODO.txt index 7ffe144c5..87fb56967 100644 --- a/TODO.txt +++ b/TODO.txt @@ -256,10 +256,13 @@ * make attack bonus based on current attack size DONE 12/20/2024 * bug: ips are not stored DONE 12/20/2024 * highlight player spawn DONE 12/21/2024 -* show players joined username in private lobby -* make bots less likely to build ships -* troop density affects attack bonus +* make bots less likely to build ships DONE 12/21/2024 * bugix: wait for css to load on front page + +-- v0.13.0 release + +* show players joined username in private lobby +* troop density affects attack bonus * bug: NPCs don't have money * right click brings up player info menu * seperate server config from client config diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index 9fa1e4885..1913c224d 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -171,6 +171,9 @@ export class FakeHumanExecution implements Execution { } private maybeSpawnWarship(shipType: UnitType.Destroyer | UnitType.Battleship): boolean { + if (!this.random.chance(10)) { + return false + } const ports = this.player.units(UnitType.Port) const ships = this.player.units(shipType) if (ports.length > 0 && ships.length == 0 && this.player.gold() > this.cost(shipType)) {