From 22896c4c57576bb952908dde86d0a587342f9ac2 Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Sat, 22 Aug 2026 12:17:44 -0400 Subject: [PATCH] Lasereyes Adjustment (#19665) * Lasereyes Adjustment * flash --- code/_onclick/click.dm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index ec5ce7097f6..c33e5d39f11 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -318,12 +318,22 @@ LE.fire() /mob/living/carbon/human/LaserEyes(atom/A, params) - if(nutrition>0) - ..() - nutrition = max(nutrition - rand(1,5),0) - handle_regular_hud_updates() - else + if(!nutrition) to_chat(src, span_warning("You're out of energy! You need food!")) + return + if(glasses && glasses.body_parts_covered & EYES) + var/obj/item/clothing/our_glasses = glasses + if(istype(our_glasses) && our_glasses.flash_protection > FLASH_PROTECTION_NONE) + to_chat(src, span_warning("Your glasses block your laser vision!")) + return + if(head && head.body_parts_covered & FACE) + var/obj/item/clothing/our_head = head + if(istype(our_head) && our_head.flash_protection > FLASH_PROTECTION_NONE) + to_chat(src, span_warning("Your helmet blocks your laser vision!")) + return + ..() + nutrition = max(nutrition - 25,0) + handle_regular_hud_updates() // Simple helper to face what you clicked on, in case it should be needed in more than one place /mob/proc/face_atom(atom/atom_to_face)