moves robot scanner upgrade to science (#19114)

* moves robot scanner upgrade to science

* .

* .

* .

* .

* .

* .

* lol

* .

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Kashargul
2026-02-05 13:29:27 +01:00
committed by GitHub
parent b5afc38065
commit aecab2e16c
9 changed files with 84 additions and 42 deletions
@@ -440,27 +440,13 @@
/obj/item/mining_scanner/robot
name = "integrated deep scan device"
description_info = "This scanner can be upgraded for mining points."
var/upgrade_cost = 2500
/obj/item/mining_scanner/robot/attackby(obj/item/O, mob/user)
if(exact)
return
if(!istype(O, /obj/item/card/id/cargo/miner/borg))
return
if(!(user == loc || user == loc.loc))
return
var/obj/item/card/id/cargo/miner/borg/id = O
if(!id.adjust_mining_points(-upgrade_cost))
return
upgrade(user)
description_info = "A basic, integrated ore scanning device which can be upgraded."
/obj/item/mining_scanner/robot/proc/upgrade(mob/user)
desc = "An advanced device used to locate ore deep underground."
description_info = "This scanner has variable range, you can use the Set Scanner Range verb, or alt+click the device. Drills dig in 5x5."
scan_time = 0.5 SECONDS
exact = TRUE
to_chat(user, span_notice("You've upgraded the mining scanner for [upgrade_cost] points."))
/obj/item/mining_scanner/robot/click_alt(mob/user)
change_size(user)
@@ -1570,6 +1570,14 @@
return "" // Return this to have the analyzer show an error if the module is missing. FALSE / NULL are used for missing upgrades themselves
else
return FALSE
if(given_type == /obj/item/borg/upgrade/restricted/adv_scanner)
var/obj/item/mining_scanner/robot/robot_scanner = has_upgrade_module(/obj/item/mining_scanner/robot)
if(robot_scanner && robot_scanner.exact)
return robot_scanner
else if(!robot_scanner)
return "" // Return this to have the analyzer show an error if the module is missing. FALSE / NULL are used for missing upgrades themselves
else
return FALSE
if(given_type == /obj/item/borg/upgrade/restricted/advrped)
return has_upgrade_module(/obj/item/storage/part_replacer/adv)
if(given_type == /obj/item/borg/upgrade/restricted/diamonddrill)
@@ -622,7 +622,7 @@
name = "miner robot module"
channels = list(CHANNEL_SUPPLY = 1)
networks = list(NETWORK_MINE)
supported_upgrades = list(/obj/item/borg/upgrade/restricted/pka, /obj/item/borg/upgrade/restricted/diamonddrill)
supported_upgrades = list(/obj/item/borg/upgrade/restricted/pka, /obj/item/borg/upgrade/restricted/diamonddrill, /obj/item/borg/upgrade/restricted/adv_scanner)
pto_type = PTO_CARGO
/obj/item/robot_module/robot/miner/create_equipment(var/mob/living/silicon/robot/robot)