update line formatting and extending dungeon player limit and time to join dungeon

This commit is contained in:
dingo
2025-12-07 14:19:38 -05:00
parent 08f46ddaf7
commit 3755b13931
+2 -2
View File
@@ -275,7 +275,7 @@ public sealed class DungeonHandler : IClientMessageHandler
var request = _ser.Deserialize<DungeonEnterRequest>(payload);
int tier = Math.Clamp(request.Tier, 1, 10);
const int maxPlayersPerDungeon = 4;
const int maxPlayersPerDungeon = 20;
// Try to find an existing dungeon of the same tier that isn't full
DungeonInstance? instance = null;
@@ -286,7 +286,7 @@ public sealed class DungeonHandler : IClientMessageHandler
if (dungeon.Tier == tier &&
dungeon.Simulation.Phase == DungeonPhase.Active &&
dungeon.Simulation.Players.Count < maxPlayersPerDungeon &&
(DateTime.UtcNow - dungeon.CreatedAt).TotalSeconds < 60) // Only join dungeons < 60s old
(DateTime.UtcNow - dungeon.CreatedAt).TotalSeconds < 300) // Only join dungeons < 60s old
{
instance = dungeon;
dungeonId = id;