CatStation/Content.Shared/Actions/Components/ActionProviderHeldComponent.cs
ScarKy0 091180655d
Changeling Chemicals (#45239)
* initially works i think

* yeah

* pulled these numbers outta my ass

* text

* silly

* fixy fix

* fix

* This sure is a videogame

* init test fuck everything

* sprites

* fix dirty

* query

* another query

* craftable changeling sting

* remove todo

* \n

* doc
2026-08-19 19:25:16 +00:00

25 lines
792 B
C#

using Content.Shared.Popups;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Actions.Components;
/// <summary>
/// Prevents an action from being used unless the entity providing it is held by the user.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(ActionRestrictionsSystem))]
[EntityCategory("Actions")]
public sealed partial class ActionProviderHeldComponent : Component
{
/// <summary>
/// Localization ID of the popup shown when the user is not holding the action provider.
/// </summary>
[DataField]
public LocId? OnFailPopup;
/// <summary>
/// The popup type the fail popup should appear as.
/// </summary>
[DataField]
public PopupType OnFailPopupType = PopupType.SmallCaution;
}