Files
tbd-station-14/Content.Server/Thief/Components/ThiefUndeterminedBackpackComponent.cs
deltanedas 0910983c4b unhardcode thief MaxSelectedSets (#29175)
* unhardcode thief MaxSelectedSets

* we do a little copy paste :trollface:

* :trollface:

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2024-06-19 10:29:06 +10:00

33 lines
932 B
C#

using Content.Server.Thief.Systems;
using Content.Shared.Thief;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Server.Thief.Components;
/// <summary>
/// This component stores the possible contents of the backpack,
/// which can be selected via the interface.
/// </summary>
[RegisterComponent, Access(typeof(ThiefUndeterminedBackpackSystem))]
public sealed partial class ThiefUndeterminedBackpackComponent : Component
{
/// <summary>
/// List of sets available for selection
/// </summary>
[DataField]
public List<ProtoId<ThiefBackpackSetPrototype>> PossibleSets = new();
[DataField]
public List<int> SelectedSets = new();
[DataField]
public SoundSpecifier ApproveSound = new SoundPathSpecifier("/Audio/Effects/rustle1.ogg");
/// <summary>
/// Max number of sets you can select.
/// </summary>
[DataField]
public int MaxSelectedSets = 2;
}