mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:40:46 +00:00
fix NPC send boat chances
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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