Skip to content

Commit

Permalink
Newfood Atomization: Canned (Beans included) (BeeStation#10263)
Browse files Browse the repository at this point in the history
* packaged

* oops

* updatepaths
  • Loading branch information
Tsar-Salat authored Dec 7, 2023
1 parent 17dc82b commit 883c6ad
Show file tree
Hide file tree
Showing 15 changed files with 118 additions and 109 deletions.
2 changes: 1 addition & 1 deletion _maps/RandomRooms/5x3/sk_rdm061_pubbyclutter4.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions _maps/RandomRuins/SpaceRuins/deepstorage.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions _maps/map_files/FlandStation/FlandStation.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _maps/shuttles/emergency/emergency_pubby.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions _maps/shuttles/whiteship/whiteship_meta.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions beestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@
#include "code\game\objects\items\food\donuts.dm"
#include "code\game\objects\items\food\dough.dm"
#include "code\game\objects\items\food\mexican.dm"
#include "code\game\objects\items\food\packaged.dm"
#include "code\game\objects\items\food\pancakes.dm"
#include "code\game\objects\items\food\pastries.dm"
#include "code\game\objects\items\food\pie.dm"
Expand Down
2 changes: 1 addition & 1 deletion code/_globalvars/lists/maintenance_loot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ GLOBAL_LIST_INIT(maintenance_loot, list(
/obj/item/radio/headset = 1,
/obj/item/radio/off = 2,
/obj/item/reagent_containers/food/drinks/bottle/homemaderum = 1,
/obj/item/reagent_containers/food/snacks/canned/peaches/maint = 1,
/obj/item/food/canned/peaches/maint = 1,
/obj/item/reagent_containers/food/snacks/grown/citrus/orange = 1,
/obj/item/reagent_containers/food/snacks/grown/flower/poppy = 10,
/obj/item/reagent_containers/glass/rag = 3,
Expand Down
74 changes: 74 additions & 0 deletions code/game/objects/items/food/packaged.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// Pre-packaged meals, canned, wrapped, and vended

// Cans
/obj/item/food/canned
name = "Canned Air"
desc = "If you ever wondered where air came from..."
food_reagents = list(
/datum/reagent/oxygen = 6,
/datum/reagent/nitrogen = 24,
)
icon = 'icons/obj/food/canned.dmi'
icon_state = "peachcan"
food_flags = FOOD_IN_CONTAINER
w_class = WEIGHT_CLASS_NORMAL
max_volume = 30

/obj/item/food/canned/proc/open_can(mob/user)
to_chat(user, "You pull back the tab of \the [src].")
playsound(user.loc, 'sound/items/foodcanopen.ogg', 50)
ENABLE_BITFIELD(reagents.flags, OPENCONTAINER)

/obj/item/food/canned/attack_self(mob/user)
if(!is_drainable())
open_can(user)
icon_state = "[icon_state]_open"
return ..()

/obj/item/food/canned/attack(mob/living/M, mob/user, def_zone)
if (!is_drainable())
to_chat(user, "<span class='warning'>[src]'s lid hasn't been opened!</span>")
return 0
return ..()

/obj/item/food/canned/beans
name = "tin of beans"
desc = "Musical fruit in a slightly less musical container."
icon_state = "beans"
trash_type = /obj/item/trash/can/food/beans
food_reagents = list(
/datum/reagent/consumable/nutriment = 4,
/datum/reagent/consumable/nutriment/protein = 9,
/datum/reagent/consumable/ketchup = 4
)
tastes = list("beans" = 1)
foodtypes = VEGETABLES

/obj/item/food/canned/peaches
name = "canned peaches"
desc = "Just a nice can of ripe peaches swimming in their own juices."
icon_state = "peachcan"
trash_type = /obj/item/trash/can/food/peaches
food_reagents = list(
/datum/reagent/consumable/peachjuice = 20,
/datum/reagent/consumable/sugar = 8,
/datum/reagent/consumable/nutriment = 2,
)
tastes = list("peaches" = 7, "tin" = 1)
foodtypes = FRUIT | SUGAR

/obj/item/food/canned/peaches/maint
name = "Maintenance Peaches"
desc = "I have a mouth and I must eat."
icon_state = "peachcanmaint"
trash_type = /obj/item/trash/can/food/peaches/maint
tastes = list("peaches" = 1, "tin" = 7)

/obj/item/food/canned/beefbroth
name = "canned beef broth"
desc = "Why does this exist?"
icon_state = "beefcan"
trash_type = /obj/item/trash/can/food/beefbroth
food_reagents = list(/datum/reagent/consumable/beefbroth = 50)
tastes = list("disgust" = 7, "tin" = 1)
foodtypes = MEAT | GROSS | JUNKFOOD
20 changes: 10 additions & 10 deletions code/modules/cargo/packs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2523,16 +2523,16 @@
max_supply = 3
contraband = TRUE
crate_type = /obj/structure/closet/crate
contains = list(/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth,
/obj/item/reagent_containers/food/snacks/canned/beefbroth
contains = list(/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth,
/obj/item/food/canned/beefbroth
)
crate_name = "Beef Broth Care"
//////////////////////////////////////////////////////////////////////////////
Expand Down
67 changes: 0 additions & 67 deletions code/modules/food_and_drinks/food/snacks_other.dm
Original file line number Diff line number Diff line change
Expand Up @@ -575,63 +575,6 @@
tastes = list("chocolate" = 1)
foodtype = JUNKFOOD | SUGAR

/obj/item/reagent_containers/food/snacks/canned
name = "Canned Air"
desc = "If you ever wondered where air came from..."
list_reagents = list(/datum/reagent/oxygen = 6, /datum/reagent/nitrogen = 24)
icon_state = "peachcan"
in_container = TRUE
reagent_flags = NONE
spillable = FALSE
w_class = WEIGHT_CLASS_NORMAL
volume = 30

/obj/item/reagent_containers/food/snacks/canned/proc/open_can(mob/user)
to_chat(user, "You pull back the tab of \the [src].")
playsound(user.loc, 'sound/items/foodcanopen.ogg', 50)
ENABLE_BITFIELD(reagents.flags, OPENCONTAINER)
spillable = TRUE

/obj/item/reagent_containers/food/snacks/canned/attack_self(mob/user)
if(!is_drainable())
open_can(user)
icon_state = "[icon_state]_open"
return ..()

/obj/item/reagent_containers/food/snacks/canned/attack(mob/living/M, mob/user, def_zone)
if (!is_drainable())
to_chat(user, "<span class='warning'>[src]'s lid hasn't been opened!</span>")
return 0
return ..()

/obj/item/reagent_containers/food/snacks/canned/beans
name = "tin of beans"
desc = "Musical fruit in a slightly less musical container."
icon_state = "beans"
trash = /obj/item/trash/can/food/beans
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1)
list_reagents = list(/datum/reagent/consumable/nutriment = 10)
filling_color = "#B22222"
tastes = list("beans" = 1)
foodtype = VEGETABLES

/obj/item/reagent_containers/food/snacks/canned/peaches
name = "canned peaches"
desc = "Just a nice can of ripe peaches swimming in their own juices."
icon_state = "peachcan"
trash = /obj/item/trash/can/food/peaches
list_reagents = list(/datum/reagent/consumable/peachjuice = 20, /datum/reagent/consumable/sugar = 8, /datum/reagent/consumable/nutriment = 2)
filling_color = "#ffdf26"
tastes = list("peaches" = 7, "tin" = 1)
foodtype = FRUIT | SUGAR

/obj/item/reagent_containers/food/snacks/canned/peaches/maint
name = "Maintenance Peaches"
desc = "I have a mouth and I must eat."
icon_state = "peachcanmaint"
trash = /obj/item/trash/can/food/peaches/maint
tastes = list("peaches" = 1, "tin" = 7)

/obj/item/reagent_containers/food/snacks/crab_rangoon
name = "Crab Rangoon"
desc = "Has many names, like crab puffs, cheese wontons, crab dumplings? Whatever you call them, they're a fabulous blast of cream cheesy crab."
Expand All @@ -654,16 +597,6 @@
tastes = list("fried corn" = 1)
foodtype = JUNKFOOD | FRIED

/obj/item/reagent_containers/food/snacks/canned/beefbroth
name = "canned beef broth"
desc = "Why does this exist?"
icon_state = "beefcan"
trash = /obj/item/trash/can/food/beefbroth
list_reagents = list(/datum/reagent/consumable/beefbroth = 50)
filling_color = "#100800"
tastes = list("disgust" = 7, "tin" = 1)
foodtype = MEAT | GROSS | JUNKFOOD

/obj/item/reagent_containers/food/snacks/pingles
name = "pingles"
desc = "A perfect blend of sour cream and onion on a potato chip. May cause space lag."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
reqs = list(/datum/reagent/consumable/ketchup = 5,
/obj/item/reagent_containers/food/snacks/grown/soybeans = 2
)
result = /obj/item/reagent_containers/food/snacks/canned/beans
result = /obj/item/food/canned/beans
subcategory = CAT_MISCFOOD

/datum/crafting_recipe/food/eggplantparm
Expand Down
2 changes: 1 addition & 1 deletion code/modules/vending/mining.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
light_color = LIGHT_COLOR_BLUEGREEN
products = list(/obj/item/food/donkpocket/warm = 8,
/obj/item/food/salad/herbsalad = 6,
/obj/item/reagent_containers/food/snacks/canned/beans = 4,
/obj/item/food/canned/beans = 4,
/obj/item/reagent_containers/glass/waterbottle/large = 10)
contraband = list(/obj/item/reagent_containers/food/drinks/coffee = 10,
/obj/item/reagent_containers/food/snacks/chips = 6,
Expand Down
Binary file added icons/obj/food/canned.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions tools/UpdatePaths/Scripts/10263_NEWFOODpackaged.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/obj/item/food/canned : /obj/item/reagent_containers/food/snacks/canned{@OLD}

0 comments on commit 883c6ad

Please sign in to comment.