6
2026-01-24 12:49:55 +03:00

30 lines
884 B
C#

using Content.Shared.Research.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Research.Components;
/// <summary>
/// Component for stealing technologies from a R&D server, when gloves are enabled.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedResearchStealerSystem))]
public sealed partial class ResearchStealerComponent : Component
{
/// <summary>
/// Time taken to steal research from a server
/// </summary>
[DataField("delay"), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan Delay = TimeSpan.FromSeconds(20);
/// <summary>
/// The minimum number of technologies that will be stolen
/// </summary>
[DataField]
public int MinToSteal = 4;
/// <summary>
/// The maximum number of technologies that will be stolen
/// </summary>
[DataField]
public int MaxToSteal = 8;
}