Eyestab Stuff (#11812)

This commit is contained in:
Geeves
2021-05-08 12:03:34 +02:00
committed by GitHub
parent 7be7e6e498
commit cd15d63d05
17 changed files with 79 additions and 51 deletions
@@ -37,7 +37,7 @@
return ..()
if(user.a_intent != I_HELP)
if(target_zone == BP_HEAD || target_zone == BP_EYES)
if((target_zone == BP_HEAD || target_zone == BP_EYES) && !M.eyes_protected(src, FALSE))
if((user.is_clumsy()) && prob(50))
M = user
return eyestab(M,user)
@@ -25,7 +25,7 @@
/obj/item/material/knife/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob, var/target_zone)
if(active == 1)
if(target_zone != BP_EYES && target_zone != BP_HEAD)
if((target_zone != BP_EYES && target_zone != BP_HEAD) || M.eyes_protected(src, FALSE))
return ..()
if((user.is_clumsy()) && prob(50))
M = user