Fixes augmentation not removing old limbs

This commit is contained in:
XDTM
2018-08-17 09:13:24 +02:00
parent 4ab8a04812
commit 17ae5f4a47
@@ -243,16 +243,11 @@
name = "[owner.real_name]'s head"
..()
//Attach a limb to a human and drop any existing limb of that type.
/obj/item/bodypart/proc/replace_limb(mob/living/carbon/C, special)
if(!istype(C))
return
var/obj/item/bodypart/O = locate(src.type) in C.bodyparts
var/obj/item/bodypart/O = get_bodypart(body_zone)
if(O)
O.drop_limb(1)
attach_limb(C, special)
@@ -260,7 +255,7 @@
/obj/item/bodypart/head/replace_limb(mob/living/carbon/C, special)
if(!istype(C))
return
var/obj/item/bodypart/head/O = locate(src.type) in C.bodyparts
var/obj/item/bodypart/head/O = get_bodypart(body_zone)
if(O)
if(!special)
return