Add HazardZone tile tint config and state payload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user