edible
Vars | |
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 |
eat_time | Amount of seconds it takes to eat this food |
eatverbs | Message to send when eating |
food_flags | Flags for food |
foodtypes | Bitfield of the types of this food |
initial_reagents | The initial reagents of this food when it is made |
junkiness | Defines how much it lowers someones satiety (Need to eat, essentialy) |
last_check_time | Last time we checked for food likes |
microwaved_type | The type of atom this creates when the object is microwaved. |
on_compost | Callback to be ran before composting something, in case you don't want a piece of food to be compostable for some reason. |
on_consume | Callback to be ran for when you finish eating something |
pre_eat | Callback to be ran before you eat something, so you can check if someone can eat it. |
tastes | The flavortext for taste |
volume | The initial volume of the foods reagents |
Procs | |
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 |
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 |
check_liked | Check foodtypes to see if we should send a moodlet |
compost | Checks if we can compost something, and handles it |
on_consume | Delete the item when it is fully eaten |
on_craft | Called when food is crafted through a crafting recipe datum. |
on_microwave_cooked | Corrects the reagents on the newly cooked food |
on_processed | Called when food is created through processing (Usually this means it was sliced). We use this to pass the OG items reagents. |
use_by_animal | Ability to feed food to puppers |
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
eat_time
Amount of seconds it takes to eat this food
eatverbs
Message to send when eating
food_flags
Flags for food
foodtypes
Bitfield of the types of this food
initial_reagents
The initial reagents of this food when it is made
junkiness
Defines how much it lowers someones satiety (Need to eat, essentialy)
last_check_time
Last time we checked for food likes
microwaved_type
The type of atom this creates when the object is microwaved.
on_compost
Callback to be ran before composting something, in case you don't want a piece of food to be compostable for some reason.
on_consume
Callback to be ran for when you finish eating something
pre_eat
Callback to be ran before you eat something, so you can check if someone can eat it.
tastes
The flavortext for taste
volume
The initial volume of the foods reagents
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
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
check_liked
Check foodtypes to see if we should send a moodlet
compost
Checks if we can compost something, and handles it
on_consume
Delete the item when it is fully eaten
on_craft
Called when food is crafted through a crafting recipe datum.
on_microwave_cooked
Corrects the reagents on the newly cooked food
on_processed
Called when food is created through processing (Usually this means it was sliced). We use this to pass the OG items reagents.
use_by_animal
Ability to feed food to puppers