update line formatting and extending dungeon player limit and time to join dungeon
This commit is contained in:
@@ -275,7 +275,7 @@ public sealed class DungeonHandler : IClientMessageHandler
|
|||||||
var request = _ser.Deserialize<DungeonEnterRequest>(payload);
|
var request = _ser.Deserialize<DungeonEnterRequest>(payload);
|
||||||
int tier = Math.Clamp(request.Tier, 1, 10);
|
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
|
// Try to find an existing dungeon of the same tier that isn't full
|
||||||
DungeonInstance? instance = null;
|
DungeonInstance? instance = null;
|
||||||
@@ -286,7 +286,7 @@ public sealed class DungeonHandler : IClientMessageHandler
|
|||||||
if (dungeon.Tier == tier &&
|
if (dungeon.Tier == tier &&
|
||||||
dungeon.Simulation.Phase == DungeonPhase.Active &&
|
dungeon.Simulation.Phase == DungeonPhase.Active &&
|
||||||
dungeon.Simulation.Players.Count < maxPlayersPerDungeon &&
|
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;
|
instance = dungeon;
|
||||||
dungeonId = id;
|
dungeonId = id;
|
||||||
|
|||||||
Reference in New Issue
Block a user