This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
yogstation/code/modules/mob/living/carbon/human/species_types/preternis Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 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
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()
You can’t perform that action at this time.
0 commit comments