[MIRROR] Service borg extra apparatus upgrade [MDB IGNORE] (#23616)

* Service borg extra apparatus upgrade (#78077)

## About The Pull Request

Adds an upgrade similar to the extra beaker storage for mediborgs to
service borgs, which adds an additional drink apparatus (that also
doesn't do the weird drink refilling thing)
## Why It's Good For The Game

This can allow the service borg to carry a wider variety of drinks, also
considering they specialize in chemistry, they should get an apparatus
upgrade like mediborgs.

## Changelog
🆑
add: Added the service borg "drink apparatus" upgrade, which adds an
extra drinking apparatus to the borg, up to a maximum of 5 extra.
🆑

* Service borg extra apparatus upgrade

---------

Co-authored-by: Teagarden <124026007+Vincent983@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-09-10 13:37:29 -04:00
committed by GitHub
co-authored by Teagarden
parent f668c6075b
commit 85b005636e
4 changed files with 54 additions and 0 deletions
@@ -190,6 +190,21 @@
handle_reflling(arrived)
return ..()
///Used by the service borg drink apparatus upgrade, holds drink-related items
/obj/item/borg/apparatus/beaker/drink
name = "secondary beverage storage apparatus"
desc = "A special apparatus for carrying drinks and condiment packets without spilling their contents. Will NOT resynthesize drinks unlike your standard apparatus."
icon_state = "borg_beaker_apparatus"
storable = list(
/obj/item/reagent_containers/cup/glass,
/obj/item/reagent_containers/condiment,
/obj/item/reagent_containers/cup/coffeepot,
/obj/item/reagent_containers/cup/bottle/syrup_bottle,
)
/obj/item/borg/apparatus/beaker/service2/add_glass()
stored = new /obj/item/reagent_containers/cup/glass/drinkingglass(src)
/// allows medical cyborgs to manipulate organs without hands
/obj/item/borg/apparatus/organ_storage
name = "organ storage bag"
@@ -731,6 +731,33 @@
if (E)
R.model.remove_module(E, TRUE)
/obj/item/borg/upgrade/drink_app
name = "glass storage apparatus"
desc = "A supplementary drinking glass storage apparatus for service cyborgs."
icon_state = "cyborg_upgrade3"
require_model = TRUE
model_type = list(/obj/item/robot_model/service)
model_flags = BORG_MODEL_SERVICE
/obj/item/borg/upgrade/drink_app/action(mob/living/silicon/robot/R, user = usr)
. = ..()
if(.)
var/obj/item/borg/apparatus/beaker/drink/E = locate() in R.model.modules
if(E)
to_chat(user, span_warning("This unit has no room for additional drink storage!"))
return FALSE
E = new(R.model)
R.model.basic_modules += E
R.model.add_module(E, FALSE, TRUE)
/obj/item/borg/upgrade/drink_app/deactivate(mob/living/silicon/robot/R, user = usr)
. = ..()
if (.)
var/obj/item/borg/apparatus/beaker/drink/E = locate() in R.model.modules
if (E)
R.model.remove_module(E, TRUE)
/obj/item/borg/upgrade/broomer
name = "experimental push broom"
desc = "An experimental push broom used for efficiently pushing refuse."