/tg/ Station 13 - Modules - TypesVar Details - Proc Details

edible

Vars

after_eatCallback to be ran for when you take a bite of something
bite_consumptionAmount of reagents taken per bite
bitecountAmount of bites taken so far
check_likedCallback to be ran for when the code check if the food is liked, allowing for unique overrides for special foods like donuts with cops.
eat_timeAmount of seconds it takes to eat this food
eatverbsMessage to send when eating
food_flagsFlags for food
food_flags_by_sourceAssoc list of sources and their food flags
foodtypesBitfield of the types of this food
foodtypes_by_sourceAssoc list of sources and their foodtypes
junkinessDefines how much it lowers someones satiety (Need to eat, essentialy)
junkiness_by_sourceAssoc list of sources and their junkiness
last_check_timeLast time we checked for food likes
on_consumeCallback to be ran for when you finish eating something

Procs

CanConsumeChecks whether or not the eater can actually consume the food
IsFoodGoneMakes sure the thing hasn't been destroyed or fully eaten to prevent eating phantom edibles
OnCraftCalled when food is crafted through a crafting recipe datum.
On_ConsumeDelete the item when it is fully eaten
TakeBiteThis function lets the eater take a bite and transfers the reagents to the eater.
TryToEatAll the checks for the act of eating itself and
UseByAnimalAbility to feed food to puppers
apply_buffApplies food buffs according to the crafting complexity
checkLikedCheck foodtypes to see if we should send a moodlet
count_matching_foodtypesGet the number of matching food types in provided bitfields
created_by_processingCalled when food is created through processing (Usually this means it was sliced). We use this to pass the OG items reagents.
edible_ingredient_addedResponse to an edible ingredient being added to parent.
get_perceived_food_qualityGet food quality adjusted according to eater's preferences
get_recipe_complexityGet the complexity of the crafted food
on_enteredAbility to feed food to puppers
on_ooze_eatResponse to oozes trying to eat something edible
setup_initial_reagentsSets up the initial reagents of the food.
used_to_customizeResponse to being used to customize something

Var Details

after_eat

Callback to be ran for when you take a bite of something

bite_consumption

Amount of reagents taken per bite

bitecount

Amount of bites taken so far

check_liked

Callback to be ran for when the code check if the food is liked, allowing for unique overrides for special foods like donuts with cops.

eat_time

Amount of seconds it takes to eat this food

eatverbs

Message to send when eating

food_flags

Flags for food

food_flags_by_source

Assoc list of sources and their food flags

foodtypes

Bitfield of the types of this food

foodtypes_by_source

Assoc list of sources and their foodtypes

junkiness

Defines how much it lowers someones satiety (Need to eat, essentialy)

junkiness_by_source

Assoc list of sources and their junkiness

last_check_time

Last time we checked for food likes

on_consume

Callback to be ran for when you finish eating something

Proc Details

CanConsume

Checks whether or not the eater can actually consume the food

IsFoodGone

Makes sure the thing hasn't been destroyed or fully eaten to prevent eating phantom edibles

OnCraft

Called when food is crafted through a crafting recipe datum.

On_Consume

Delete the item when it is fully eaten

TakeBite

This function lets the eater take a bite and transfers the reagents to the eater.

TryToEat

All the checks for the act of eating itself and

UseByAnimal

Ability to feed food to puppers

apply_buff

Applies food buffs according to the crafting complexity

checkLiked

Check foodtypes to see if we should send a moodlet

count_matching_foodtypes

Get the number of matching food types in provided bitfields

created_by_processing

Called when food is created through processing (Usually this means it was sliced). We use this to pass the OG items reagents.

edible_ingredient_added

Response to an edible ingredient being added to parent.

get_perceived_food_quality

Get food quality adjusted according to eater's preferences

get_recipe_complexity

Get the complexity of the crafted food

on_entered

Ability to feed food to puppers

on_ooze_eat

Response to oozes trying to eat something edible

setup_initial_reagents

Sets up the initial reagents of the food.

used_to_customize

Response to being used to customize something