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

@@ -1,5 +1,6 @@
using System.Threading;
using Content.Server.Administration.Logs;
using Content.Server.Maps;
using Content.Server.Tools.Components;
using Content.Shared.Database;
using Content.Shared.Interaction;
@@ -12,6 +13,7 @@ namespace Content.Server.Tools;
public sealed partial class ToolSystem
{
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
[Dependency] private readonly TileSystem _tile = default!;
private void InitializeLatticeCutting()
{
@@ -40,7 +42,7 @@ public sealed partial class ToolSystem
|| tile.IsBlockedTurf(true))
return;
tile.CutTile(_mapManager, _tileDefinitionManager, EntityManager);
_tile.CutTile(tile);
_adminLogger.Add(LogType.LatticeCut, LogImpact.Medium, $"{ToPrettyString(args.User):user} cut the lattice at {args.Coordinates:target}");
}