mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-27 18:42:19 +00:00
Fixes #6325
This commit is contained in:
@@ -321,7 +321,6 @@ This function completely restores a damaged organ to perfect condition.
|
||||
|
||||
//Infections
|
||||
update_germs()
|
||||
return
|
||||
|
||||
//Updating germ levels. Handles organ germ levels and necrosis.
|
||||
/*
|
||||
@@ -725,8 +724,10 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
return rval
|
||||
|
||||
/datum/organ/external/proc/fracture()
|
||||
|
||||
if(status & ORGAN_BROKEN)
|
||||
return
|
||||
|
||||
owner.visible_message(\
|
||||
"\red You hear a loud cracking sound coming from \the [owner].",\
|
||||
"\red <b>Something feels like it shattered in your [display_name]!</b>",\
|
||||
@@ -743,6 +744,25 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
if (prob(25))
|
||||
release_restraints()
|
||||
|
||||
// This is mostly for the ninja suit to stop ninja being so crippled by breaks.
|
||||
// TODO: consider moving this to a suit proc or process() or something during
|
||||
// hardsuit rewrite.
|
||||
if(!(status & ORGAN_SPLINTED) && istype(owner,/mob/living/carbon/human))
|
||||
|
||||
var/mob/living/carbon/human/H = owner
|
||||
|
||||
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
|
||||
|
||||
var/obj/item/clothing/suit/space/suit = H.wear_suit
|
||||
|
||||
if(isnull(suit.supporting_limbs))
|
||||
return
|
||||
|
||||
owner << "You feel \the [suit] constrict about your [display_name], supporting it."
|
||||
status |= ORGAN_SPLINTED
|
||||
suit.supporting_limbs |= src
|
||||
return
|
||||
|
||||
/datum/organ/external/proc/robotize()
|
||||
src.status &= ~ORGAN_BROKEN
|
||||
src.status &= ~ORGAN_BLEEDING
|
||||
|
||||
Reference in New Issue
Block a user