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
@@ -299,3 +299,12 @@
if(aug && !aug.is_broken())
return TRUE
return FALSE
/mob/living/carbon/human/eyes_protected(var/obj/stab_item, var/stabbed = FALSE) // if stabbed is set to true if we're being stabbed and not just checking
. = ..()
if(.)
return
for(var/obj/item/protection in list(head, wear_mask, glasses))
if(protection.protects_eyestab(stab_item, stabbed))
return TRUE
return FALSE
+5
View File
@@ -809,6 +809,11 @@ default behaviour is:
/mob/living/proc/has_eyes()
return 1
/mob/living/proc/eyes_protected(var/obj/stab_item, var/stabbed = FALSE) // if stabbed is set to true if we're being stabbed and not just checking
if(!has_eyes())
return TRUE
return FALSE
/mob/living/proc/slip(var/slipped_on,stun_duration=8)
return 0