using Robust.Shared.Map;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
+using Content.Shared.Rejuvenate;
namespace Content.Shared.Actions;
SubscribeLocalEvent<ActionsComponent, DidEquipHandEvent>(OnHandEquipped);
SubscribeLocalEvent<ActionsComponent, DidUnequipEvent>(OnDidUnequip);
SubscribeLocalEvent<ActionsComponent, DidUnequipHandEvent>(OnHandUnequipped);
+ SubscribeLocalEvent<ActionsComponent, RejuvenateEvent>(OnRejuventate);
SubscribeLocalEvent<ActionsComponent, ComponentShutdown>(OnShutdown);
Dirty(actionId.Value, action);
}
+ private void OnRejuventate(EntityUid uid, ActionsComponent component, RejuvenateEvent args)
+ {
+ foreach (var act in component.Actions)
+ {
+ ClearCooldown(act);
+ }
+ }
+
#region ComponentStateManagement
protected virtual void UpdateAction(EntityUid? actionId, BaseActionComponent? action = null)
{