Port medibot + bot spawners from nyano (#9854)
* Port medibot + bot spawners from nyano * Make the injection thresholds constants * Remove warning * Check against const in system too * resolving systems just isn't worth it * only resolve entity manager once * Reduceother resolves too * fix post-merge * woops
This commit is contained in:
12
Content.Server/AI/Tracking/RecentlyInjectedComponent.cs
Normal file
12
Content.Server/AI/Tracking/RecentlyInjectedComponent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Content.Server.AI.Tracking
|
||||
{
|
||||
/// Added when a medibot injects someone
|
||||
/// So they don't get injected again for at least a minute.
|
||||
[RegisterComponent]
|
||||
public sealed class RecentlyInjectedComponent : Component
|
||||
{
|
||||
public float Accumulator = 0f;
|
||||
|
||||
public TimeSpan RemoveTime = TimeSpan.FromMinutes(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user