Files
Bubberstation/code/game/objects/structures/construction_console/construction_console_aux.dm
SkyratBot 65b8082678 [MIRROR] Harddel Fix Pack #42 + Better Live Reftracking Support [MDB IGNORE] (#10639)
* Harddel Fix Pack #42 + Better Live Reftracking Support

* awooga

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-01-12 21:57:49 +00:00

36 lines
1.8 KiB
Plaintext

///base consturctino console subtype for the mining aux base
/obj/machinery/computer/camera_advanced/base_construction/aux
name = "aux base construction console"
circuit = /obj/item/circuitboard/computer/base_construction/aux
structures = list("fans" = 0, "turrets" = 0)
allowed_area = /area/shuttle/auxiliary_base
/obj/machinery/computer/camera_advanced/base_construction/aux/Initialize(mapload)
internal_rcd = new(src)
return ..()
/obj/machinery/computer/camera_advanced/base_construction/aux/restock_materials()
internal_rcd.matter = internal_rcd.max_matter
structures["fans"] = 4
structures["turrets"] = 4
/obj/machinery/computer/camera_advanced/base_construction/aux/populate_actions_list()
actions += new /datum/action/innate/construction/switch_mode(src) //Action for switching the RCD's build modes
actions += new /datum/action/innate/construction/build(src) //Action for using the RCD
actions += new /datum/action/innate/construction/airlock_type(src) //Action for setting the airlock type
actions += new /datum/action/innate/construction/window_type(src) //Action for setting the window type
actions += new /datum/action/innate/construction/place_structure/fan(src) //Action for spawning fans
actions += new /datum/action/innate/construction/place_structure/turret(src) //Action for spawning turrets
/obj/machinery/computer/camera_advanced/base_construction/aux/find_spawn_spot()
//Aux base controller. Where the eyeobj will spawn.
var/obj/machinery/computer/auxiliary_base/aux_controller
for(var/obj/machinery/computer/auxiliary_base/potential_aux_console in GLOB.machines)
if(istype(get_area(potential_aux_console), allowed_area))
aux_controller = potential_aux_console
break
if(!aux_controller)
say("ERROR: Unable to locate auxiliary base controller!")
return null
return aux_controller