mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 19:20:27 +00:00
further calibration
This commit is contained in:
@@ -488,9 +488,9 @@ export class DefaultConfig implements Config {
|
|||||||
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
|
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
|
||||||
defenderTroopLoss: defenderdensity,
|
defenderTroopLoss: defenderdensity,
|
||||||
tilesPerTickUsed: within(
|
tilesPerTickUsed: within(
|
||||||
8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.5 * speed,
|
8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.4 * speed,
|
||||||
8,
|
36,
|
||||||
500,
|
36.2,
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
@@ -577,7 +577,7 @@ export class DefaultConfig implements Config {
|
|||||||
case Difficulty.Easy:
|
case Difficulty.Easy:
|
||||||
return maxPop * 0.4;
|
return maxPop * 0.4;
|
||||||
case Difficulty.Medium:
|
case Difficulty.Medium:
|
||||||
return maxPop * 0.6;
|
return maxPop * 0.7;
|
||||||
case Difficulty.Hard:
|
case Difficulty.Hard:
|
||||||
return maxPop * 1;
|
return maxPop * 1;
|
||||||
case Difficulty.Impossible:
|
case Difficulty.Impossible:
|
||||||
@@ -590,7 +590,7 @@ export class DefaultConfig implements Config {
|
|||||||
|
|
||||||
let toAdd =
|
let toAdd =
|
||||||
10 +
|
10 +
|
||||||
(1200 / max + 1 / 120) * (0.8 * player.troops() + 1.2 * player.workers());
|
(1400 / max + 1 / 125) * (0.8 * player.troops() + 1.2 * player.workers());
|
||||||
const adjustedPop =
|
const adjustedPop =
|
||||||
typeof player.adjustedPopulation === "function"
|
typeof player.adjustedPopulation === "function"
|
||||||
? player.adjustedPopulation()
|
? player.adjustedPopulation()
|
||||||
|
|||||||
@@ -162,9 +162,9 @@ export class FakeHumanExecution implements Execution {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this.player.troops() > 100_000 &&
|
this.player.troops() > 100_000 &&
|
||||||
this.player.targetTroopRatio() > 0.7
|
this.player.targetTroopRatio() > 0.6
|
||||||
) {
|
) {
|
||||||
this.player.setTargetTroopRatio(0.7);
|
this.player.setTargetTroopRatio(0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateRelationsFromEmbargos();
|
this.updateRelationsFromEmbargos();
|
||||||
|
|||||||
Reference in New Issue
Block a user