Change components to use timer component (#2426)
* Change components to use timer component * Fix old usages of tokens
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.GameObjects.Components.Movement;
|
||||
using Content.Shared.GameObjects.EntitySystems;
|
||||
using Content.Shared.Interfaces.GameObjects.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects.Components.Timers;
|
||||
using Robust.Shared.Interfaces.Timing;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Serialization;
|
||||
@@ -225,7 +226,7 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
}
|
||||
|
||||
_canHelp = false;
|
||||
Timer.Spawn((int) _helpInterval * 1000, () => _canHelp = true);
|
||||
Owner.SpawnTimer((int) _helpInterval * 1000, () => _canHelp = true);
|
||||
|
||||
KnockdownTimer -= _helpKnockdownRemove;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user