mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
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 🆑 fix: the station may appear dusty again! /🆑 --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
co-authored by
MrMelbert
LemonInTheDark
parent
a5eb8e47c5
commit
9017479787
@@ -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)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user