mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user