remove always push on body part

This commit is contained in:
deltanedas 2025-02-10 13:18:55 +00:00
parent bd6aeaa438
commit a31e25cb02
4 changed files with 12 additions and 13 deletions

View File

@ -30,13 +30,13 @@ public sealed partial class OrganComponent : Component, ISurgeryToolComponent //
/// without referencing the prototype or hardcoding.
/// </summary>
[DataField, AlwaysPushInheritance]
public string SlotId = "";
[DataField]
public string SlotId = string.Empty;
[DataField, AlwaysPushInheritance]
[DataField]
public string ToolName { get; set; } = "An organ";
[DataField, AlwaysPushInheritance]
[DataField]
public float Speed { get; set; } = 1f;
/// <summary>

View File

@ -38,16 +38,16 @@ public sealed partial class BodyPartComponent : Component, ISurgeryToolComponent
[DataField]
public float SeverBleeding = 4f;
[DataField, AlwaysPushInheritance]
[DataField]
public string ToolName { get; set; } = "A body part";
[DataField, AlwaysPushInheritance]
public string SlotId = "";
[DataField]
public string SlotId = string.Empty;
[DataField, AutoNetworkedField]
public bool? Used { get; set; } = null;
[DataField, AlwaysPushInheritance]
[DataField]
public float Speed { get; set; } = 1f;
/// <summary>
@ -147,7 +147,7 @@ public sealed partial class BodyPartComponent : Component, ISurgeryToolComponent
};
[DataField, AutoNetworkedField, AlwaysPushInheritance]
[DataField, AutoNetworkedField]
public BodyPartType PartType = BodyPartType.Other;
@ -159,7 +159,7 @@ public sealed partial class BodyPartComponent : Component, ISurgeryToolComponent
[DataField("vital"), AutoNetworkedField]
public bool IsVital;
[DataField, AutoNetworkedField, AlwaysPushInheritance]
[DataField, AutoNetworkedField]
public BodyPartSymmetry Symmetry = BodyPartSymmetry.None;
/// <summary>

View File

@ -18,7 +18,7 @@ public sealed partial class SurgeryAddMarkingStepComponent : Component
/// against the entity to validate that the marking is not already present.
/// </summary>
[DataField]
public String MatchString = "";
public string MatchString = string.Empty;
/// <summary>
/// What type of organ is required for this surgery?

View File

@ -18,12 +18,11 @@ public sealed partial class SurgeryRemoveMarkingStepComponent : Component
/// against the entity to validate that the marking is present.
/// </summary>
[DataField]
public String MatchString = "";
public string MatchString = string.Empty;
/// <summary>
/// Will this step spawn an item as a result of removing the markings? If so, which?
/// </summary>
[DataField]
public EntProtoId? ItemSpawn = default!;
}