2022-09-06 00:28:23 +10:00
|
|
|
namespace Content.Server.NPC.Components
|
2022-07-25 11:33:31 -04:00
|
|
|
{
|
|
|
|
|
/// Added when a medibot injects someone
|
|
|
|
|
/// So they don't get injected again for at least a minute.
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class NPCRecentlyInjectedComponent : Component
|
2022-07-25 11:33:31 -04:00
|
|
|
{
|
2022-09-06 00:28:23 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("accumulator")]
|
2022-07-25 11:33:31 -04:00
|
|
|
public float Accumulator = 0f;
|
|
|
|
|
|
2022-09-06 00:28:23 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("removeTime")]
|
2022-07-25 11:33:31 -04:00
|
|
|
public TimeSpan RemoveTime = TimeSpan.FromMinutes(1);
|
|
|
|
|
}
|
|
|
|
|
}
|