Skip to content

Commit

Permalink
adherent-fractures
Browse files Browse the repository at this point in the history
  • Loading branch information
Builder13 committed Oct 16, 2024
1 parent b24bc7e commit 58576e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
17 changes: 17 additions & 0 deletions mods/_master_files/code/game/objects/structures/mineral_bath.dm
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

0 comments on commit 58576e2

Please sign in to comment.