Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #141 from FireNameFN/FixArtifactDestroysWalls
Browse files Browse the repository at this point in the history
Fix artifact destroy walls
  • Loading branch information
Zekins3366 authored May 10, 2024
2 parents be7a1f1 + d1d9377 commit 047c455
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Content.Shared/Maps/ContentTileDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public sealed partial class ContentTileDefinition : IPrototype, IInheritingProto
[DataField]
public PrototypeFlags<ToolQualityPrototype> DeconstructTools { get; set; } = new();

public bool CanCrowbar => DeconstructTools.Contains(PryingToolQuality);

// Delta V
[DataField("canShovel")] public bool CanShovel { get; private set; }
//Delta V
Expand Down
5 changes: 4 additions & 1 deletion Content.Shared/Maps/TileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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
Expand Down

0 comments on commit 047c455

Please sign in to comment.