diff --git a/Content.Shared/Body/Organ/OrganComponent.cs b/Content.Shared/Body/Organ/OrganComponent.cs index 2f575952e9..a675f64111 100644 --- a/Content.Shared/Body/Organ/OrganComponent.cs +++ b/Content.Shared/Body/Organ/OrganComponent.cs @@ -30,13 +30,13 @@ public sealed partial class OrganComponent : Component, ISurgeryToolComponent // /// without referencing the prototype or hardcoding. /// - [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; /// diff --git a/Content.Shared/Body/Part/BodyPartComponent.cs b/Content.Shared/Body/Part/BodyPartComponent.cs index b9862c28c9..b5d2fcecee 100644 --- a/Content.Shared/Body/Part/BodyPartComponent.cs +++ b/Content.Shared/Body/Part/BodyPartComponent.cs @@ -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; /// @@ -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; /// diff --git a/Content.Shared/_Shitmed/Surgery/Steps/SurgeryAddMarkingStepComponent.cs b/Content.Shared/_Shitmed/Surgery/Steps/SurgeryAddMarkingStepComponent.cs index 5e9f6c946a..c7feee6d4c 100644 --- a/Content.Shared/_Shitmed/Surgery/Steps/SurgeryAddMarkingStepComponent.cs +++ b/Content.Shared/_Shitmed/Surgery/Steps/SurgeryAddMarkingStepComponent.cs @@ -18,7 +18,7 @@ public sealed partial class SurgeryAddMarkingStepComponent : Component /// against the entity to validate that the marking is not already present. /// [DataField] - public String MatchString = ""; + public string MatchString = string.Empty; /// /// What type of organ is required for this surgery? diff --git a/Content.Shared/_Shitmed/Surgery/Steps/SurgeryRemoveMarkingStepComponent.cs b/Content.Shared/_Shitmed/Surgery/Steps/SurgeryRemoveMarkingStepComponent.cs index d0e4c260e9..ca76fb7890 100644 --- a/Content.Shared/_Shitmed/Surgery/Steps/SurgeryRemoveMarkingStepComponent.cs +++ b/Content.Shared/_Shitmed/Surgery/Steps/SurgeryRemoveMarkingStepComponent.cs @@ -18,12 +18,11 @@ public sealed partial class SurgeryRemoveMarkingStepComponent : Component /// against the entity to validate that the marking is present. /// [DataField] - public String MatchString = ""; + public string MatchString = string.Empty; /// /// Will this step spawn an item as a result of removing the markings? If so, which? /// [DataField] public EntProtoId? ItemSpawn = default!; - }