mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Closing Eyes (#22957)
* You can now close your eyes. This blinds you, but gives you protection against flash effects. * Welding while blind takes three times as long and has an 80% chance to fail, with a risk of burning yourself. <img width="825" height="571" alt="image" src="https://github.com/user-attachments/assets/14871444-e1c6-4d0f-8f56-d07e56055db0" /> <img width="875" height="633" alt="image" src="https://github.com/user-attachments/assets/134379bb-474c-4c5d-b069-2559d9390305" /> AI usage disclosure: The code for this was created in-part using GPT 5.6 Sol.
This commit is contained in:
@@ -12,6 +12,26 @@
|
||||
toxin_type = CE_OCULOTOXIC
|
||||
var/list/eye_colour = list(0,0,0)
|
||||
var/singular_name = "eye"
|
||||
/// Whether the owner has voluntarily closed this organ.
|
||||
var/eyes_closed = FALSE
|
||||
|
||||
/obj/item/organ/internal/eyes/verb/toggle_eyes()
|
||||
set name = "Open/Close Eyes"
|
||||
set desc = "Close your eyes to block your vision and protect them from bright flashes."
|
||||
set category = "IC"
|
||||
set src in usr
|
||||
|
||||
if(!owner || usr != owner || owner.incapacitated())
|
||||
return
|
||||
|
||||
eyes_closed = !eyes_closed
|
||||
if(eyes_closed)
|
||||
owner.custom_emote(VISIBLE_MESSAGE, "closes their eyes.")
|
||||
else
|
||||
owner.custom_emote(VISIBLE_MESSAGE, "opens their eyes.")
|
||||
|
||||
owner.update_body()
|
||||
owner.handle_vision()
|
||||
|
||||
/obj/item/organ/internal/eyes/proc/update_colour()
|
||||
if(!owner)
|
||||
|
||||
Reference in New Issue
Block a user