Tile prying removes decals (#13363)

This commit is contained in:
Kara
2023-01-07 04:24:50 -06:00
committed by GitHub
parent c3e16e8efa
commit 572b762f2c
9 changed files with 109 additions and 93 deletions

View File

@@ -24,6 +24,7 @@ using System.Linq;
using Content.Server.Beam;
using Content.Server.Emag;
using Content.Server.Humanoid;
using Content.Server.Maps;
using Content.Server.Revenant.Components;
using Content.Server.Store.Components;
using Content.Shared.FixedPoint;
@@ -43,6 +44,7 @@ public sealed partial class RevenantSystem
[Dependency] private readonly EmagSystem _emag = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
[Dependency] private readonly GhostSystem _ghost = default!;
[Dependency] private readonly TileSystem _tile = default!;
private void InitializeAbilities()
{
@@ -233,7 +235,7 @@ public sealed partial class RevenantSystem
{
if (!tiles.TryGetValue(i, out var value))
continue;
value.PryTile();
_tile.PryTile(value);
}
var lookup = _lookup.GetEntitiesInRange(uid, component.DefileRadius, LookupFlags.Approximate | LookupFlags.Static);