Mining Drone Stuff (#10739)

Mining drones now come equipped with an RFD-M, a tethering device, and a stack of purple flags.
    Mining drones can now bump against doors to open them.
    Mining drones now have external airlock access.
    You can now click-drag with the RFD-M to lay down track.
    The charge cost for robots using the RFD-M has been lowered to 200, down from 500.
    Mining drones no longer appear as a unique role on the round join menu.
    Mining drone lights are now much brighter, and illuminate in a circle around the drone.
This commit is contained in:
Geeves
2020-12-13 12:36:15 +02:00
committed by GitHub
parent e3aa12ad5d
commit 2473281555
13 changed files with 72 additions and 18 deletions
+8 -4
View File
@@ -441,13 +441,16 @@ RFD Mining-Class
icon_state = "rfd-m"
item_state = "rfd-m"
/obj/item/rfd/mining/afterattack(atom/A, mob/user, proximity)
/obj/item/rfd/mining/attack_self(mob/user)
return
/obj/item/rfd/mining/afterattack(atom/A, mob/user, proximity, click_parameters, var/report_duplicate = TRUE)
if(!proximity)
return
if(isrobot(user))
var/mob/living/silicon/robot/R = user
if(R.stat || !R.cell || R.cell.charge <= 500)
if(R.stat || !R.cell || R.cell.charge <= 200)
if(last_fail <= world.time - 20) //Spam limiter.
last_fail = world.time
to_chat(user, SPAN_WARNING("You are unable to produce enough charge to use \the [src]!"))
@@ -467,7 +470,8 @@ RFD Mining-Class
return
if(locate(/obj/structure/track) in A)
to_chat(user, SPAN_WARNING("There is already a track on \the [A]!"))
if(report_duplicate)
to_chat(user, SPAN_WARNING("There is already a track on \the [A]!"))
return
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
@@ -480,7 +484,7 @@ RFD Mining-Class
if(isrobot(user))
var/mob/living/silicon/robot/R = user
if(R.cell)
R.cell.use(500)
R.cell.use(200)
else
stored_matter--
to_chat(user, SPAN_NOTICE("The RFD now holds <b>[stored_matter]/30</b> fabrication-units."))
+1 -1
View File
@@ -425,7 +425,7 @@ var/const/NO_EMAG_ACT = -50
assignment = "Minedrone"
/obj/item/card/id/minedrone/New()
access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station)
access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station, access_external_airlocks)
..()
/obj/item/card/id/centcom
+1 -3
View File
@@ -35,10 +35,8 @@ var/list/global/all_tethers = list()
/obj/item/tethering_device/process()
var/turf/our_turf = get_turf(src)
for(var/tether in all_tethers)
for(var/tether in all_tethers - src)
var/obj/item/tethering_device/TD = tether
if(TD == src)
continue
if(!TD.active)
continue
var/turf/target_turf = get_turf(TD)