Skip to content

Commit

Permalink
Breaks and Ruins everything
Browse files Browse the repository at this point in the history
are you happy now
  • Loading branch information
Meatstuff882 committed Aug 25, 2024
1 parent 6d57ca7 commit e3dc9c0
Show file tree
Hide file tree
Showing 27 changed files with 153 additions and 194 deletions.
116 changes: 31 additions & 85 deletions code/datums/recipe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -654,80 +654,58 @@

//other

/datum/recipe/packaged_burrito/proc/warm_up(obj/item/reagent_container/food/snacks/packaged_burrito/being_cooked)
being_cooked.warm = 1
being_cooked.reagents.add_reagent("bread", 1)
being_cooked.reagents.add_reagent("meatprotein", 1)
being_cooked.name = "Warm " + being_cooked.name
being_cooked.desc = "A hard microwaved burrito. Molten on the outside, barely cooked on the inside."

/datum/recipe/packaged_burrito/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_burrito/being_cooked = ..(container)
warm_up(being_cooked)
return being_cooked

/datum/recipe/packaged_burrito/warm
reagents = list() //Literally just stealing this from the donk pocket code with barely any understanding of what it means. Here's hoping!
/datum/recipe/donkpocket
items = list(
/obj/item/reagent_container/food/snacks/packaged_burrito,
/obj/item/reagent_container/food/snacks/dough,
/obj/item/reagent_container/food/snacks/meatball,
)
result = /obj/item/reagent_container/food/snacks/packaged_burrito //SPECIAL
result = /obj/item/reagent_container/food/snacks/microwavable/donkpocket //SPECIAL

/datum/recipe/packaged_burrito/warm/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_burrito/being_cooked = locate() in container
if(being_cooked && !being_cooked.warm)
warm_up(being_cooked)
return being_cooked

/datum/recipe/packaged_burger/proc/warm_up(obj/item/reagent_container/food/snacks/packaged_burger/being_cooked)
/datum/recipe/microwavesnack/proc/warm_up(obj/item/reagent_container/food/snacks/microwavable/being_cooked)
being_cooked.warm = 1
being_cooked.reagents.add_reagent("bread", 1)
being_cooked.reagents.add_reagent("meatprotein", 1)
being_cooked.name = "Warm " + being_cooked.name
being_cooked.desc = "A soggy microwaved burger. It's not any less soggy then it was before, it's just hot now."
being_cooked.desc = being_cooked.warm_desc

/datum/recipe/packaged_burger/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_burger/being_cooked = ..(container)
/datum/recipe/microwavesnack/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/microwavable/being_cooked = ..(container)
warm_up(being_cooked)
return being_cooked

/datum/recipe/packaged_burger/warm
reagents = list()
items = list(
/obj/item/reagent_container/food/snacks/packaged_burger,
)
result = /obj/item/reagent_container/food/snacks/packaged_burger //SPECIAL

/datum/recipe/packaged_burger/warm/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_burger/being_cooked = locate() in container
/datum/recipe/microwavesnack/warm/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/microwavable/being_cooked = locate() in container
if(being_cooked && !being_cooked.warm)
warm_up(being_cooked)
return being_cooked

/datum/recipe/packaged_hdogs/proc/warm_up(obj/item/reagent_container/food/snacks/packaged_hdogs/being_cooked)
being_cooked.warm = 1
being_cooked.reagents.add_reagent("bread", 1)
being_cooked.reagents.add_reagent("meatprotein", 1)
being_cooked.name = "Warm " + being_cooked.name
being_cooked.desc = "A singular squishy, steaming, hot dog. The casing seems to have burst, and the bun is dried out."
/datum/recipe/microwavesnack/donkpocket/warm
reagents = list() //This is necessary since this is a child object of the above recipe and we don't want donk pockets to need flour
items = list(
/obj/item/reagent_container/food/snacks/microwavable/donkpocket,
)
result = /obj/item/reagent_container/food/snacks/microwavable/donkpocket //SPECIAL

/datum/recipe/packaged_hdogs/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_hdogs/being_cooked = ..(container)
warm_up(being_cooked)
return being_cooked
/datum/recipe/microwavesnack/packaged_burrito/warm
reagents = list() //Literally just stealing this from the donk pocket code with barely any understanding of what it means. Here's hoping!
items = list(
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito,
)
result = /obj/item/reagent_container/food/snacks/microwavable/packaged_burrito //SPECIAL

/datum/recipe/packaged_hdogs/warm
/datum/recipe/microwavesnack/packaged_burger/warm
reagents = list()
items = list(
/obj/item/reagent_container/food/snacks/packaged_hdogs,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger,
)
result = /obj/item/reagent_container/food/snacks/packaged_hdogs //SPECIAL
result = /obj/item/reagent_container/food/snacks/microwavable/packaged_burger //SPECIAL

/datum/recipe/packaged_hdogs/warm/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/packaged_hdogs/being_cooked = locate() in container
if(being_cooked && !being_cooked.warm)
warm_up(being_cooked)
return being_cooked
/datum/recipe/microwavesnack/packaged_hdogs/warm
reagents = list()
items = list(
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs,
)
result = /obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs //SPECIAL

/datum/recipe/hotdog
items = list(
Expand All @@ -753,38 +731,6 @@
)
result = /obj/item/reagent_container/food/snacks/pancakes

/datum/recipe/donkpocket
items = list(
/obj/item/reagent_container/food/snacks/dough,
/obj/item/reagent_container/food/snacks/meatball,
)
result = /obj/item/reagent_container/food/snacks/donkpocket //SPECIAL

/datum/recipe/donkpocket/proc/warm_up(obj/item/reagent_container/food/snacks/donkpocket/being_cooked)
being_cooked.warm = 1
being_cooked.reagents.add_reagent("tricordrazine", 5)
being_cooked.bitesize = 6
being_cooked.name = "Warm " + being_cooked.name
being_cooked.cooltime()

/datum/recipe/donkpocket/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/donkpocket/being_cooked = ..(container)
warm_up(being_cooked)
return being_cooked

/datum/recipe/donkpocket/warm
reagents = list() //This is necessary since this is a child object of the above recipe and we don't want donk pockets to need flour
items = list(
/obj/item/reagent_container/food/snacks/donkpocket,
)
result = /obj/item/reagent_container/food/snacks/donkpocket //SPECIAL

/datum/recipe/donkpocket/warm/make_food(obj/container as obj)
var/obj/item/reagent_container/food/snacks/donkpocket/being_cooked = locate() in container
if(being_cooked && !being_cooked.warm)
warm_up(being_cooked)
return being_cooked

/datum/recipe/muffin
reagents = list("milk" = 5, "sugar" = 5)
items = list(
Expand Down
2 changes: 1 addition & 1 deletion code/game/gamemodes/colonialmarines/huntergames.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
\
75; /obj/item/stack/medical/bruise_pack, \
75; /obj/item/stack/medical/ointment, \
75; /obj/item/reagent_container/food/snacks/donkpocket, \
75; /obj/item/reagent_container/food/snacks/microwavable/donkpocket, \
\
100; /obj/item/cell/high, \
100; /obj/item/tool/wirecutters, \
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/kitchen/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
if (istype(contents_item, /obj/item/reagent_container/food/snacks/meat)) //any meat
items_measures[display_name] = "slab of meat"
items_measures_p[display_name] = "slabs of meat"
if (istype(contents_item, /obj/item/reagent_container/food/snacks/donkpocket))
if (istype(contents_item, /obj/item/reagent_container/food/snacks/microwavable/donkpocket))
display_name = "Turnovers"
items_measures[display_name] = "turnover"
items_measures_p[display_name] = "turnovers"
Expand Down
21 changes: 12 additions & 9 deletions code/game/machinery/vending/vending_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
product_ads = "Kepler Crisps! Try a snack that's out of this world!;Eat an EAT!"
icon_state = "snack"
products = list(
/obj/item/reagent_container/food/snacks/packaged_burger = 12,
/obj/item/reagent_container/food/snacks/packaged_burrito = 12,
/obj/item/reagent_container/food/snacks/packaged_hdogs =12,
/obj/item/reagent_container/food/snacks/microwavable/donkpocket = 12,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger = 12,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito = 12,
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs =12,
/obj/item/reagent_container/food/snacks/kepler_crisps = 12,
/obj/item/reagent_container/food/snacks/kepler_crisps/flamehot = 12,
/obj/item/reagent_container/food/snacks/wy_chips/pepper = 12,
Expand All @@ -64,9 +65,10 @@
)

prices = list(
/obj/item/reagent_container/food/snacks/packaged_burger = 5,
/obj/item/reagent_container/food/snacks/packaged_burrito = 5,
/obj/item/reagent_container/food/snacks/packaged_hdogs = 5,
/obj/item/reagent_container/food/snacks/microwavable/donkpocket = 5,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger = 5,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito = 5,
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs = 5,
/obj/item/reagent_container/food/snacks/kepler_crisps = 3,
/obj/item/reagent_container/food/snacks/kepler_crisps/flamehot = 5,
/obj/item/reagent_container/food/snacks/wy_chips/pepper = 3,
Expand All @@ -81,9 +83,10 @@
product_slogans = ""
product_ads = ""
products = list(
/obj/item/reagent_container/food/snacks/packaged_burger = 40,
/obj/item/reagent_container/food/snacks/packaged_burrito = 40,
/obj/item/reagent_container/food/snacks/packaged_hdogs = 40,
/obj/item/reagent_container/food/snacks/microwavable/donkpocket = 40,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito = 40,
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger = 40,
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs = 40,
)

/obj/structure/machinery/vending/cola
Expand Down
82 changes: 46 additions & 36 deletions code/game/objects/items/reagent_containers/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3134,23 +3134,42 @@
reagents.add_reagent("vegetable", 3)
reagents.add_reagent("potato", 3)

/obj/item/reagent_container/food/snacks/donkpocket
/obj/item/reagent_container/food/snacks/microwavable
name = "Microwavable snack"
desc = "Some food you could microwave. It won't be tastier if you do, though."
var/warm_desc = "Some microwaved food."
icon_state = "donkpocket"
bitesize = 3
var/warm = 0

/obj/item/reagent_container/food/snacks/microwavable/proc/cooltime() //Not working, derp?
if(warm)
spawn(4200)
if(!QDELETED(src)) //not qdel'd
warm = 0
reagents.del_reagent("bread", 1)
reagents.del_reagent("meatprotein", 1)
name = name

/obj/item/reagent_container/food/snacks/microwavable/donkpocket
name = "Donk-pocket"
desc = "The food of choice for the seasoned traitor."
desc = "The food of choice for the seasoned traitor. Packaged by the Weyland-Yutani Corporation."
warm_desc = "The food of choice for the seasoned traitor. Warmed unevenly and rock hard."
icon_state = "donkpocket_wr2"
filling_color = "#DEDEAB"
package = 2
var/warm = 0

/obj/item/reagent_container/food/snacks/donkpocket/Initialize()
/obj/item/reagent_container/food/snacks/microwavable/donkpocket/Initialize()
. = ..()
reagents.add_reagent("meatprotein", 2)
reagents.add_reagent("bread", 2)
reagents.add_reagent("meatprotein", 5)
reagents.add_reagent("bread", 5)
reagents.add_reagent("tomatojuice", 2)
reagents.add_reagent("cheese", 2)

/obj/item/reagent_container/food/snacks/donkpocket/attack_self(mob/user)
/obj/item/reagent_container/food/snacks/microwavable/donkpocket/attack_self(mob/user)
..()

if(package==1)
if(package==1) // this one comes first, otherwise it will run package==2 and THEN package==1 in succession
playsound(src.loc,'sound/effects/pageturn2.ogg', 15, 1)
to_chat(user, SPAN_NOTICE("You pull off the sleeve from the donk pocket!"))
package = 0
Expand All @@ -3161,54 +3180,45 @@
package = 1
icon_state = "donkpocket_wr1"

/obj/item/reagent_container/food/snacks/donkpocket/proc/cooltime() //Not working, derp?
if(warm)
spawn(4200)
if(!QDELETED(src)) //not qdel'd
warm = 0
reagents.del_reagent("tricordrazine")
name = "donk-pocket"

/obj/item/reagent_container/food/snacks/packaged_burrito
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito
name = "Packaged Burrito"
desc = "A hard microwavable burrito. There's no time given for how long to cook it, but you can try microwaving it anyways. Packaged by the Weyland-Yutani Corporation."
warm_desc = "A hard microwaved burrito. Molten on the outside, barely cooked on the inside."
icon_state = "packaged-burrito"
bitesize = 2
package = 1
var/warm = 0

/obj/item/reagent_container/food/snacks/packaged_burrito/Initialize()
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito/Initialize()
. = ..()
reagents.add_reagent("bread", 5)
reagents.add_reagent("meatprotein", 5)
reagents.add_reagent("bread", 4)
reagents.add_reagent("meatprotein", 4)
reagents.add_reagent("vegetable", 2)
reagents.add_reagent("cheese", 2)

/obj/item/reagent_container/food/snacks/packaged_burrito/attack_self(mob/user)
/obj/item/reagent_container/food/snacks/microwavable/packaged_burrito/attack_self(mob/user)
..()

if(package)
playsound(src.loc,'sound/effects/pageturn2.ogg', 15, 1)
to_chat(user, SPAN_NOTICE("You pull off the wrapping from the squishy burrito!"))
package = 0
icon_state = "open-burrito"
package = 1

/obj/item/reagent_container/food/snacks/packaged_burger
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger
name = "Packaged Cheeseburger"
desc = "A soggy microwavable burger. There's no time given for how long to cook it, but you can try microwaving it anyways. Packaged by the Weyland-Yutani Corporation."
warm_desc = "A soggy microwaved burger. It's not any less soggy then it was before, it's just hot now."
icon_state = "burger"
bitesize = 3
package = 1
var/warm = 0

/obj/item/reagent_container/food/snacks/packaged_burger/Initialize()
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger/Initialize()
. = ..()
reagents.add_reagent("bread", 5)
reagents.add_reagent("meatprotein", 5)
reagents.add_reagent("cheese", 2)
reagents.add_reagent("sodiumchloride", 2)


/obj/item/reagent_container/food/snacks/packaged_burger/attack_self(mob/user)
/obj/item/reagent_container/food/snacks/microwavable/packaged_burger/attack_self(mob/user)
..()

if(package)
Expand All @@ -3218,21 +3228,21 @@
icon_state = "hburger"
item_state = "burger"

/obj/item/reagent_container/food/snacks/packaged_hdogs
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs
name = "Packaged Hotdog"
desc = "A singular squishy, room temperature, hot dog. There's no time given for how long to cook it, but you can try microwaving it anyways. Packaged by the Weyland-Yutani Corporation."
warm_desc = "A singular squishy, steaming, hot dog. The casing seems to have burst, and the bun is dried out."
icon_state = "packaged-hotdog"
bitesize = 2
package = 1
var/warm = 0

/obj/item/reagent_container/food/snacks/packaged_hdogs/Initialize()
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs/Initialize()
. = ..()
reagents.add_reagent("bread", 2)
reagents.add_reagent("meatprotein", 1)
reagents.add_reagent("bread", 5)
reagents.add_reagent("meatprotein", 5)
reagents.add_reagent("ketchup", 2)
reagents.add_reagent("sodiumchloride", 2)

/obj/item/reagent_container/food/snacks/packaged_hdogs/attack_self(mob/user)
/obj/item/reagent_container/food/snacks/microwavable/packaged_hdogs/attack_self(mob/user)
..()

if(package)
Expand Down
12 changes: 6 additions & 6 deletions code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@
w_class = SIZE_MEDIUM

/obj/item/storage/box/donkpockets/fill_preset_inventory()
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)
new /obj/item/reagent_container/food/snacks/microwavable/donkpocket(src)

/obj/item/storage/box/monkeycubes
name = "monkey cube box"
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/crates_lockers/largecrate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
/obj/item/device/multitool,
/obj/item/tool/crowbar,
/obj/item/device/flashlight,
/obj/item/reagent_container/food/snacks/donkpocket,
/obj/item/reagent_container/food/snacks/microwavable/donkpocket,
/obj/item/explosive/grenade/smokebomb,
/obj/item/circuitboard/airlock,
/obj/item/device/assembly/igniter,
Expand Down
Loading

0 comments on commit e3dc9c0

Please sign in to comment.