mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-24 04:26:38 +01:00
Merge pull request #488 from Sharkmare/patch-21
Mining Drone control access override
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/obj/machinery/computer/drone_control
|
||||
name = "Maintenance Drone Control"
|
||||
name = "Drone Control"
|
||||
desc = "Used to monitor the station's drone population and the assembler that services them."
|
||||
icon_keyboard = "power_key"
|
||||
icon_screen = "generic" //VOREStation Edit
|
||||
@@ -11,6 +11,14 @@
|
||||
//Used to enable or disable drone fabrication.
|
||||
var/obj/machinery/drone_fabricator/dronefab
|
||||
|
||||
|
||||
/obj/machinery/computer/drone_control/New()
|
||||
..()
|
||||
for(var/obj/machinery/drone_fabricator/fab in oview(3,src))
|
||||
dronefab = fab
|
||||
if(istype(dronefab, /obj/machinery/drone_fabricator/mining))
|
||||
req_access = list(access_mining)
|
||||
|
||||
/obj/machinery/computer/drone_control/attack_ai(var/mob/user as mob)
|
||||
return src.attack_hand(user)
|
||||
|
||||
@@ -118,4 +126,4 @@
|
||||
dronefab.produce_drones = !dronefab.produce_drones
|
||||
usr << "<span class='notice'>You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator.</span>"
|
||||
|
||||
src.updateUsrDialog()
|
||||
src.updateUsrDialog()
|
||||
|
||||
Reference in New Issue
Block a user