From f953cb2852f3582d4421557d3fbbfc7a330c68fb Mon Sep 17 00:00:00 2001 From: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com> Date: Mon, 16 Jan 2023 21:04:21 +0000 Subject: [PATCH] Fixing compile issue regarding Maintenance adapted eyes introduced by #72700 (#72761) ## About The Pull Request #72700 made reference to a trait that doesn't actually exist, I've swapped it out with the correct thingy. ## Why It's Good For The Game To be honest its not, this fix allows the code to compile which means we will continue playing this god forsaken game. ## Changelog :cl: fix: Maintenance adapted eyes no-longer prevent the game from compiling /:cl: --- code/modules/surgery/organs/eyes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index 0fddfa22610..c6b3cdaab9f 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -563,7 +563,7 @@ ADD_TRAIT(adapted, TRAIT_UNNATURAL_RED_GLOWY_EYES, ORGAN_TRAIT) /obj/item/organ/internal/eyes/night_vision/maintenance_adapted/on_life(delta_time, times_fired) - if(!HAS_TRAIT(owner, TRAIT_BLIND) && isturf(owner.loc) && owner.has_light_nearby(light_amount=0.5)) //we allow a little more than usual so we can produce light from the adapted eyes + if(!owner.is_blind() && isturf(owner.loc) && owner.has_light_nearby(light_amount=0.5)) //we allow a little more than usual so we can produce light from the adapted eyes to_chat(owner, span_danger("Your eyes! They burn in the light!")) applyOrganDamage(10) //blind quickly playsound(owner, 'sound/machines/grill/grillsizzle.ogg', 50)