Fixes for the recycler and related things (#12703)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Mervill
2022-11-25 01:00:41 -08:00
committed by GitHub
parent 11f9284bae
commit 5ae838a6a3
8 changed files with 49 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Recycling.Components
[Dependency] private readonly IEntityManager _entMan = default!;
[DataField("enabled")]
public bool Enabled = true;
public bool Enabled;
/// <summary>
/// Whether or not sentient beings will be recycled
@@ -27,14 +27,6 @@ namespace Content.Server.Recycling.Components
[DataField("efficiency")]
internal float Efficiency = 0.25f;
private void Clean()
{
if (_entMan.TryGetComponent(Owner, out AppearanceComponent? appearance))
{
appearance.SetData(RecyclerVisuals.Bloody, false);
}
}
/// <summary>
/// Default sound to play when recycling
/// </summary>