fix NPC send boat chances

This commit is contained in:
Evan
2024-11-20 20:55:08 -08:00
parent b915737a0e
commit f664657e78
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -187,7 +187,7 @@
* REFACTOR: move canbuild to player DONE 11/17/2024
* BUG: can build destroyer on land DONE 11/17/2024
* fix pathfinding bug DONE 11/20/2024
* make two nukes: atom & hydrogen
* make two nukes: atom & hydrogen DONE 11/202/2024
* NPC builds ports
* destroyer can capture trade ships
* add battleship
+1 -1
View File
@@ -4,7 +4,7 @@ import { DefaultConfig } from "./DefaultConfig";
export const devConfig = new class extends DefaultConfig {
unitInfo(type: UnitType): UnitInfo {
const info = super.unitInfo(type)
info.cost = 0
// info.cost = 0
return info
}
+1 -1
View File
@@ -109,7 +109,7 @@ export class FakeHumanExecution implements Execution {
const enemyborder = Array.from(this.player.borderTiles()).flatMap(t => t.neighbors()).filter(t => t.hasOwner() && t.owner() != this.player)
if (enemyborder.length == 0 || this.random.chance(1)) {
if (enemyborder.length == 0 || this.random.chance(5)) {
this.sendBoat()
return
}