add ~30 second alliance request cooldown to prevent spam

This commit is contained in:
evanpelle
2024-09-30 21:07:43 -07:00
parent 155c0366a3
commit 6469911230
11 changed files with 46 additions and 17 deletions
+1
View File
@@ -48,6 +48,7 @@ export interface Config {
boatMaxDistance(): number
boatMaxNumber(): number
allianceDuration(): Tick
allianceRequestCooldown(): Tick
}
export interface Theme {
+4 -1
View File
@@ -7,8 +7,11 @@ import {pastelTheme} from "./PastelTheme";
export class DefaultConfig implements Config {
allianceRequestCooldown(): Tick {
return 30 * 10
}
allianceDuration(): Tick {
return 20 * 100
return 200 * 10
}
percentageTilesOwnedToWin(): number {
return 95
+2 -2
View File
@@ -20,7 +20,7 @@ export const devConfig = new class extends DefaultConfig {
}
// numBots(): number {
// return 1000
// return 0
// }
// allianceDuration(): Tick {
@@ -28,7 +28,7 @@ export const devConfig = new class extends DefaultConfig {
// }
// numFakeHumans(gameID: GameID): number {
// return 50
// return 1
// }
// startTroops(playerInfo: PlayerInfo): number {