Allows the robot sheet snatcher to be upgraded (#19149)

* Allosws the robot sheet snatcher to be upgraded

* .

* .

* .

* should be there

* .
This commit is contained in:
Kashargul
2026-02-08 17:45:59 +01:00
committed by GitHub
parent 53a508d192
commit 1ba50d0d5a
7 changed files with 234 additions and 185 deletions
+13 -10
View File
@@ -804,7 +804,7 @@
else if(U.locked)
to_chat(user, span_filter_notice("The upgrade is locked and cannot be used yet!"))
else
if(U.action(src))
if(U.action(user, src))
to_chat(user, span_filter_notice("You apply the upgrade to [src]!"))
user.drop_item()
U.loc = src
@@ -1539,8 +1539,7 @@
return T
else if(!T)
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
return FALSE
if(given_type == /obj/item/borg/upgrade/advanced/jetpack)
return has_upgrade_module(/obj/item/tank/jetpack/carbondioxide)
if(given_type == /obj/item/borg/upgrade/advanced/advhealth)
@@ -1561,24 +1560,28 @@
return T
else if(!T)
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
return FALSE
if(given_type == /obj/item/borg/upgrade/restricted/tasercooler)
var/obj/item/gun/energy/robotic/taser/T = has_upgrade_module(/obj/item/gun/energy/robotic/taser)
if(T && T.recharge_time <= 2)
if(T && T.recharge_time < T::recharge_time)
return T
else if(!T)
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
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
return FALSE
if(given_type == /obj/item/borg/upgrade/restricted/adv_snatcher)
var/obj/item/storage/bag/sheetsnatcher/borg/robot_snatcher = has_upgrade_module(/obj/item/storage/bag/sheetsnatcher/borg)
if(robot_snatcher && robot_snatcher.capacity > robot_snatcher::capacity)
return robot_snatcher
else if(!robot_snatcher)
return "" // Return this to have the analyzer show an error if the module is missing. FALSE / NULL are used for missing upgrades themselves
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, /obj/item/borg/upgrade/restricted/adv_scanner)
supported_upgrades = list(/obj/item/borg/upgrade/restricted/pka, /obj/item/borg/upgrade/restricted/diamonddrill, /obj/item/borg/upgrade/restricted/adv_scanner, /obj/item/borg/upgrade/restricted/adv_snatcher)
pto_type = PTO_CARGO
/obj/item/robot_module/robot/miner/create_equipment(var/mob/living/silicon/robot/robot)