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
@@ -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
}