Files
tbd-station-14/Content.Shared/Cargo/Components/OverrideSellComponent.cs
ScarKy0 467fe23795 Further Allocation Tweaks (#36800)
* init

* fix lockboxes
2025-04-21 12:32:14 +02:00

24 lines
753 B
C#

using Content.Shared.Cargo.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared.Cargo.Components;
/// <summary>
/// Makes a sellable object portion out its value to a specified department rather than the station default
/// </summary>
[RegisterComponent]
public sealed partial class OverrideSellComponent : Component
{
/// <summary>
/// The account that will receive the primary funds from this being sold.
/// </summary>
[DataField(required: true)]
public ProtoId<CargoAccountPrototype> OverrideAccount;
/// <summary>
/// The cut that the OverrideAccount will get from the price. The rest is given to the primary station account.
/// </summary>
[DataField]
public float OverrideCut = 0.75f;
}