Sleeper and Advanced Scanner consoles now find their machines (#4792)

This commit is contained in:
Anewbe
2018-02-11 17:18:30 -08:00
committed by Atermonera
parent c8f6448f66
commit 7dd4b60a7d
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -23,6 +23,7 @@
if(sleepernew)
sleeper = sleepernew
sleepernew.console = src
set_dir(get_dir(src, sleepernew))
return
return
+5 -3
View File
@@ -227,9 +227,11 @@
// Loop through every direction
for(dir in list(NORTH, EAST, SOUTH, WEST)) // Loop through every direction
bodyscannernew = locate(/obj/machinery/bodyscanner, get_step(src, dir)) // Try to find a scanner in that direction
if(bodyscannernew)
scanner = bodyscannernew
bodyscannernew.console = src
if(bodyscannernew)
scanner = bodyscannernew
bodyscannernew.console = src
set_dir(get_dir(src, bodyscannernew))
return
return
/obj/machinery/body_scanconsole/attack_ai(user as mob)