mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:50:15 +00:00
adjust target ratios for ports and cities in FakeHumanExecution
This commit is contained in:
@@ -481,7 +481,7 @@ export class DefaultConfig implements Config {
|
||||
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
|
||||
defenderTroopLoss: defenderdensity,
|
||||
tilesPerTickUsed: within(
|
||||
5 * defenderdensity ** 0.5 * adjustedRatio ** 0.8 * speed,
|
||||
6.3 * defenderdensity ** 0.4 * adjustedRatio ** 0.8 * speed,
|
||||
8,
|
||||
1000,
|
||||
),
|
||||
|
||||
@@ -44,8 +44,8 @@ export class FakeHumanExecution implements Execution {
|
||||
private lastNukeSent: [Tick, TileRef][] = [];
|
||||
private embargoMalusApplied = new Set<PlayerID>();
|
||||
|
||||
private portTargetRatio: number = 0.0001; // desired ports per tile
|
||||
private cityTargetRatio: number = 0.0002; // desired cities per tile
|
||||
private portTargetRatio: number = 0.00005; // desired ports per tile
|
||||
private cityTargetRatio: number = 0.0001; // desired cities per tile
|
||||
private defensePostSpacing: number = 60; // minimum distance between defense posts
|
||||
private defensePostTargetRatio: number = 0.005; // desired defense posts per border length
|
||||
private lastDefensePostTick: number = -9999;
|
||||
|
||||
Reference in New Issue
Block a user