mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-14 04:54:39 +00:00
Merge main into v25
This commit is contained in:
@@ -834,12 +834,13 @@ export class DefaultConfig implements Config {
|
||||
if (nukeType !== UnitType.MIRVWarhead) {
|
||||
return (5 * humans) / Math.max(1, tilesOwned);
|
||||
}
|
||||
|
||||
const targetPop = 0.05 * maxPop;
|
||||
const targetPop = 0.03 * maxPop;
|
||||
const excessPop = Math.max(0, humans - targetPop);
|
||||
const scalingFactor = 20000;
|
||||
const scalingFactor = 500;
|
||||
|
||||
return (scalingFactor * excessPop * excessPop) / (maxPop * maxPop);
|
||||
const steepness = 2;
|
||||
const normalizedExcess = excessPop / maxPop;
|
||||
return scalingFactor * (1 - Math.exp(-steepness * normalizedExcess));
|
||||
}
|
||||
|
||||
structureMinDist(): number {
|
||||
|
||||
Reference in New Issue
Block a user