* contraband system rework to allow restriction by job, not just department * Fixing detective trenchcoat inheritance * removing unnecessary using declarations * trying to fix testing error by re-adding diagnostics using declaration * removing unecessary dependency, making allowedJobs nullable * Adding all of slarti's requested changes except for the hacky job icon method fix * removing accidental whitespace * choosing to use the non-localized version because we're comparing the string against the AllowedJobs field, and the contraband classes that fill that field are written in english * removing unneeded using dec, fixing nesting logic problem * didn't remove the old nesting, doing that now * using localized job title and localizing the allowed jobs string, removing usages of JobTitle field. Also networked the _jobTitle field instead. * rewrite some stuff * fixes * fix energy pen --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
27 lines
735 B
C#
27 lines
735 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Contraband;
|
|
|
|
/// <summary>
|
|
/// This is a prototype for defining the degree of severity for a particular <see cref="ContrabandComponent"/>
|
|
/// </summary>
|
|
[Prototype]
|
|
public sealed partial class ContrabandSeverityPrototype : IPrototype
|
|
{
|
|
/// <inheritdoc/>
|
|
[IdDataField]
|
|
public string ID { get; } = default!;
|
|
|
|
/// <summary>
|
|
/// Text shown for this severity level when the contraband is examined.
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId ExamineText;
|
|
|
|
/// <summary>
|
|
/// When examining the contraband, should this take into account the viewer's departments and job?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool ShowDepartmentsAndJobs;
|
|
}
|