mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 22:27:27 +00:00
fix NPC send boat chances
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user