Files
OpenFrontIO/src/core/configuration/DevConfig.ts
T
2024-11-21 19:53:02 -08:00

34 lines
738 B
TypeScript

import { PlayerInfo, UnitInfo, UnitType } from "../game/Game";
import { DefaultConfig } from "./DefaultConfig";
export const devConfig = new class extends DefaultConfig {
unitInfo(type: UnitType): UnitInfo {
const info = super.unitInfo(type)
info.cost = 0
return info
}
percentageTilesOwnedToWin(): number {
return 95
}
numSpawnPhaseTurns(): number {
return 40
}
gameCreationRate(): number {
return 20 * 1000
}
lobbyLifetime(): number {
return 20 * 1000
}
turnIntervalMs(): number {
return 100
}
// numBots(): number {
// return 400
// }
// boatMaxDistance(): number {
// return 2000
// }
}