Galatean BioAugments (#21013)

This PR "Gently refactors" organs in preparation for adding in new
variant organsas requested by HumanLore. Additionally, it adds in
several organs that were requested by Human Lore, as described in:

https://docs.google.com/document/d/1SLbll969PyJ_H9J1LP8cmdso9OMozUc8MGOVZkY4HbE/mobilebasic

The new augments include: Auxiliary Heart, Platelet Factories, and
Subdermal Carpace
Additionally, all of the new Galatean Bioaugs have been added to the
antag uplink.

The bulk of this PR consists of replacing a majority of all the organ
"Magic Numbers" with variables which could feasibly be modified by any
new kind of organ object. Additionally-- although it's unused in this
PR, here's also a new optional boolean for hearts to create a "Fake
Pulse", which would be useful in the future for event character shells
to be able to fool a pulse check. Finally, the heart systems are
configured to use Signals so that arbitrarily any component can
introduce their own modifiers to the heart statistics.

This PR was requested by Human Lore:
<img width="434" height="290" alt="image"
src="https://github.com/user-attachments/assets/98236886-1c19-4621-958e-c154ae66f2ad"
/>

Sprites have been made by @NobleRow
This commit is contained in:
VMSolidus
2025-08-04 12:29:41 +00:00
committed by GitHub
parent a45faab183
commit 2e939e4d9b
23 changed files with 817 additions and 248 deletions
@@ -299,17 +299,75 @@
cost = 4
allowed_roles = list("Physician", "Surgeon", "Pharmacist", "Paramedic", "Psychiatrist", "Medical Intern", "Medical Personnel", "Security Officer", "Warden", "Security Cadet", "Investigator", "Security Personnel", "Corporate Liaison", "Assistant", "Off-Duty Crew Member", "Corporate Reporter", "Bridge Crew")
/datum/gear/augment/auxiliary_heart
display_name = "Auxiliary Heart"
description = "Primarily intended for soldiers and the elderly, the auxiliary heart is a small secondary heart implanted below the original. Should the original heart shut down, the secondary heart will activate, keeping the user alive until the original can be restarted or replaced."
path = /obj/item/organ/internal/augment/bioaug/auxiliary_heart
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
cost = 2
/datum/gear/augment/boosted_heart
display_name = "Boosted Heart"
description = "Intended for athletes, some workers, and soldiers, this improved heart increases blood flow and circulation. It provides an improvement to blood oxygenation and stamina, at the cost of requiring more food and water. Outside of Galatea, this augment is popular among professional athletes."
path = /obj/item/organ/internal/heart/boosted_heart
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
cost = 3
/datum/gear/augment/boosted_liver
display_name = "Boosted Liver"
description = "Designed primarily for diplomats or Galateans abroad, the boosted liver improves toxin filtering, giving a resistance to toxin damage. As a consequence, it makes it impossible for the user to get drunk."
path = /obj/item/organ/internal/liver/boosted_liver
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
cost = 2
/datum/gear/augment/mind_blanker
display_name = "Galatean Mind Blanker"
description = "A small, discrete organ attached near the base of the brainstem. Any attempt to read the mind of an individual with this augment installed will fail, as will attempts at psychic brainwashing."
path = /obj/item/organ/internal/augment/mind_blanker
path = /obj/item/organ/internal/augment/bioaug/mind_blanker
origin_restriction = list(/singleton/origin_item/origin/galatea)
cost = 4
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
cost = 2
/datum/gear/augment/mind_blanker_lethal
display_name = "Galatean Mind Blanker (Lethal)"
description = "Available only to higher-up MfAS agents and members of the Galatean government. This enhanced variant of a mind blanker introduces a psionic trap which inflicts severe neural damage on anyone attempting to read the user's mind."
path = /obj/item/organ/internal/augment/mind_blanker_lethal
path = /obj/item/organ/internal/augment/bioaug/mind_blanker_lethal
origin_restriction = list(/singleton/origin_item/origin/galatea)
cost = 6
allowed_roles = list("Consular")
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
cost = 4
allowed_roles = list("Consular Officer")
/datum/gear/augment/bio_head_fluff
display_name = "custom head bioaug"
description = "A fluff based bioaug that can be renamed/redescribed to appear as something else for RP purposes."
path = /obj/item/organ/internal/augment/bioaug/head_fluff
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
/datum/gear/augment/bio_chest_fluff
display_name = "custom chest bioaug"
description = "A fluff based bioaug that can be renamed/redescribed to appear as something else for RP purposes."
path = /obj/item/organ/internal/augment/bioaug/head_fluff/chest_fluff
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
/datum/gear/augment/bio_rhand_fluff
display_name = "custom right hand bioaug"
description = "A fluff based bioaug that can be renamed/redescribed to appear as something else for RP purposes."
path = /obj/item/organ/internal/augment/bioaug/head_fluff/rhand_fluff
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
/datum/gear/augment/bio_lhand_fluff
display_name = "custom left hand bioaug"
description = "A fluff based bioaug that can be renamed/redescribed to appear as something else for RP purposes."
path = /obj/item/organ/internal/augment/bioaug/head_fluff/lhand_fluff
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION
origin_restriction = list(/singleton/origin_item/origin/galatea)
whitelisted = list(SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD)
@@ -574,6 +574,14 @@ GLOBAL_LIST_INIT(gear_datums, list())
replaced_limb.droplimb(TRUE, DROPLIMB_EDGE, FALSE)
qdel(replaced_limb)
// Handling for "Organ swapping" augments. Anything that shares an organ tag with a pre-existing organ.
if(ispath(spawn_path, /obj/item/organ/internal))
var/obj/item/organ/internal/internal_aug = spawn_path
var/obj/item/organ/internal/replaced_organ = H.get_organ(initial(internal_aug.organ_tag))
if(internal_aug.organ_tag == replaced_organ.organ_tag)
replaced_organ.removed(H, null)
qdel(replaced_organ)
var/item = new spawn_path(spawn_location)
for(var/datum/gear_tweak/gt in gear_tweaks)
if(metadata["[gt]"])