Files
wwdpublic/Content.Shared/_Shitmed/Surgery/Steps/SurgeryStepComponent.cs
gluesniffler 2a33691a1c Ports Shitmed Updates From Goob (#1387)
Lots of stuff. Also moved everything I could to the _Shitmed namespace
as I do in Goob. Will make future ports way faster

# Changelog
🆑 Mocho
- add: Added some fun organs and other thingies, check out the Goob PRs
if you want more details.
- fix: Fixed tons of issues with shitmed. Too many for the changelog in
fact.

(cherry picked from commit 3c9db94102cb25b28a83d51ac8d659fa31fe7d12)
2025-01-13 23:01:51 +03:00

47 lines
1.3 KiB
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._Shitmed.Medical.Surgery.Steps;
[RegisterComponent, NetworkedComponent]
[Prototype("SurgerySteps")]
public sealed partial class SurgeryStepComponent : Component
{
[DataField]
public ComponentRegistry? Tool;
[DataField]
public ComponentRegistry? Add;
[DataField]
public ComponentRegistry? BodyAdd;
[DataField]
public ComponentRegistry? Remove;
[DataField]
public ComponentRegistry? BodyRemove;
/// <summary>
/// These components will be added to the body part's organs' OnAdd field.
/// Each key is the SlotId of the organ to look for.
///
/// Used to make organs add components to whatever body it's residing in.
/// </summary>
[DataField]
public Dictionary<string, ComponentRegistry>? AddOrganOnAdd;
/// <summary>
/// These components will be removed from the body part's organs' OnAdd field.
/// Each key is the SlotId of the organ to look for.
///
/// Used to stop organs from adding components to whatever body it's residing in.
/// </summary>
[DataField]
public Dictionary<string, ComponentRegistry>? RemoveOrganOnAdd;
[DataField]
public float Duration = 2f;
}