remove always push on body part
This commit is contained in:
parent
bd6aeaa438
commit
a31e25cb02
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
|
|
|||
|
|
@ -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!;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue