mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Eyestab Stuff (#11812)
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user