Lunchboxes (#1020)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

This PR adds lunchboxes, available in your loadout under "other". It can
only hold food and drinks, and it's limited to 4 slots so you can't
stuff it with 12 big bite burgers and never visit the kitchen again.

There's seve- ...uh, _**six**_ options to pick from, those being -
- Nanotrasen
- Medical
- Safety Moth
- Hearts
- Corgi
- Rabbit
- the other one

## Why It's Good For The Game

It adds cute RP stuff, you can pack lunches for your friends, you can
take your food to go if you're in a hurry - but not so much food that
you don't need to go to the kitchen anymore.

## Proof Of Testing


![lunchbox](https://github.com/Bubberstation/Bubberstation/assets/58074918/289866b7-dab4-4618-b218-dcfe93016a5b)

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

🆑
add: adds lunchboxes that hold food and drinks to the loadout
image: added lunchbox sprites
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

<!-- By opening a pull request. You have read and understood the
repository rules located on the main README.md on this project. -->

---------

Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
This commit is contained in:
Sylphet
2024-03-02 10:44:55 +01:00
committed by GitHub
co-authored by Waterpig
parent 6f449ea981
commit c2bae17f16
6 changed files with 95 additions and 0 deletions
@@ -49,6 +49,38 @@ GLOBAL_LIST_INIT(loadout_pocket_items, generate_loadout_items(/datum/loadout_ite
if(!equipper.equip_to_slot_if_possible(wallet, slot = ITEM_SLOT_BACKPACK, initial = TRUE))
wallet.forceMove(equipper.drop_location())
/*
* LUNCHBOX
*/
/datum/loadout_item/pocket_items/lunchbox_nanotrasen
name = "Nanotrasen Lunchbox"
item_path = /obj/item/storage/lunchbox/nanotrasen
/datum/loadout_item/pocket_items/lunchbox_medical
name = "Medical Lunchbox"
item_path = /obj/item/storage/lunchbox/medical
/datum/loadout_item/pocket_items/lunchbox_bunny
name = "Bunny Lunchbox"
item_path = /obj/item/storage/lunchbox/bunny
/datum/loadout_item/pocket_items/lunchbox_corgi
name = "Corgi Lunchbox"
item_path = /obj/item/storage/lunchbox/corgi
/datum/loadout_item/pocket_items/lunchbox_heart
name = "Heart Lunchbox"
item_path = /obj/item/storage/lunchbox/heart
/datum/loadout_item/pocket_items/lunchbox_safetymoth
name = "Safety Moth Lunchbox"
item_path = /obj/item/storage/lunchbox/safetymoth
/datum/loadout_item/pocket_items/lunchbox_amongus
name = "Suspicious Red Lunchbox"
item_path = /obj/item/storage/lunchbox/amongus
/*
* GUM
*/
@@ -0,0 +1,62 @@
/obj/item/storage/lunchbox
name = "lunchbox"
icon = 'modular_zubbers/modules/lunchbox/icons/lunchbox.dmi'
icon_state = "lunchbox"
desc = "It's fucked, yell at coders."
inhand_icon_state = "lunchbox"
lefthand_file = 'modular_zubbers/modules/lunchbox/icons/lunchbox_lefthand.dmi'
righthand_file = 'modular_zubbers/modules/lunchbox/icons/lunchbox_righthand.dmi'
drop_sound = 'sound/items/handling/cardboardbox_drop.ogg'
pickup_sound = 'sound/items/handling/cardboardbox_pickup.ogg'
throw_speed = 3
throw_range = 7
/obj/item/storage/lunchbox/Initialize(mapload)
. = ..()
atom_storage.max_slots = 4
atom_storage.set_holdable(list(
/obj/item/food,
/obj/item/reagent_containers/cup,
))
/obj/item/storage/lunchbox/nanotrasen
name = "nanotrasen lunchbox"
icon_state = "lunchbox_nanotrasen"
inhand_icon_state = "lunchbox_nanotrasen"
desc = "A refined blue lunchbox to show your support for everyone's favourite megacorporation."
/obj/item/storage/lunchbox/medical
name = "medical lunchbox"
icon_state = "lunchbox_medical"
inhand_icon_state = "lunchbox_medical"
desc = "A green lunchbox, designed for hungry doctors."
/obj/item/storage/lunchbox/bunny
name = "rabbit lunchbox"
icon_state = "lunchbox_bunny"
inhand_icon_state = "lunchbox"
desc = "An adorable lunchbox with a rabbit printed on it."
/obj/item/storage/lunchbox/corgi
name = "corgi lunchbox"
icon_state = "lunchbox_corgi"
inhand_icon_state = "lunchbox"
desc = "An adorable lunchbox with a corgi printed on it."
/obj/item/storage/lunchbox/heart
name = "heart lunchbox"
icon_state = "lunchbox_heart"
inhand_icon_state = "lunchbox_heart"
desc = "A pink lunchbox with a heart pattern printed on it."
/obj/item/storage/lunchbox/safetymoth
name = "safety moth lunchbox"
icon_state = "lunchbox_safetymoth"
inhand_icon_state = "lunchbox_safetymoth"
desc = "An orange, lead lined lunchbox with everyone's favourite moth printed on it."
/obj/item/storage/lunchbox/amongus
name = "suspicious lunchbox"
icon_state = "lunchbox_suspicious"
inhand_icon_state = "lunchbox_suspicious"
desc = "A plain red lunchbox... right?"
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

+1
View File
@@ -8585,6 +8585,7 @@
#include "modular_zubbers\modules\jobs\code\trims\jobs.dm"
#include "modular_zubbers\modules\loadouts\loadout_items\loadout_datum_pocket.dm"
#include "modular_zubbers\modules\loadouts\overrides\loadout_items\loadout_datum.dm"
#include "modular_zubbers\modules\lunchbox\code\lunchbox.dm"
#include "modular_zubbers\modules\mapping\modules\ss13_construct\areas.dm"
#include "modular_zubbers\modules\mod_suits\modules.dm"
#include "modular_zubbers\modules\modular_items\code\cake_light.dm"