Job-specific traitor items (#9601)
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Content.Shared.PDA
|
||||
Bundles,
|
||||
Tools,
|
||||
Utility,
|
||||
Job,
|
||||
Armor,
|
||||
Pointless,
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.PDA
|
||||
@@ -29,6 +31,9 @@ namespace Content.Shared.PDA
|
||||
[DataField("icon")]
|
||||
public SpriteSpecifier? Icon { get; } = null;
|
||||
|
||||
[DataField("jobWhitelist", customTypeSerializer:typeof(PrototypeIdHashSetSerializer<JobPrototype>))]
|
||||
public HashSet<string>? JobWhitelist;
|
||||
|
||||
[DataField("surplus")]
|
||||
public bool CanSurplus = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user