Modular computer fixes

- Tesla link is now correctly enabled when being installed into a console. Fixes #11974
- Tesla link now correctly stops using power when the computer shuts down.
- Configurator program now uses much better method to obtain list of components. This method takes into account possible hardware additions in the future.
This commit is contained in:
Atlantis
2016-01-12 23:57:36 +01:00
parent d04bef2991
commit 75e40d7748
2 changed files with 11 additions and 30 deletions

View File

@@ -80,6 +80,7 @@
return
..()
machinery_computer.update_icon()
machinery_computer.use_power = 0
return
// Tesla links only work on machinery types, so we'll override the default try_install_component() proc
@@ -94,6 +95,7 @@
// Consoles don't usually have internal power source, so we can't disable tesla link in them.
if(istype(machinery_computer, /obj/machinery/modular_computer/console))
L.critical = 1
L.enabled = 1
found = 1
..(user, H, found)