Makes dental implants move through dismemberment
This commit is contained in:
@@ -218,6 +218,14 @@
|
||||
for(var/X in list(owner.glasses, owner.ears, owner.wear_mask, owner.head))
|
||||
var/obj/item/I = X
|
||||
owner.dropItemToGround(I, TRUE)
|
||||
|
||||
//Handle dental implants
|
||||
for(var/datum/action/item_action/hands_free/activate_pill/AP in owner.actions)
|
||||
AP.Remove(owner)
|
||||
var/obj/pill = AP.target
|
||||
if(pill)
|
||||
pill.forceMove(src)
|
||||
|
||||
name = "[owner.real_name]'s head"
|
||||
..()
|
||||
|
||||
@@ -300,6 +308,14 @@
|
||||
C.real_name = real_name
|
||||
real_name = ""
|
||||
name = initial(name)
|
||||
|
||||
//Handle dental implants
|
||||
for(var/obj/item/weapon/reagent_containers/pill/P in src)
|
||||
for(var/datum/action/item_action/hands_free/activate_pill/AP in P.actions)
|
||||
P.forceMove(C)
|
||||
AP.Grant(C)
|
||||
break
|
||||
|
||||
..()
|
||||
|
||||
|
||||
|
||||
@@ -48,7 +48,10 @@
|
||||
brain = null
|
||||
update_icon_dropped()
|
||||
else
|
||||
I.loc = T
|
||||
if(istype(I, /obj/item/weapon/reagent_containers/pill))
|
||||
for(var/datum/action/item_action/hands_free/activate_pill/AP in I.actions)
|
||||
qdel(AP)
|
||||
I.forceMove(T)
|
||||
|
||||
/obj/item/bodypart/head/update_limb(dropping_limb, mob/living/carbon/source)
|
||||
var/mob/living/carbon/C
|
||||
|
||||
Reference in New Issue
Block a user