Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 19ed1b2

Browse files
authored
Preternis eyes glow purple when nightvision is active (#21465)
* Update organs.dm * Update organs.dm
1 parent 0975812 commit 19ed1b2

File tree

1 file changed

+12
-0
lines changed
  • yogstation/code/modules/mob/living/carbon/human/species_types/preternis

1 file changed

+12
-0
lines changed

yogstation/code/modules/mob/living/carbon/human/species_types/preternis/organs.dm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
high_threshold_cleared = span_info("Your Preternis eyes have recharged enough to re-enable most functionality.")
1414
low_threshold_cleared = span_info("Your Preternis eyes have almost fully recharged.")
1515
actions_types = list(/datum/action/item_action/organ_action/use)
16+
var/original_eye_color
1617
var/powered = TRUE
1718
var/night_vision = FALSE
1819
// This list is used as the color cutoff for the night vision
@@ -29,9 +30,20 @@
2930
if (night_vision)
3031
color_cutoffs = colour_cutoff_list.Copy()
3132
lighting_cutoff = light_cutoff
33+
if(ishuman(owner))
34+
var/mob/living/carbon/human/H = owner
35+
original_eye_color = H.eye_color
36+
H.eye_color = "#8b60ff"
37+
H.dna.update_ui_block(DNA_EYE_COLOR_BLOCK)
38+
H.update_body()
3239
else
3340
color_cutoffs = null
3441
lighting_cutoff = null
42+
if(ishuman(owner) && original_eye_color)
43+
var/mob/living/carbon/human/H = owner
44+
H.eye_color = original_eye_color
45+
H.dna.update_ui_block(DNA_EYE_COLOR_BLOCK)
46+
H.update_body()
3547
owner.update_sight()
3648

3749
/obj/item/organ/eyes/robotic/preternis/on_life()

0 commit comments

Comments
 (0)