fixes lizard code
This commit is contained in:
@@ -45,14 +45,20 @@
|
||||
/obj/item/organ/tail/lizard/Insert(mob/living/carbon/human/H, special = 0, drop_if_replaced = TRUE)
|
||||
..()
|
||||
if(istype(H))
|
||||
// Checks here are necessary so it wouldn't overwrite the tail of a lizard it spawned in
|
||||
// Checks here are necessary so it wouldn't overwrite the tail of a lizard it spawned in //yes, the if checks may cause snowflakes so that you can't insert another person's tail (haven't actually tested it but I assume that's the result of my addition) but it makes it so never again will lizards break their spine if set_species is called twice in a row
|
||||
if(!H.dna.species.mutant_bodyparts["tail_lizard"])
|
||||
H.dna.features["tail_lizard"] = tail_type
|
||||
H.dna.species.mutant_bodyparts["tail_lizard"] = tail_type
|
||||
if (!H.dna.features["tail_lizard"])
|
||||
H.dna.features["tail_lizard"] = tail_type
|
||||
H.dna.species.mutant_bodyparts["tail_lizard"] = tail_type
|
||||
else
|
||||
H.dna.species.mutant_bodyparts["tail_lizard"] = H.dna.features["tail_lizard"]
|
||||
|
||||
if(!H.dna.species.mutant_bodyparts["spines"])
|
||||
H.dna.features["spines"] = spines
|
||||
H.dna.species.mutant_bodyparts["spines"] = spines
|
||||
if (!H.dna.features["spines"])
|
||||
H.dna.features["spines"] = spines
|
||||
H.dna.species.mutant_bodyparts["spines"] = spines
|
||||
else
|
||||
H.dna.species.mutant_bodyparts["spines"] = H.dna.features["spines"]
|
||||
H.update_body()
|
||||
|
||||
/obj/item/organ/tail/lizard/Remove(special = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user