mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:20:45 +00:00
rebalance, fix oceantile bug
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
* send boat even if touching DONE 9/4/2024
|
||||
* when attacking by boat, attack execution only starts from boat pixel DONE 9/4/2024
|
||||
* Make three terrain types: Plains, highlands, mountains DONE 9/5/2024
|
||||
* more random names for game id & client id
|
||||
* more random names for game id & client id DONE 9/5/2024
|
||||
* Make fake humans
|
||||
* directed expansion
|
||||
* UI: win condition & popup
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export const devConfig = new class extends DefaultConfig {
|
||||
}
|
||||
|
||||
numBots(): number {
|
||||
return 350
|
||||
return 400
|
||||
}
|
||||
|
||||
// startTroops(playerInfo: PlayerInfo): number {
|
||||
|
||||
Reference in New Issue
Block a user