Allows Cargo borgs to carry letters (#19271)

* The borgs work as mailboxes now

* Actually they can have upgrades, as a treat

* Missing
This commit is contained in:
Guti
2026-03-09 23:59:51 +01:00
committed by GitHub
parent f999512dbf
commit 71e35e3240
6 changed files with 60 additions and 1 deletions
@@ -512,6 +512,36 @@
to_chat(R, span_notice("Sheet snatcher upgraded!"))
return TRUE
/obj/item/borg/upgrade/restricted/adv_mailbag
name = "robotic mailbag capacity module"
desc = "Used to expand the mailbag storage."
icon_state = "cyborg_upgrade3"
item_state = "cyborg_upgrade"
module_flags = BORG_MODULE_MINER
require_module = TRUE
/obj/item/borg/upgrade/restricted/adv_mailbag/action(mob/user, mob/living/silicon/robot/R)
if(..()) return FALSE
if(!R.supports_upgrade(type))
generic_error(user, R, type)
return FALSE
var/obj/target_module = R.has_upgrade_module(/obj/item/storage/bag/mail/borg)
if(!target_module)
to_chat(user, span_warning("This robot has had its letter compartment removed!"))
return FALSE
if(R.has_restricted_upgrade(type))
to_chat(R, span_warning("Letter compartment was already upgraded!"))
to_chat(user, span_warning("There's no room for another letter compartment upgrade!"))
return FALSE
var/obj/item/storage/bag/mail/borg/mailbag = target_module
mailbag.upgrade()
to_chat(R, span_notice("Letter compartment upgraded!"))
return TRUE
/* ###############################################
# Unsorted section. All cargo modules go here.#
###############################################*/
+9
View File
@@ -378,6 +378,15 @@
/obj/item/pen
)
/obj/item/storage/bag/mail/borg
name = "letter compartment"
desc = "A compartment specifically made for small postage."
/obj/item/storage/bag/mail/borg/proc/upgrade()
name += " of holding"
storage_slots = 45
max_storage_space = 75
// Mail Scanner
/obj/item/mail_scanner
name = "mail scanner"