Fix categories (#10683)
This commit is contained in:
@@ -8,6 +8,8 @@ namespace Content.Shared.Construction.Prototypes
|
||||
[Prototype("construction")]
|
||||
public sealed class ConstructionPrototype : IPrototype
|
||||
{
|
||||
private string _category = string.Empty;
|
||||
|
||||
[DataField("conditions")] private List<IConstructionCondition> _conditions = new();
|
||||
|
||||
/// <summary>
|
||||
@@ -52,7 +54,12 @@ namespace Content.Shared.Construction.Prototypes
|
||||
[DataField("canBuildInImpassable")]
|
||||
public bool CanBuildInImpassable { get; private set; }
|
||||
|
||||
[DataField("category")] public string Category { get; private set; } = string.Empty;
|
||||
[DataField("category")]
|
||||
public string Category
|
||||
{
|
||||
get => _category;
|
||||
private set => _category = Loc.GetString(value);
|
||||
}
|
||||
|
||||
[DataField("objectType")] public ConstructionType Type { get; private set; } = ConstructionType.Structure;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user