OKAY now I'm done I think.

This commit is contained in:
Fermi
2019-09-21 09:31:53 +01:00
parent 4b44b31aa3
commit a08c1229d6
5 changed files with 49 additions and 10 deletions
+19 -2
View File
@@ -198,7 +198,7 @@
/mob/living/proc/regenerate_organs()
return 0
/mob/living/carbon/regenerate_organs()
/mob/living/carbon/regenerate_organs(only_one = FALSE)
var/breathes = TRUE
var/blooded = TRUE
if(dna && dna.species)
@@ -217,6 +217,8 @@
else
LI = new()
LI.Insert(src)
if(only_one)
return
if(has_stomach && !getorganslot(ORGAN_SLOT_STOMACH))
var/obj/item/organ/stomach/S
@@ -226,14 +228,20 @@
else
S = new()
S.Insert(src)
if(only_one)
return
if(breathes && !getorganslot(ORGAN_SLOT_LUNGS))
var/obj/item/organ/lungs/L = new()
L.Insert(src)
if(only_one)
return
if(blooded && !getorganslot(ORGAN_SLOT_HEART))
var/obj/item/organ/heart/H = new()
H.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_TONGUE))
var/obj/item/organ/tongue/T
@@ -245,7 +253,10 @@
// if they have no mutant tongues, give them a regular one
T.Insert(src)
else
if(only_one)
return
else if (!only_one)
var/obj/item/organ/tongue/oT = getorganslot(ORGAN_SLOT_TONGUE)
if(oT.name == "fluffy tongue")
var/obj/item/organ/tongue/T
@@ -266,6 +277,8 @@
else
E = new()
E.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_EARS))
var/obj/item/organ/ears/ears
@@ -275,9 +288,13 @@
ears = new
ears.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_TAIL))
var/obj/item/organ/tail/tail
if(dna && dna.species && dna.species.mutanttail)
tail = new dna.species.mutanttail
tail.Insert(src)
if(only_one)
return