Files
wwdpublic/Content.Client/Cargo/Systems/ClientPriceGunSystem.cs
beck-thompson 56eeda906e Predict appraisal tool verb! (#32496)
* First commit

* Network :(

(cherry picked from commit 7485411ab2a2570f70cf37135647c22ad557c5d3)
2025-09-27 12:41:41 +03:00

22 lines
695 B
C#

using Content.Shared.Timing;
using Content.Shared.Cargo.Systems;
namespace Content.Client.Cargo.Systems;
/// <summary>
/// This handles...
/// </summary>
public sealed class ClientPriceGunSystem : SharedPriceGunSystem
{
[Dependency] private readonly UseDelaySystem _useDelay = default!;
protected override bool GetPriceOrBounty(EntityUid priceGunUid, EntityUid target, EntityUid user)
{
if (!TryComp(priceGunUid, out UseDelayComponent? useDelay) || _useDelay.IsDelayed((priceGunUid, 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;
}
}