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

food

Abstract class to allow us to easily create all the generic "normal" food without too much copy pasta of adding more components

Vars

bite_consumptionHow much reagents per bite
burns_on_grillWill this food turn into badrecipe on a grill? Don't use this for everything; preferably mostly for food that is made on a grill to begin with so it burns after some time
eat_timeHow long it will take to eat this food without any other modifiers
eatverbsVerbs used when eating this food in the to_chat messages
food_flagsExtra flags for things such as if the food is in a container or not
food_reagentsList of reagents this food gets on creation
foodtypesBitflag of the types of food this food is
junkinessHow much junkiness this food has? God I should remove junkiness soon
max_volumeAmount of volume the food can contain
microwaved_typeWhat you get if you microwave the food, this should be replaced once I fully re-work cooking.
preserved_foodFood that's immune to decomposition.
tastesTastes to describe this food
trash_typeType of atom thats spawned after eating this item
venue_valuePrice of this food if sold in a venue

Procs

MakeDecomposeThis proc makes things decompose. Set preserved_food to TRUE to make it never decompose.
MakeEdibleThis proc adds the edible component, overwrite this if you for some reason want to change some specific args like callbacks.
MakeGrillableThis proc handles grillable components, overwrite if you want different grill results etc.
MakeLeaveTrashThis proc handles trash components, overwrite this if you want the object to spawn trash
MakeProcessableThis proc handles processable elements, overwrite this if you want to add behavior such as slicing, forking, spooning, whatever, to turn the item into something else

Var Details

bite_consumption

How much reagents per bite

burns_on_grill

Will this food turn into badrecipe on a grill? Don't use this for everything; preferably mostly for food that is made on a grill to begin with so it burns after some time

eat_time

How long it will take to eat this food without any other modifiers

eatverbs

Verbs used when eating this food in the to_chat messages

food_flags

Extra flags for things such as if the food is in a container or not

food_reagents

List of reagents this food gets on creation

foodtypes

Bitflag of the types of food this food is

junkiness

How much junkiness this food has? God I should remove junkiness soon

max_volume

Amount of volume the food can contain

microwaved_type

What you get if you microwave the food, this should be replaced once I fully re-work cooking.

preserved_food

Food that's immune to decomposition.

tastes

Tastes to describe this food

trash_type

Type of atom thats spawned after eating this item

venue_value

Price of this food if sold in a venue

Proc Details

MakeDecompose

This proc makes things decompose. Set preserved_food to TRUE to make it never decompose.

MakeEdible

This proc adds the edible component, overwrite this if you for some reason want to change some specific args like callbacks.

MakeGrillable

This proc handles grillable components, overwrite if you want different grill results etc.

MakeLeaveTrash

This proc handles trash components, overwrite this if you want the object to spawn trash

MakeProcessable

This proc handles processable elements, overwrite this if you want to add behavior such as slicing, forking, spooning, whatever, to turn the item into something else