Files
OpenFrontIO/src/core/configuration/DevConfig.ts
T
evanpelle 7235b73b6c * deleted old maps
* fixed bug where NPC and Bots had same id
* NPCs spawn near IRL location
* NPCs have different strength (starting troops)
* game has more NPCs than before
* Needs more balancing
2024-10-08 20:42:35 -07:00

47 lines
1005 B
TypeScript

import {PlayerInfo} from "../game/Game";
import {DefaultConfig} from "./DefaultConfig";
export const devConfig = new class extends DefaultConfig {
percentageTilesOwnedToWin(): number {
return 95
}
numSpawnPhaseTurns(): number {
return 40
}
gameCreationRate(): number {
return 2 * 1000
}
lobbyLifetime(): number {
return 2 * 1000
}
turnIntervalMs(): number {
return 100
}
numBots(): number {
return 400
}
// allianceDuration(): Tick {
// return 10 * 10
// }
// numFakeHumans(gameID: GameID): number {
// return 1
// }
// startTroops(playerInfo: PlayerInfo): number {
// // if (playerInfo.isBot) {
// // return 5000
// // }
// return 50000
// }
// troopAdditionRate(player: Player): number {
// if (player.isBot()) {
// return 1000
// } else {
// return 1000000
// }
// }
}