Made the decal component an element. (#12388)

* Made the decal component an element.

* Is this really worth it?

* Oh.
This commit is contained in:
Ghom
2020-05-30 23:06:53 +02:00
committed by GitHub
parent f572fe4607
commit 25dbed5b0b
6 changed files with 78 additions and 93 deletions
+1 -1
View File
@@ -157,7 +157,7 @@
to_chat(user, "<span class='notice'>You need to get closer!</span>")
return
if(use_paint(user) && isturf(F))
F.AddComponent(/datum/component/decal, 'icons/turf/decals.dmi', stored_decal_total, stored_dir, CLEAN_STRONG, color, null, null, alpha)
F.AddElement(/datum/element/decal, 'icons/turf/decals.dmi', stored_decal_total, turn(stored_dir, -dir2angle(F.dir)), CLEAN_STRONG, color, null, null, alpha)
/obj/item/airlock_painter/decal/attack_self(mob/user)
if((ink) && (ink.charges >= 1))