Files
tbd-station-14/Content.Shared/Delivery/DeliveryFragileComponent.cs
ScarKy0 13a1853168 Fragile Deliveries (#36980)
* epic

* tweaks
2025-04-28 01:04:39 +02:00

32 lines
893 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Delivery;
/// <summary>
/// Component given to deliveries.
/// Allows the delivery to be broken.
/// If intact, applies a small multiplier, otherwise substracts it.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(DeliveryModifierSystem))]
public sealed partial class DeliveryFragileComponent : Component
{
/// <summary>
/// Multiplier to use when the delivery is intact.
/// </summary>
[DataField]
public float IntactMultiplierOffset = 0.15f;
/// <summary>
/// Multiplier to use when the delivery is broken.
/// </summary>
[DataField]
public float BrokenMultiplierOffset = -0.33f;
/// <summary>
/// Whether this priority has already been broken or not.
/// </summary>
[DataField, AutoNetworkedField]
public bool Broken;
}