CatStation/Content.Client/Cargo/Systems/ClientPriceGunSystem.cs
Sir Warock ec63a41842
Cleanup of UseDelay (#45350)
* Moving into Systems & Components Folders

* splitting into API file

* Make Method accept null values

* small fix
2026-09-05 17:10:50 +00:00

19 lines
638 B
C#

using Content.Shared.Cargo.Components;
using Content.Shared.Cargo.Systems;
using Content.Shared.Timing.Systems;
namespace Content.Client.Cargo.Systems;
/// <summary>
/// This handles...
/// </summary>
public sealed partial class ClientPriceGunSystem : SharedPriceGunSystem
{
[Dependency] private UseDelaySystem _useDelay = default!;
protected override bool GetPriceOrBounty(Entity<PriceGunComponent> entity, EntityUid target, EntityUid user)
{
// It feels worse if the cooldown is predicted but the popup isn't! So only do the cooldown reset on the server.
return _useDelay.IsDelayed(entity.Owner);
}
}