Files
crystall-punk-14/Content.Shared/Clothing/MagbootsComponent.cs
Nemanja 3644602fb8 Fix magboots not needing a grid to work (#29034)
* Fix magboots not needing a grid to work

* ok fix it for realsies
2024-06-16 13:38:17 +10:00

30 lines
891 B
C#

using Content.Shared.Alert;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Clothing;
[RegisterComponent, NetworkedComponent(), AutoGenerateComponentState]
[Access(typeof(SharedMagbootsSystem))]
public sealed partial class MagbootsComponent : Component
{
[DataField]
public EntProtoId ToggleAction = "ActionToggleMagboots";
[DataField, AutoNetworkedField]
public EntityUid? ToggleActionEntity;
[DataField("on"), AutoNetworkedField]
public bool On;
[DataField]
public ProtoId<AlertPrototype> MagbootsAlert = "Magboots";
/// <summary>
/// If true, the user must be standing on a grid or planet map to experience the weightlessness-canceling effect
/// </summary>
[DataField]
public bool RequiresGrid = true;
}