Mag gloves (#147)

* created yml

* +mechanics

* textures

* full implementation of magnetic gloves without lathe crafts and researches

* finale

* meeerge

* Fixed
This commit is contained in:
Viktor
2024-03-21 02:08:17 +02:00
committed by GitHub
parent 4199fb2669
commit 1b2b313804
36 changed files with 556 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
using Robust.Shared.Prototypes;
namespace Content.Shared._White.MagGloves;
/// <summary>
/// This is used for...
/// </summary>
[RegisterComponent, AutoGenerateComponentState]
public sealed partial class MagneticGlovesComponent : Component
{
[ViewVariables]
public bool Enabled { get; set; } = false;
[DataField, AutoNetworkedField]
public EntityUid? ToggleActionEntity;
[DataField("action")]
public EntProtoId ToggleAction = "ActionToggleMagneticGloves";
[ViewVariables(VVAccess.ReadOnly)]
public TimeSpan GlovesReadyAt = TimeSpan.Zero;
[ViewVariables(VVAccess.ReadOnly)]
public TimeSpan GlovesLastActivation = TimeSpan.Zero;
[DataField("glovesCooldown")]
public TimeSpan GlovesCooldown = TimeSpan.FromSeconds(60);
[DataField("glovesActiveTime")]
public TimeSpan GlovesActiveTime = TimeSpan.FromSeconds(60);
}