More glowing stuff (#50109)

* vending machine framework

* wip

* all vending masks

* more glowing stuff

* dynamic unsetting of luminosity

* use define
This commit is contained in:
Rob Bailey
2020-03-22 23:38:50 -03:00
committed by GitHub
parent 3cc8dc0e05
commit 2f127f8b95
41 changed files with 117 additions and 11 deletions
@@ -72,6 +72,8 @@
/obj/structure/closet/proc/closet_update_overlays(list/new_overlays)
. = new_overlays
SSvis_overlays.remove_vis_overlay(src, managed_vis_overlays)
luminosity = 0
if(!opened)
if(icon_door)
. += "[icon_door]_door"
@@ -80,6 +82,9 @@
if(welded)
. += icon_welded
if(secure && !broken)
//Overlay is similar enough for both that we can use the same mask for both
luminosity = 1
SSvis_overlays.add_vis_overlay(src, icon, "locked", EMISSIVE_LAYER, EMISSIVE_PLANE, dir, alpha)
if(locked)
. += "locked"
else