From 8e72f5e7c446c1d1d7a6d936280a99903e655edc Mon Sep 17 00:00:00 2001 From: BlueWildrose <57083662+BlueWildrose@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:32:48 -0700 Subject: [PATCH] code for patterns --- .../effects/decals/turfdecal/tilecoloring.dm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/code/game/objects/effects/decals/turfdecal/tilecoloring.dm b/code/game/objects/effects/decals/turfdecal/tilecoloring.dm index 7b5b4d9b4e..ff9b8bc4b8 100644 --- a/code/game/objects/effects/decals/turfdecal/tilecoloring.dm +++ b/code/game/objects/effects/decals/turfdecal/tilecoloring.dm @@ -4,6 +4,25 @@ layer = TURF_PLATING_DECAL_LAYER alpha = 110 +#define LGBT_ALPHA 60 + +/obj/effect/turf_decal/tile/Initialize() + if(SSevents.holidays) + if (SSevents.holidays[APRIL_FOOLS]) + color = "#[random_short_color()]" + else + for(var/H in SSevents.holidays) + if(istype(H,/datum/holiday/lgbt)) + var/datum/holiday/lgbt/L = H + color = L.get_floor_tile_color(src) + + // It looks garish at different alphas, and it's not possible to get a + // consistent color palette without this. + alpha = LGBT_ALPHA + return ..() + +#undef LGBT_ALPHA + /obj/effect/turf_decal/tile/blue name = "blue corner" color = "#52B4E9"