refactor: Elementize decals. (#27104)

* refactor: Elementize decals.

* fix for cases of managed_overlay being a single item

* Update code/datums/elements/decal_element.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* review comments

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
warriorstar-orion
2024-11-19 18:16:56 +00:00
committed by GitHub
co-authored by Luc
parent 1cda30a19f
commit 16672e4f3d
11 changed files with 197 additions and 87 deletions
@@ -9,4 +9,5 @@
var/turf/T = loc
if(!istype(T)) //you know this will happen somehow
CRASH("Turf decal initialized in an object/nullspace")
T.AddComponent(/datum/component/decal, icon, icon_state, dir, CLEAN_GOD, color, null, null, alpha)
T.AddElement(/datum/element/decal, icon, icon_state, dir, layer, alpha, color, FALSE, null)