From 7b59a3d1d9c19eeb49c4ec87772ecc219fc849c7 Mon Sep 17 00:00:00 2001 From: Just-a-Unity-Dev <67359748+Just-a-Unity-Dev@users.noreply.github.com> Date: Fri, 29 Mar 2024 00:01:08 +0800 Subject: [PATCH] CTV: Medical (#217) * Basic wounds functionality * Wounds examination * remove height bar * remove this too * Treatment code * Wounds work all fine and dandy * Tool quality checker * Singleton wounds * Change tools * Split treatment paths from struct to class * Wound thresholds and damage specifiers * Buff surgical tools * Wounds are done * Buff VIE * fix tests?? --- .../Preferences/UI/HumanoidProfileEditor.xaml | 12 +- .../UI/HumanoidProfileEditor.xaml.cs | 26 +- .../HealthExaminableSystem.cs | 28 ++- .../_FTL/Wounds/WoundThresholdComponent.cs | 19 ++ .../_FTL/Wounds/WoundTreatmentSystem.cs | 223 ++++++++++++++++++ Content.Shared/Damage/DamageModifierSet.cs | 3 + Content.Shared/Damage/DamageSpecifier.cs | 18 ++ .../Damage/Systems/DamageableSystem.cs | 32 ++- Content.Shared/Verbs/VerbCategory.cs | 2 + .../_FTL/Wounds/BaseTreatmentPath.cs | 49 ++++ .../_FTL/Wounds/SharedWoundsSystem.cs | 121 ++++++++++ .../_FTL/Wounds/ToolTreatmentPath.cs | 24 ++ Content.Shared/_FTL/Wounds/WoundComponent.cs | 40 ++++ .../_FTL/Wounds/WoundsHolderComponent.cs | 12 + Resources/Locale/en-US/_ftl/wounds.ftl | 49 ++++ Resources/Prototypes/Entities/Mobs/base.yml | 21 +- .../Objects/Specific/Medical/surgery.yml | 52 ++-- .../Objects/Weapons/Guns/Projectiles/ap.yml | 14 +- .../Prototypes/_FTL/Entities/Wounds/debug.yml | 14 ++ .../_FTL/Entities/Wounds/wounds.yml | 135 +++++++++++ 20 files changed, 845 insertions(+), 49 deletions(-) create mode 100644 Content.Server/_FTL/Wounds/WoundThresholdComponent.cs create mode 100644 Content.Server/_FTL/Wounds/WoundTreatmentSystem.cs create mode 100644 Content.Shared/_FTL/Wounds/BaseTreatmentPath.cs create mode 100644 Content.Shared/_FTL/Wounds/SharedWoundsSystem.cs create mode 100644 Content.Shared/_FTL/Wounds/ToolTreatmentPath.cs create mode 100644 Content.Shared/_FTL/Wounds/WoundComponent.cs create mode 100644 Content.Shared/_FTL/Wounds/WoundsHolderComponent.cs create mode 100644 Resources/Locale/en-US/_ftl/wounds.ftl create mode 100644 Resources/Prototypes/_FTL/Entities/Wounds/debug.yml create mode 100644 Resources/Prototypes/_FTL/Entities/Wounds/wounds.yml diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml index f53711d4c3..9d244b0c34 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml @@ -97,12 +97,12 @@ - -