Restores organs that are missing with admin rejuve Fixes #680

This commit is contained in:
SoundScopes
2015-08-14 12:55:45 +01:00
parent 5e4c0b7186
commit dffbe36d23
@@ -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()