From d4125da5353e0bee034fee50e524c8e22fa3d15a Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Thu, 1 Jul 2021 13:51:51 -0400 Subject: [PATCH] Add 'packaged' snack support --- code/modules/food/food/snacks.dm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 21f003e32ee..9fb3855d9d3 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -4,6 +4,10 @@ desc = "yummy" icon = 'icons/obj/food.dmi' icon_state = null + center_of_mass = list("x"=16, "y"=16) + w_class = ITEMSIZE_SMALL + force = 0 + var/bitesize = 1 var/bitecount = 0 var/trash = null @@ -18,11 +22,10 @@ var/icon/flat_icon = null //Used to cache a flat icon generated from dipping in batter. This is used again to make the cooked-batter-overlay var/do_coating_prefix = 1 //If 0, we wont do "battered thing" or similar prefixes. Mainly for recipes that include batter but have a special name var/cooked_icon = null //Used for foods that are "cooked" without being made into a specific recipe or combination. + /// If this has a wrapper on it. If true, it will print a message and ask you to remove it. Handling that is up to you. + var/package = FALSE //Generally applied during modification cooking with oven/fryer //Used to stop deepfried meat from looking like slightly tanned raw meat, and make it actually look cooked - center_of_mass = list("x"=16, "y"=16) - w_class = ITEMSIZE_SMALL - force = 0 /obj/item/weapon/reagent_containers/food/snacks/Initialize() . = ..() @@ -56,6 +59,10 @@ qdel(src) return 0 + if(package) + to_chat(M, "How do you expect to eat this with the package still on?") + return FALSE + if(istype(M, /mob/living/carbon)) //TODO: replace with standard_feed_mob() call.