6
2025-11-12 10:55:00 +03:00

61 lines
2.1 KiB
C#

using Content.Shared.Roles;
using Content.Shared.Store; // Frontier: turn-in features
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Contraband;
/// <summary>
/// This is used for marking entities that are considered 'contraband' IC and showing it clearly in examine.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] // Frontier: removed Access(typeof(ContrabandSystem))
public sealed partial class ContrabandComponent : Component
{
/// <summary>
/// The degree of contraband severity this item is considered to have.
/// </summary>
[DataField]
[AutoNetworkedField]
public ProtoId<ContrabandSeverityPrototype> Severity = "Restricted";
/// <summary>
/// Which departments is this item restricted to?
/// By default, command and sec are assumed to be fine with contraband.
/// If null, no departments are allowed to use this.
/// </summary>
[DataField]
[AutoNetworkedField]
public HashSet<ProtoId<DepartmentPrototype>> AllowedDepartments = new();
/// <summary>
/// Which jobs is this item restricted to?
/// If empty, no jobs are allowed to use this beyond the allowed departments.
/// </summary>
[DataField]
[AutoNetworkedField]
public HashSet<ProtoId<JobPrototype>> AllowedJobs = new();
// Frontier: turn-in features
/// <summary>
/// The set of currency types this item can be redeemed
/// </summary>
[DataField]
[AutoNetworkedField]
public Dictionary<ProtoId<CurrencyPrototype>, int> TurnInValues = new();
/// <summary>
/// If true, will not show contraband status on examine. Useful for chameleon shoes and other camouflaged items.
/// </summary>
[DataField]
[AutoNetworkedField]
public bool HideValues = false;
/// <summary>
/// If true, will not show the carry status ("avoid carrying this around"/"in the clear").
/// </summary>
[DataField]
[AutoNetworkedField]
public bool HideCarryStatus = false;
// End Frontier: turn-in extensions
}