[MIRROR] Blindness-related bug fixes and code improvements (#6291)

* Blindness-related bug fix and code improvements (#59616)

TRAIT_BLIND caused by the hypnochair or by being unconscious (eg. sleeping) will no longer prevent you from being flashed.
Moves all raw text strings used in become_blind and cure_blind calls (as well as nanites in general with ADD_TRAIT) into defines.
Code changes not in changelog due to not being even the slightest bit of player facing.

* Blindness-related bug fixes and code improvements

Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-06-14 08:39:29 +02:00
committed by GitHub
parent 7fff02a21a
commit a9d405cdfb
9 changed files with 27 additions and 22 deletions
+2 -2
View File
@@ -214,14 +214,14 @@
eye.on = TRUE
eye.forceMove(victim)
eye.update_brightness(victim)
victim.become_blind("flashlight_eyes")
victim.become_blind(FLASHLIGHT_EYES)
/obj/item/organ/eyes/robotic/flashlight/Remove(mob/living/carbon/victim, special = 0)
eye.on = FALSE
eye.update_brightness(victim)
eye.forceMove(src)
victim.cure_blind("flashlight_eyes")
victim.cure_blind(FLASHLIGHT_EYES)
..()
// Welding shield implant