mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-04 00:25:27 +00:00
can change name after joining game
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user