mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Eyestab Stuff (#11812)
This commit is contained in:
@@ -544,7 +544,8 @@ BREATH ANALYZER
|
||||
|
||||
if ( ((user.is_clumsy()) || (DUMB in user.mutations)) && prob(20))
|
||||
to_chat(user,"<span class='danger'>Your hand slips from clumsiness!</span>")
|
||||
eyestab(H,user)
|
||||
if(!H.eyes_protected(src, FALSE))
|
||||
eyestab(H,user)
|
||||
to_chat(user,"<span class='danger'>Alert: No breathing detected.</span>")
|
||||
return
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
/obj/item/screwdriver/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob, var/target_zone)
|
||||
if(!istype(M) || user.a_intent == "help")
|
||||
return ..()
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user