Add verbs to Two Way Levers, make some odds and ends recyclable. (#12660)

This commit is contained in:
Mervill
2022-11-19 08:05:44 -08:00
committed by GitHub
parent 6a59e1b376
commit ac828008a3
9 changed files with 81 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ using Robust.Server.GameObjects;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.Player;
using Content.Server.Recycling.Components;
namespace Content.Server.Cuffs.Components
{
@@ -270,6 +271,8 @@ namespace Content.Server.Cuffs.Components
{
sprite.LayerSetState(0, cuff.BrokenState); // TODO: safety check to see if RSI contains the state?
}
_entMan.AddComponent<RecyclableComponent>(cuffsToRemove.Value);
}
CanStillInteract = _entMan.TryGetComponent(Owner, out HandsComponent? handsComponent) && handsComponent.SortedHands.Count() > CuffedHandCount;