Underfloor refactor + Mild codebase cleanup (#6518)

refactors deprecated and old level / hide system to a more orchestrated
and slightly more efficient one
This commit is contained in:
silicons
2024-06-20 17:09:48 -06:00
committed by GitHub
parent 624552b357
commit 83bc9a7ebf
101 changed files with 641 additions and 1384 deletions
+2 -16
View File
@@ -10,25 +10,11 @@
active_power_usage = 500 // Previously 2000
anchored = TRUE
density = FALSE
level = 1
hides_underfloor = OBJ_UNDERFLOOR_UNLESS_CREATED_ONTOP
hides_underfloor_update_icon = TRUE
var/alarm = FALSE
var/enabled = TRUE
/obj/machinery/shield_diffuser/Initialize(mapload)
. = ..()
var/turf/T = get_turf(src)
hide(!T.is_plating())
//If underfloor, hide the cable^H^H diffuser
/obj/machinery/shield_diffuser/hide(var/i)
if(istype(loc, /turf))
invisibility = i ? 101 : 0
update_icon()
/obj/machinery/shield_diffuser/hides_under_flooring()
return TRUE
/obj/machinery/shield_diffuser/process(delta_time)
if(alarm)
alarm--