rebalance, fix oceantile bug

This commit is contained in:
evanpelle
2024-09-05 19:51:50 -07:00
parent e6d1aac27a
commit 8800bef839
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class TileImpl implements Tile {
return this.isLand() && this._terrain.shoreline
}
isOceanShore(): boolean {
return this.isShore() && this.isOcean()
return this.isShore() && this.neighbors().filter(n => n.isOcean()).length > 0
}
isShorelineWater(): boolean {
return this.isWater() && this._terrain.shoreline
+2 -2
View File
@@ -82,10 +82,10 @@ export class DefaultConfig implements Config {
}
troopAdditionRate(player: Player): number {
let max = Math.sqrt(player.numTilesOwned()) * 2000 + 10000 + 10000
let max = Math.sqrt(player.numTilesOwned()) * 3000 + 50000
max = Math.min(max, 1_000_000)
let toAdd = 10 + (player.troops() + Math.sqrt(player.troops() * player.numTilesOwned())) / 200
let toAdd = 10 + (player.troops() + Math.sqrt(player.troops() * player.numTilesOwned())) / 150
return Math.min(player.troops() + toAdd, max)
}
+1 -1
View File
@@ -16,7 +16,7 @@ export const devConfig = new class extends DefaultConfig {
}
numBots(): number {
return 350
return 400
}
// startTroops(playerInfo: PlayerInfo): number {