mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
[MIRROR] Allows Cargo borgs to carry letters (#12507)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Guti
Kashargul
parent
8f74a1852e
commit
d718f47730
@@ -516,6 +516,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.#
|
||||
###############################################*/
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user