From 78808ad2b34b8416a36a514a9d899cd7dca1356c Mon Sep 17 00:00:00 2001 From: Archie Date: Mon, 24 May 2021 02:53:43 -0300 Subject: [PATCH] Stargazes wll also detect cloud turfs for their calculations --- code/__DEFINES/is_helpers.dm | 2 ++ .../modules/antagonists/clockcult/clock_structures/stargazer.dm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/__DEFINES/is_helpers.dm b/code/__DEFINES/is_helpers.dm index 6056129a..7a09f40c 100644 --- a/code/__DEFINES/is_helpers.dm +++ b/code/__DEFINES/is_helpers.dm @@ -35,6 +35,8 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list( #define isspaceturf(A) (istype(A, /turf/open/space)) +#define iscloudturf(A) (istype(A, /turf/open/chasm/cloud)) + #define isfloorturf(A) (istype(A, /turf/open/floor)) #define isclosedturf(A) (istype(A, /turf/closed)) diff --git a/code/modules/antagonists/clockcult/clock_structures/stargazer.dm b/code/modules/antagonists/clockcult/clock_structures/stargazer.dm index fbaee799..214637cf 100644 --- a/code/modules/antagonists/clockcult/clock_structures/stargazer.dm +++ b/code/modules/antagonists/clockcult/clock_structures/stargazer.dm @@ -47,7 +47,7 @@ has_starlight = FALSE else for(var/turf/T in view(3, src)) - if(isspaceturf(T)) + if(isspaceturf(T) || iscloudturf(T)) has_starlight = TRUE break if(has_starlight && anchored)