Atmos scaling cvar changes (#22501)
This commit is contained in:
@@ -3,6 +3,7 @@ using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.Reactions;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Atmos.Components;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Map.Components;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -558,4 +559,12 @@ public sealed partial class AtmosphereSystem
|
||||
InvalidateVisuals(uid, position, overlay);
|
||||
}
|
||||
}
|
||||
|
||||
public TileRef GetTileRef(TileAtmosphere tile)
|
||||
{
|
||||
if (!TryComp(tile.GridIndex, out MapGridComponent? grid))
|
||||
return default;
|
||||
_map.TryGetTileRef(tile.GridIndex, grid, tile.GridIndices, out var tileRef);
|
||||
return tileRef;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user