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

@@ -45,6 +45,9 @@ namespace Content.Server.MachineLinking.System
private void OnGetInteractionVerbs(EntityUid uid, TwoWayLeverComponent component, GetVerbsEvent<InteractionVerb> args)
{
if (!args.CanAccess || !args.CanInteract || (args.Hands == null))
return;
InteractionVerb verbLeft = new()
{
Act = () =>
@@ -57,6 +60,7 @@ namespace Content.Server.MachineLinking.System
};
StateChanged(uid, component);
},
Category = VerbCategory.Lever,
Message = Loc.GetString("two-way-lever-cant"),
Disabled = component.State == TwoWayLeverState.Left,
IconTexture = $"/Textures/Interface/VerbIcons/{_leftToggleImage}",
@@ -77,6 +81,7 @@ namespace Content.Server.MachineLinking.System
};
StateChanged(uid, component);
},
Category = VerbCategory.Lever,
Message = Loc.GetString("two-way-lever-cant"),
Disabled = component.State == TwoWayLeverState.Right,
IconTexture = $"/Textures/Interface/VerbIcons/{_rightToggleImage}",