[MIRROR] Fixes it so patches do not work on robotic limbs. (#2893)
* Merge pull request #30851 from Firecage/nopatchesonnonorganiclimbspleaseandthankyoumistergoof Fixes it so patches do not work on robotic limbs. * Fixes it so patches do not work on robotic limbs.
This commit is contained in:
committed by
Poojawa
parent
fd64d4fdfa
commit
2ab0c3696e
@@ -13,6 +13,14 @@
|
||||
/obj/item/reagent_containers/pill/patch/afterattack(obj/target, mob/user , proximity)
|
||||
return // thanks inheritance again
|
||||
|
||||
/obj/item/reagent_containers/pill/patch/attack(mob/living/L, mob/user)
|
||||
if(ishuman(L))
|
||||
var/obj/item/bodypart/affecting = L.get_bodypart(check_zone(user.zone_selected))
|
||||
if(affecting.status != BODYPART_ORGANIC)
|
||||
to_chat(user, "<span class='notice'>Medicine won't work on a robotic limb!</span>")
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/reagent_containers/pill/patch/canconsume(mob/eater, mob/user)
|
||||
if(!iscarbon(eater))
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user