can change name after joining game

This commit is contained in:
evanpelle
2024-08-26 15:03:50 -07:00
parent da6f0a89e7
commit 480cfba8e0
13 changed files with 130 additions and 19 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export class DefaultPlayerConfig implements PlayerConfig {
}
attackAmount(attacker: Player, defender: Player | TerraNullius) {
if (attacker.info().isBot) {
if (attacker.isBot()) {
return attacker.troops() / 20
} else {
return attacker.troops() / 5
+2 -2
View File
@@ -7,10 +7,10 @@ export const devConfig = new class extends DefaultConfig {
return 40
}
gameCreationRate(): number {
return 3 * 1000
return 10 * 1000
}
lobbyLifetime(): number {
return 3 * 1000
return 10 * 1000
}
turnIntervalMs(): number {
return 100