Files
wwdpublic/Content.Shared/NPC/Components/NPCRecentlyInjectedComponent.cs
godisdeadLOL 7e7e85c805 Sentient medibot now can inject (#32110)
medibot player injection

Co-authored-by: YourUsername <you@example.com>

(cherry picked from commit aea4e3cdbd722e0bc80407cb1652715b4775293c)
2025-09-20 20:34:08 +03:00

17 lines
556 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.NPC.Components
{
/// Added when a medibot injects someone
/// So they don't get injected again for at least a minute.
[RegisterComponent, NetworkedComponent]
public sealed partial class NPCRecentlyInjectedComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("accumulator")]
public float Accumulator = 0f;
[ViewVariables(VVAccess.ReadWrite), DataField("removeTime")]
public TimeSpan RemoveTime = TimeSpan.FromMinutes(1);
}
}