Bleeding edgy refresh (#303)
* not code stuff * other things * global vars, defines, helpers * onclick hud stuff, orphans, world.dm * controllers and datums * game folder * everything not client/mobs in modules * client folder * stage 1 mob stuff * simple animal things * silicons * carbon things * ayylmaos and monkeys * hyoomahn * icons n shit * sprite fixes * compile fixes * some fixes I cherrypicked. * qdel fixes * forgot brain refractors
This commit is contained in:
@@ -19,9 +19,12 @@
|
||||
/obj/machinery/doorButtons/proc/findObjsByTag()
|
||||
return
|
||||
|
||||
/obj/machinery/doorButtons/Initialize()
|
||||
..()
|
||||
findObjsByTag()
|
||||
/obj/machinery/doorButtons/Initialize(mapload)
|
||||
if(mapload)
|
||||
..()
|
||||
return TRUE
|
||||
else
|
||||
findObjsByTag()
|
||||
|
||||
/obj/machinery/doorButtons/emag_act(mob/user)
|
||||
if(!emagged)
|
||||
@@ -29,7 +32,7 @@
|
||||
req_access = list()
|
||||
req_one_access = list()
|
||||
playsound(src.loc, "sparks", 100, 1)
|
||||
user << "<span class='warning'>You short out the access controller.</span>"
|
||||
to_chat(user, "<span class='warning'>You short out the access controller.</span>")
|
||||
|
||||
/obj/machinery/doorButtons/proc/removeMe()
|
||||
|
||||
@@ -59,7 +62,7 @@
|
||||
if(busy)
|
||||
return
|
||||
if(!allowed(user))
|
||||
user << "<span class='warning'>Access denied.</span>"
|
||||
to_chat(user, "<span class='warning'>Access denied.</span>")
|
||||
return
|
||||
if(controller && !controller.busy && door)
|
||||
if(controller.stat & NOPOWER)
|
||||
@@ -128,7 +131,7 @@
|
||||
if(busy)
|
||||
return
|
||||
if(!allowed(usr))
|
||||
usr << "<span class='warning'>Access denied.</span>"
|
||||
to_chat(usr, "<span class='warning'>Access denied.</span>")
|
||||
return
|
||||
switch(href_list["command"])
|
||||
if("close_exterior")
|
||||
@@ -156,22 +159,22 @@
|
||||
closeDoor(A)
|
||||
|
||||
/obj/machinery/doorButtons/airlock_controller/proc/closeDoor(obj/machinery/door/airlock/A)
|
||||
set waitfor = FALSE
|
||||
if(A.density)
|
||||
goIdle()
|
||||
return 0
|
||||
update_icon()
|
||||
A.unbolt()
|
||||
spawn()
|
||||
if(A && A.close())
|
||||
if(stat & NOPOWER || lostPower || !A || QDELETED(A))
|
||||
goIdle(1)
|
||||
return
|
||||
A.bolt()
|
||||
if(busy == CLOSING)
|
||||
goIdle(1)
|
||||
else
|
||||
. = 1
|
||||
if(A && A.close())
|
||||
if(stat & NOPOWER || lostPower || !A || QDELETED(A))
|
||||
goIdle(1)
|
||||
return 1
|
||||
return
|
||||
A.bolt()
|
||||
if(busy == CLOSING)
|
||||
goIdle(1)
|
||||
else
|
||||
goIdle(1)
|
||||
|
||||
/obj/machinery/doorButtons/airlock_controller/proc/cycleClose(obj/machinery/door/airlock/A)
|
||||
if(!A || !exteriorAirlock || !interiorAirlock)
|
||||
|
||||
Reference in New Issue
Block a user