forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Builder13
committed
Oct 16, 2024
1 parent
b24bc7e
commit 58576e2
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
mods/_master_files/code/game/objects/structures/mineral_bath.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.is_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 |