From 2e6dc9dd6224e1a1834e6a786847a254733dbfca Mon Sep 17 00:00:00 2001 From: skull132 Date: Wed, 25 Jan 2017 16:22:50 +0200 Subject: [PATCH] Fixes mobs having nightvision constantly (#1642) Because operator order is important or some shit. --- code/modules/mob/living/carbon/human/species/species.dm | 2 +- html/changelogs/skull132-nightvision.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/skull132-nightvision.yml diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index 76b8c6ad932..8fa5dddad77 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -376,7 +376,7 @@ return 1 if(!H.druggy) - H.see_in_dark = (H.sight == SEE_TURFS|SEE_MOBS|SEE_OBJS) ? 8 : min(darksight + H.equipment_darkness_modifier, 8) + H.see_in_dark = (H.sight == (SEE_TURFS|SEE_MOBS|SEE_OBJS)) ? 8 : min(darksight + H.equipment_darkness_modifier, 8) if(H.seer) var/obj/effect/rune/R = locate() in H.loc if(R && R.word1 == cultwords["see"] && R.word2 == cultwords["hell"] && R.word3 == cultwords["join"]) diff --git a/html/changelogs/skull132-nightvision.yml b/html/changelogs/skull132-nightvision.yml new file mode 100644 index 00000000000..d6d3bb7d73a --- /dev/null +++ b/html/changelogs/skull132-nightvision.yml @@ -0,0 +1,6 @@ +author: Skull132 + +delete-after: True + +changes: + - bugfix: "Mesons and thermals no longer function as proper night-vision."