diff --git a/Content.Shared/Maps/ContentTileDefinition.cs b/Content.Shared/Maps/ContentTileDefinition.cs index a0c2ead1863..b925488259e 100644 --- a/Content.Shared/Maps/ContentTileDefinition.cs +++ b/Content.Shared/Maps/ContentTileDefinition.cs @@ -45,6 +45,8 @@ public sealed partial class ContentTileDefinition : IPrototype, IInheritingProto [DataField] public PrototypeFlags DeconstructTools { get; set; } = new(); + public bool CanCrowbar => DeconstructTools.Contains(PryingToolQuality); + // Delta V [DataField("canShovel")] public bool CanShovel { get; private set; } //Delta V diff --git a/Content.Shared/Maps/TileSystem.cs b/Content.Shared/Maps/TileSystem.cs index 87b2720cad5..17bdd5acab4 100644 --- a/Content.Shared/Maps/TileSystem.cs +++ b/Content.Shared/Maps/TileSystem.cs @@ -86,7 +86,7 @@ public bool PryTile(Vector2i indices, EntityUid gridId) return PryTile(tileRef); } - public bool PryTile(TileRef tileRef) + public bool PryTile(TileRef tileRef) { return PryTile(tileRef, false); } @@ -100,6 +100,9 @@ public bool PryTile(TileRef tileRef, bool pryPlating) var tileDef = (ContentTileDefinition) _tileDefinitionManager[tile.TypeId]; + if (!tileDef.CanCrowbar) + return false; + return DeconstructTile(tileRef); } // Delta V