Sensors and Helm consoles are now buildable.

This commit is contained in:
mikomyazaki
2022-02-24 12:58:06 +00:00
parent e6e4b150ac
commit d5ce779ef8
5 changed files with 31 additions and 2 deletions
@@ -13,6 +13,7 @@
var/accellimit = 0.001 //manual limiter for acceleration
var/list/linked_helmets = list()
circuit = /obj/item/circuitboard/ship/helm
/obj/machinery/computer/ship/helm/Initialize()
. = ..()
@@ -4,6 +4,7 @@
light_color = "#77fff8"
extra_view = 4
var/obj/machinery/shipsensors/sensors
circuit = /obj/item/circuitboard/ship/sensors
/obj/machinery/computer/ship/sensors/attempt_hook_up(obj/effect/overmap/visitable/ship/sector)
. = ..()
@@ -222,4 +223,4 @@
// For small shuttles
/obj/machinery/shipsensors/weak
heat_reduction = 0.35 // Can sustain range 1
desc = "Miniturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum BS elements."
desc = "Miniturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum BS elements."
@@ -93,3 +93,10 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
if(.)
LAZYSET(linked.consoles, src, TRUE)
/obj/machinery/computer/ship/Initialize()
. = ..()
if(current_map.use_overmap && !linked)
var/my_sector = map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable/ship))
attempt_hook_up(my_sector)