mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 08:00:43 +00:00
remove global max troop cap
This commit is contained in:
@@ -131,8 +131,7 @@ export class DefaultConfig implements Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
maxTroops(player: Player): number {
|
maxTroops(player: Player): number {
|
||||||
let max = Math.sqrt(player.numTilesOwned()) * 3000 + 50000
|
const troops = Math.sqrt(player.numTilesOwned()) * 3000 + 50000
|
||||||
const troops = Math.min(max, 2_000_000)
|
|
||||||
if (player.type() == PlayerType.Bot) {
|
if (player.type() == PlayerType.Bot) {
|
||||||
return troops
|
return troops
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user