Skip to content

Commit

Permalink
balance: slightly faster item spawns, slower disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacThoman committed Jan 15, 2025
1 parent c6278d6 commit 5c58301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaults = {
SERVER_CLEANUP_INTERVAL: '1000',

// Player settings
PLAYER_DISCONNECT_TIME: '8',
PLAYER_DISCONNECT_TIME: '10',
PLAYER_AFK_KICK_TIME: '600',
PLAYER_MAX_HEALTH: '100',
PLAYER_BASE_INVENTORY: '[]',
Expand All @@ -24,8 +24,8 @@ const defaults = {
HEALTH_REGEN_RATE: '5',

//Item settings
MAX_ITEMS_IN_WORLD: '7',
ITEM_RESPAWN_TIME: '10',
MAX_ITEMS_IN_WORLD: '10',
ITEM_RESPAWN_TIME: '7',
};

async function updateEnvFile(defaults: Record<string, string>) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/gamemodes/SoloCTFGamemode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class SoloCTFGamemode extends FFAGamemode {
this.gameEngine.serverInfo.skyColor = '#FFFFFF';
// Schedule to unset the win announcement flag after the respawn delay and reset the game
winner.doPhysics = false;
winner.gravity = 1.5;
winner.gravity = 2.5;
winner.forced = true;
setTimeout(() => {
this.resetAfterWin();
Expand Down

0 comments on commit 5c58301

Please sign in to comment.