Crowbar floor tiles and placement (#429)
* Adds tile removing behavior to CrowbarComponent. Add FloorTileItemComponent. Add genhit.ogg Add tile.png for testing * fixes * Gives ContentTileDefinition a default value for tile item to drop. Adds a few more tileitems. * Changes per review request * move stack.use and if statement
This commit is contained in:
committed by
Pieter-Jan Briers
parent
35f9de3366
commit
d63c879404
@@ -3,6 +3,8 @@ using Robust.Shared.Interfaces.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Maps
|
||||
{
|
||||
@@ -21,6 +23,7 @@ namespace Content.Shared.Maps
|
||||
public bool CanCrowbar { get; private set; }
|
||||
public string FootstepSounds { get; private set; }
|
||||
public float Friction { get; set; }
|
||||
public string ItemDropPrototypeName { get; private set; }
|
||||
|
||||
public void AssignTileId(ushort id)
|
||||
{
|
||||
@@ -60,6 +63,16 @@ namespace Content.Shared.Maps
|
||||
{
|
||||
Friction = 0;
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("item_drop", out node))
|
||||
{
|
||||
ItemDropPrototypeName = node.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
ItemDropPrototypeName = "FloorTileItemSteel";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user