Add HazardZone tile tint config and state payload

This commit is contained in:
dingo
2026-02-11 15:00:04 -05:00
parent 0dfbfa75af
commit d4f467656d
9 changed files with 121 additions and 1 deletions
+18
View File
@@ -2977,6 +2977,24 @@ public sealed partial class DungeonHandler : IClientMessageHandler
backY = p.BackY
}),
hazards = (sendSpatialThisTick ? sim.HazardZones.Values.Where(h => !spatialFiltering || IsNearby(h.X, h.Y)) : Enumerable.Empty<HazardZone>())
.Select(h => new
{
id = h.Id,
sourceMobId = h.SourceMobId,
x = h.X,
y = h.Y,
radius = h.Radius,
duration = h.Duration,
tickInterval = h.TickInterval,
nextTickIn = h.NextTickIn,
damagePerTick = h.DamagePerTick,
damageTypeKey = h.DamageTypeKey,
visualKey = h.VisualKey,
tintColor = h.TintColor,
tintOpacity = h.TintOpacity
}),
portals = sim.Portals.Values
.Where(p => p.IsActive)
.Select(p => new