From dffbe36d23e0fcf69eb0a045c8c64976afa873d8 Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Fri, 14 Aug 2015 12:55:45 +0100 Subject: [PATCH] Restores organs that are missing with admin rejuve Fixes #680 --- code/modules/mob/living/carbon/human/human_damage.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index e4db2e6b..6ad80fe4 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -345,6 +345,11 @@ This function restores the subjects blood to max. This function restores all organs. */ /mob/living/carbon/human/restore_all_organs() + for(var/species_organ in species.has_organ) + if(!(species_organ in internal_organs_by_name)) + var/organ_type = species.has_organ[species_organ] + internal_organs_by_name[species_organ] = new organ_type(src) + for(var/datum/organ/external/current_organ in organs) current_organ.rejuvenate()