mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
5168b5f3d4
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
23 lines
734 B
C#
23 lines
734 B
C#
using Content.Shared.Cargo.Components;
|
|
using Content.Shared.Timing;
|
|
using Content.Shared.Cargo.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)
|
|
{
|
|
if (!TryComp(entity, out UseDelayComponent? useDelay) || _useDelay.IsDelayed((entity, useDelay)))
|
|
return false;
|
|
|
|
// It feels worse if the cooldown is predicted but the popup isn't! So only do the cooldown reset on the server.
|
|
return true;
|
|
}
|
|
}
|