CatStation/Content.Shared/Item/ForcedItemStatusEffectItemComponent.cs
ScarKy0 9e065f7453
Fake Armblade Sting (#45724)
* init

* further work

TODO:
- Sprite
- Fix sound playing if item(s) were removed

* work work work

TODO:
- Sprite

* clean

* sprite

* yeah

* guh

* multi item support

* Update ForcedItemStatusEffectComponent.cs

* review + balance i dk
2026-09-03 19:58:20 +00:00

24 lines
706 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Item;
/// <summary>
/// Marker component for the items spawned by <see cref="ForcedItemStatusEffectSystem"/>.
/// For mutual cleanup.
/// </summary>
[RegisterComponent, NetworkedComponent]
[AutoGenerateComponentState]
public sealed partial class ForcedItemStatusEffectItemComponent : Component
{
/// <summary>
/// The status effect that forced this item to spawn.
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? StatusEffect;
/// <summary>
/// Whether the item should be removed when the holder is handcuffed.
/// </summary>
[DataField, AutoNetworkedField]
public bool RemoveWhenCuffed;
}