mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Fixes augmentation not removing old limbs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user