mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:30:45 +00:00
7235b73b6c
* 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
47 lines
1005 B
TypeScript
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
|
|
// }
|
|
// }
|
|
} |