diff --git a/baystation12.dme b/baystation12.dme index 8079b7deefaed..68dde65455753 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -3333,6 +3333,7 @@ #include "mods\_master_files\code\game\world.dm" #include "mods\_master_files\code\game\gamemodes\ert.dm" #include "mods\_master_files\code\game\objects\effects\decals\contraband.dm" +#include "mods\_master_files\code\game\objects\structures\mineral_bath.dm" #include "mods\_master_files\code\game\objects\structures\signs.dm" #include "mods\_master_files\code\game\objects\structures\crates_lockers\closets\_closet_appearance_definitions.dm" #include "mods\_master_files\code\modules\client\asset_cache.dm" diff --git a/mods/_master_files/code/game/objects/structures/mineral_bath.dm b/mods/_master_files/code/game/objects/structures/mineral_bath.dm new file mode 100644 index 0000000000000..3bb1a0ab99823 --- /dev/null +++ b/mods/_master_files/code/game/objects/structures/mineral_bath.dm @@ -0,0 +1,17 @@ +/obj/structure/adherent_bath/Process() + ..() + + if(ishuman(occupant)) + var/mob/living/carbon/human/H = occupant + + if(H.species.name == SPECIES_ADHERENT && prob(1)) + for(var/obj/item/organ/external/E in H.organs) + if(E.status & ORGAN_BROKEN) + E.mend_fracture() + to_chat(H, SPAN_NOTICE("The mineral-rich bath mends internal structure of your [E.name].")) + break + + if(istype(E, /obj/item/organ/external/head) && E.status & ORGAN_DISFIGURED) + E.status &= ~ORGAN_DISFIGURED + to_chat(H, SPAN_NOTICE("The mineral-rich bath mends your [E.name].")) + break \ No newline at end of file