From 9017479787fea47258c6bf40c890d455eb9ff995 Mon Sep 17 00:00:00 2001 From: Twaticus <46540570+Twaticus@users.noreply.github.com> Date: Wed, 12 Mar 2025 21:15:03 -0400 Subject: [PATCH] Fixes dust effect overlay (#89983) ## About The Pull Request code credit to @MrMelbert many years ago someone broke the dust decal from appearing on 99% of our tiles this fixes the issue :) ## Why It's Good For The Game unknowingly unusable decal is weird ## Changelog :cl: fix: the station may appear dusty again! /:cl: --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> --- code/game/objects/effects/decals/cleanable/misc.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm index 65d22c8d856..916192e74a4 100644 --- a/code/game/objects/effects/decals/cleanable/misc.dm +++ b/code/game/objects/effects/decals/cleanable/misc.dm @@ -72,6 +72,8 @@ canSmoothWith = SMOOTH_GROUP_CLEANABLE_DIRT + SMOOTH_GROUP_WALLS mouse_opacity = MOUSE_OPACITY_TRANSPARENT beauty = -75 + /// Set to FALSE if your dirt has no smoothing sprites + var/is_tileable = TRUE /obj/effect/decal/cleanable/dirt/Initialize(mapload) . = ..() @@ -80,7 +82,7 @@ if(!isnull(broken_flooring)) return var/turf/T = get_turf(src) - if(T.tiled_dirt) + if(T.tiled_dirt && is_tileable) smoothing_flags = SMOOTH_BITMASK QUEUE_SMOOTH(src) if(smoothing_flags & USES_SMOOTHING) @@ -96,6 +98,7 @@ desc = "A thin layer of dust coating the floor." icon_state = "dust" base_icon_state = "dust" + is_tileable = FALSE /obj/effect/decal/cleanable/dirt/dust/Initialize(mapload) . = ..()