mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 08:37:48 +03:00
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)
26 lines
945 B
C#
26 lines
945 B
C#
using Content.Shared.Body.Part;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._Shitmed.Medical.Surgery.Conditions;
|
|
|
|
// <summary>
|
|
// What components are necessary in the part's organs' OnAdd fields for the surgery to be valid.
|
|
//
|
|
// Not all components need to be present (or missing for Inverse = true). At least one component matching (or missing) can make the surgery valid.
|
|
// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class SurgeryOrganOnAddConditionComponent : Component
|
|
{
|
|
// <summary>
|
|
// The components to check for on each organ, with the key being the organ's SlotId.
|
|
// </summary>
|
|
[DataField(required: true)]
|
|
public Dictionary<string, ComponentRegistry> Components;
|
|
|
|
// <summary>
|
|
// If true, the lack of these components will instead make the surgery valid.
|
|
// </summary>
|
|
[DataField]
|
|
public bool Inverse = false;
|
|
} |