mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user