From 542cc172af0f7c923e1a1e16b69eea402e18854a Mon Sep 17 00:00:00 2001 From: EtheoBoxxman Date: Sat, 7 Sep 2024 20:09:11 -0500 Subject: [PATCH] Nocsight Port --- code/__DEFINES/traits.dm | 2 ++ code/datums/gods/patrons/divine_pantheon.dm | 1 + code/modules/mob/living/carbon/carbon.dm | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/code/__DEFINES/traits.dm b/code/__DEFINES/traits.dm index e6d4930ec..9e6fe2a8a 100644 --- a/code/__DEFINES/traits.dm +++ b/code/__DEFINES/traits.dm @@ -44,6 +44,7 @@ //Hearthstone port (Tracking) #define TRAIT_PERFECT_TRACKER "Perfect Tracker" //Will always find any tracks and analyzes them perfectly. +#define TRAIT_NOCSIGHT "Blessing of Noc" // I can see just a bit more clearly in darkness. //Hearthstone/Azure end. // ROGUEspecialTRAITS (description when rmb skills button) @@ -143,6 +144,7 @@ GLOBAL_LIST_INIT(roguetraits, list( TRAIT_WATERBREATHING = span_info("I do not drown in bodies of water."), TRAIT_NUDE_SLEEPER = span_warning("I can't fall asleep unless I'm nude and in bed."), TRAIT_ABYSSOR_SWIM = "I get far less tired when swimming than my peers.", + TRAIT_NOCSIGHT = "Noc blesses my eyes to be unburdened by the night.", //Hearthstone port. )) // trait accessor defines diff --git a/code/datums/gods/patrons/divine_pantheon.dm b/code/datums/gods/patrons/divine_pantheon.dm index 118e444cb..4a01461e3 100644 --- a/code/datums/gods/patrons/divine_pantheon.dm +++ b/code/datums/gods/patrons/divine_pantheon.dm @@ -22,6 +22,7 @@ domain = "God of the Moon, Night, and Knowledge" desc = "The Firstborn of Psydon, twin of Astrata, gifted man divine knowledge." worshippers = "Wizards and Scholars" + mob_traits = list(TRAIT_NOCSIGHT) t1 = /obj/effect/proc_holder/spell/invoked/blindness t2 = /obj/effect/proc_holder/spell/invoked/invisibility confess_lines = list( diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index b1475964b..178f25dcc 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -765,6 +765,10 @@ sight |= (SEE_TURFS|SEE_MOBS|SEE_OBJS) see_in_dark = max(see_in_dark, 8) + if(HAS_TRAIT(src, TRAIT_NOCSIGHT)) + E.lighting_alpha = LIGHTING_PLANE_ALPHA_LESSER_NV_TRAIT + E.see_in_dark = 7 + if(see_override) see_invisible = see_override . = ..()