mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 06:37:10 +01:00
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:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user