mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Remove hatches from CC airlocks (#3255)
changes: CC airlocks & airlocks spawned on an admin Z now start without drone hatches.
This commit is contained in:
@@ -145,6 +145,7 @@
|
||||
icon = 'icons/obj/doors/Doorele.dmi'
|
||||
opacity = 0
|
||||
hatch_colour = "#606061"
|
||||
hashatch = FALSE
|
||||
|
||||
/obj/machinery/door/airlock/centcom/attackby(obj/item/I, mob/user)
|
||||
if (operating)
|
||||
@@ -209,7 +210,8 @@
|
||||
hatch_colour = "#5b5b5b"
|
||||
var/hatch_colour_bolted = "#695a5a"
|
||||
|
||||
update_icon()//Special hatch colour setting for this one snowflakey door that changes color when bolted
|
||||
/obj/machinery/door/airlock/hatch/update_icon()//Special hatch colour setting for this one snowflakey door that changes color when bolted
|
||||
if (hashatch)
|
||||
if(density && locked && lights && src.arePowerSystemsOn())
|
||||
hatch_image.color = hatch_colour_bolted
|
||||
else
|
||||
@@ -1138,6 +1140,12 @@ About the new airlock wires panel:
|
||||
return ..(M)
|
||||
|
||||
/obj/machinery/door/airlock/Initialize(mapload, obj/structure/door_assembly/assembly = null)
|
||||
var/on_admin_z = FALSE
|
||||
//wires & hatch - this needs to be done up here so the hatch isn't generated by the parent Initialize().
|
||||
if(loc && (z in config.admin_levels))
|
||||
on_admin_z = TRUE
|
||||
hashatch = FALSE
|
||||
|
||||
. = ..()
|
||||
|
||||
//if assembly is given, create the new door from the assembly
|
||||
@@ -1165,9 +1173,8 @@ About the new airlock wires panel:
|
||||
//get the dir from the assembly
|
||||
set_dir(assembly.dir)
|
||||
|
||||
//wires
|
||||
if(loc && (z in config.admin_levels))
|
||||
secured_wires = 1
|
||||
if (on_admin_z)
|
||||
secured_wires = TRUE
|
||||
|
||||
if (secured_wires)
|
||||
wires = new/datum/wires/airlock/secure(src)
|
||||
|
||||
Reference in New Issue
Block a user