Allow non-humanoid roles (#9604)
This commit is contained in:
@@ -51,6 +51,14 @@ namespace Content.Shared.Roles
|
||||
[DataField("startingGear", customTypeSerializer: typeof(PrototypeIdSerializer<StartingGearPrototype>))]
|
||||
public string? StartingGear { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Use this to spawn in as a non-humanoid (borg, test subject, etc.)
|
||||
/// Starting gear will be ignored.
|
||||
/// If you want to just add special attributes to a humanoid, use AddComponentSpecial instead.
|
||||
/// </summary>
|
||||
[DataField("jobEntity", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? JobEntity = null;
|
||||
|
||||
[DataField("icon")] public string Icon { get; } = string.Empty;
|
||||
|
||||
[DataField("special", serverOnly:true)]
|
||||
|
||||
Reference in New Issue
Block a user