/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_food.dm

COMSIG_FOOD_EATENFrom datum/component/edible/proc/TakeBite: (mob/living/eater, mob/feeder, bitecount, bitesize)
COMSIG_FOOD_CROSSEDFrom base of datum/component/edible/on_entered: (mob/crosser, bitecount)
COMSIG_FOOD_CONSUMEDFrom base of Component/edible/On_Consume: (mob/living/eater, mob/living/feeder)
COMSIG_PILL_CONSUMEDcalled when a pill is injested (mob/living/eater, mob/living/feeder)
COMSIG_ITEM_USED_AS_INGREDIENTcalled when an item is used as an ingredient: (atom/customized)
COMSIG_FOOD_INGREDIENT_ADDEDcalled when an edible ingredient is added: (datum/component/edible/ingredient)
COMSIG_ITEM_FRIEDAn item becomes fried - From /datum/element/fried_item/Attach: (fry_time)
COMSIG_ITEM_ENTERED_FRYERAn item entering the deep frying (not fried yet) - From obj/machinery/deepfryer/start_fry: ()
COMSIG_ITEM_MICROWAVE_ACTcalled on item when microwaved (): (obj/machinery/microwave/microwave, mob/microwaver)
COMPONENT_MICROWAVE_SUCCESSReturn on success - that is, a microwaved item was produced
COMPONENT_MICROWAVE_BAD_RECIPEReturned on "failure" - an item was produced but it was the default fail recipe
COMSIG_ITEM_MICROWAVE_COOKEDcalled on item when created through microwaving (): (obj/machinery/microwave/M, cooking_efficiency)
COMSIG_ITEM_GRILL_PLACEDCalled when an object is placed onto a griddle
COMSIG_ITEM_GRILL_TURNED_ONCalled when a griddle is turned on
COMSIG_ITEM_GRILL_TURNED_OFFCalled when a griddle is turned off
COMSIG_ITEM_GRILL_PROCESSCalled when an object is grilled ontop of a griddle
COMPONENT_HANDLED_GRILLINGReturn to not burn the item
COMSIG_ITEM_GRILLEDCalled when an object is turned into another item through grilling ontop of a griddle
COMPONENT_HANDLED_BAKINGReturn to not burn the item
COMPONENT_BAKING_GOOD_RESULTReturn if the result of the baking was a good thing
COMPONENT_BAKING_BAD_RESULTReturn if the result of the baking was a bad thing / failuire
COMSIG_ITEM_BAKEDCalled when an object is turned into another item through baking in an oven
COMSIG_GLASS_DRANKfrom base of obj/item/reagent_containers/cup/attack(): (mob/M, mob/user)

Define Details

COMPONENT_BAKING_BAD_RESULT

Return if the result of the baking was a bad thing / failuire

COMPONENT_BAKING_GOOD_RESULT

Return if the result of the baking was a good thing

COMPONENT_HANDLED_BAKING

Return to not burn the item

COMPONENT_HANDLED_GRILLING

Return to not burn the item

COMPONENT_MICROWAVE_BAD_RECIPE

Returned on "failure" - an item was produced but it was the default fail recipe

COMPONENT_MICROWAVE_SUCCESS

Return on success - that is, a microwaved item was produced

COMSIG_FOOD_CONSUMED

From base of Component/edible/On_Consume: (mob/living/eater, mob/living/feeder)

COMSIG_FOOD_CROSSED

From base of datum/component/edible/on_entered: (mob/crosser, bitecount)

COMSIG_FOOD_EATEN

From datum/component/edible/proc/TakeBite: (mob/living/eater, mob/feeder, bitecount, bitesize)

COMSIG_FOOD_INGREDIENT_ADDED

called when an edible ingredient is added: (datum/component/edible/ingredient)

COMSIG_GLASS_DRANK

from base of obj/item/reagent_containers/cup/attack(): (mob/M, mob/user)

COMSIG_ITEM_BAKED

Called when an object is turned into another item through baking in an oven

COMSIG_ITEM_ENTERED_FRYER

An item entering the deep frying (not fried yet) - From obj/machinery/deepfryer/start_fry: ()

COMSIG_ITEM_FRIED

An item becomes fried - From /datum/element/fried_item/Attach: (fry_time)

COMSIG_ITEM_GRILLED

Called when an object is turned into another item through grilling ontop of a griddle

COMSIG_ITEM_GRILL_PLACED

Called when an object is placed onto a griddle

COMSIG_ITEM_GRILL_PROCESS

Called when an object is grilled ontop of a griddle

COMSIG_ITEM_GRILL_TURNED_OFF

Called when a griddle is turned off

COMSIG_ITEM_GRILL_TURNED_ON

Called when a griddle is turned on

COMSIG_ITEM_MICROWAVE_ACT

called on item when microwaved (): (obj/machinery/microwave/microwave, mob/microwaver)

COMSIG_ITEM_MICROWAVE_COOKED

called on item when created through microwaving (): (obj/machinery/microwave/M, cooking_efficiency)

COMSIG_ITEM_USED_AS_INGREDIENT

called when an item is used as an ingredient: (atom/customized)

COMSIG_PILL_CONSUMED

called when a pill is injested (mob/living/eater, mob/living/feeder)