This commit is contained in:
SandPoot
2024-08-24 21:28:55 -03:00
parent 9604090014
commit c07e94be66
218 changed files with 1001 additions and 979 deletions
@@ -66,7 +66,7 @@
to_chat(user, "<span class='warning'>Access denied.</span>")
return
if(controller && !controller.busy && door)
if(controller.stat & NOPOWER)
if(controller.machine_stat & NOPOWER)
return
busy = TRUE
update_icon()
@@ -85,7 +85,7 @@
update_icon()
/obj/machinery/doorButtons/access_button/update_icon_state()
if(stat & NOPOWER)
if(machine_stat & NOPOWER)
icon_state = "access_button_off"
else
if(busy)
@@ -169,7 +169,7 @@
A.unbolt()
. = 1
if(A && A.close())
if(stat & NOPOWER || lostPower || !A || QDELETED(A))
if(machine_stat & NOPOWER || lostPower || !A || QDELETED(A))
goIdle(1)
return
A.bolt()
@@ -214,7 +214,7 @@
A.unbolt()
spawn()
if(A && A.open())
if(stat | (NOPOWER) && !lostPower && A && !QDELETED(A))
if(machine_stat | (NOPOWER) && !lostPower && A && !QDELETED(A))
A.bolt()
goIdle(1)
@@ -226,7 +226,7 @@
updateUsrDialog()
/obj/machinery/doorButtons/airlock_controller/process()
if(stat & NOPOWER)
if(machine_stat & NOPOWER)
return
if(busy == CYCLE_EXTERIOR)
cycleOpen(exteriorAirlock)
@@ -235,7 +235,7 @@
/obj/machinery/doorButtons/airlock_controller/power_change()
..()
if(stat & NOPOWER)
if(machine_stat & NOPOWER)
lostPower = 1
else
if(!busy)
@@ -250,7 +250,7 @@
exteriorAirlock = A
/obj/machinery/doorButtons/airlock_controller/update_icon_state()
if(stat & NOPOWER)
if(machine_stat & NOPOWER)
icon_state = "access_control_off"
return
if(busy || lostPower)