Fix verb sub (#30667)
* Fix verb sub Mapping casualty, verbs are weird. * also this
This commit is contained in:
@@ -47,6 +47,7 @@ namespace Content.Client.Verbs.UI
|
|||||||
{
|
{
|
||||||
_context.OnContextKeyEvent += OnKeyBindDown;
|
_context.OnContextKeyEvent += OnKeyBindDown;
|
||||||
_context.OnContextClosed += Close;
|
_context.OnContextClosed += Close;
|
||||||
|
_verbSystem.OnVerbsResponse += HandleVerbsResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnStateExited(GameplayState state)
|
public void OnStateExited(GameplayState state)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ using Content.Server.Traitor.Components;
|
|||||||
using Robust.Shared.Random;
|
using Robust.Shared.Random;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Content.Shared.Paper;
|
||||||
|
|
||||||
namespace Content.Server.Traitor.Systems;
|
namespace Content.Server.Traitor.Systems;
|
||||||
|
|
||||||
@@ -33,11 +34,11 @@ public sealed class TraitorCodePaperSystem : EntitySystem
|
|||||||
if (!Resolve(uid, ref component))
|
if (!Resolve(uid, ref component))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (HasComp<PaperComponent>(uid))
|
if (TryComp(uid, out PaperComponent? paperComp))
|
||||||
{
|
{
|
||||||
if (TryGetTraitorCode(out var paperContent, component))
|
if (TryGetTraitorCode(out var paperContent, component))
|
||||||
{
|
{
|
||||||
_paper.SetContent(uid, paperContent);
|
_paper.SetContent((uid, paperComp), paperContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user