mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:30:14 +00:00
fix exponent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user