fix exponent

This commit is contained in:
1brucben
2025-06-01 23:24:01 +02:00
parent c1de357366
commit e5ddac26f3
+1 -1
View File
@@ -650,7 +650,7 @@ export class DefaultConfig implements Config {
let toAdd = baseAdditionRate + basePopGrowthRate * reproductionPop;
const totalPop = player.totalPopulation();
const ratio = 1 - totalPop / max;
toAdd *= ratio ^ 1.222;
toAdd *= ratio ** 1.222;
if (player.type() === PlayerType.Bot) {
toAdd *= 0.7;