From e5ddac26f32cd092306bcdbf3f0540571338097f Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Sun, 1 Jun 2025 23:24:01 +0200 Subject: [PATCH] fix exponent --- src/core/configuration/DefaultConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 38e557d52..6e8ba04d9 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -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;