Food

**Food** is a Need common to all Cultivators and Mortals, and is a measure of how hungry they are. When a Character's Food bar falls to zero due to lack of items to eat, they begin starving, and will eventually die from lack of food.

Mortals can only acquire Food by eating edible items or from certain Medicine items. Cultivators may be able to use Qi Absorption to automatically absorb Qi in lieu of consuming food and water. Their Qi Absorption Efficiency allows the cultivator to automatically gain food from the environment. This does not consume actual Qi from the cultivator or the surroundings, and the amount of Food gained through doing so does not depend on the levels of ambient Qi.

Food consumption rate, the rate at which Food is consumed by Cultivators and converted into stamina, depends on a character's Food Consumption Bonus as well as the current Food level. The higher this value, the larger the amount of Food consumed per unit time and converted into Stamina. Each point of Food consumed is multiplied by the Stamina Acquisition Rate and added to Stamina.

## Uses

### Xiandao

* Cultivating (using Stamina)
* Inner Cauldron filling (using Stamina)

### Physical

* Remolding (using Stamina)

Note: Body Cultivators can only devour things of a certain Tier or below, based on their Comprehension and digestive system remolds. This can be seen by their Max Devour Item Tier property. They also don't get the [Elixir] part of medicines such as Pills for their effects, instead receiving a number of Immortal Essence. However, they still receive the [Food] property of any Medicines or Pills that they devour.

## Food Consumption

The rate at which Food is consumed depends on a number of factors.

* If a Character from the Player Sect is in another map by Entering it, Food does not drop below zero.
* If a Character is in an RPG map (move around using the WASD keys), Food does not decrease.
* If currently performing a Breakthrough, Food does not decrease.
* Otherwise, Food decreases based on the product of the following:
	+ The current Biome Food Multiplier, depending on the Character's Food level. This value is constant for all non-modded maps, but can be changed by Mods:
		- >30 Food: 0.383/s
		- 20 < Food <= 30: 0.133/s
		- 0.01 < Food <= 20: 0.066/s
		- <=0.01 Food: 0.04/s
	+ If the Character is sleeping, multiply by 0.33
	+ If Food is above 100 for non Physical Cultivators or if Food is above the maximum for Physical Cultivators, multiply by 20
	+ The Character's Food Consumption Bonus.
* For example, a Character with 80 Food, is asleep, and has a Food Consumption Bonus of 200% will consume 0.383\*0.33\*2 = 0.253 points of Food per second.

## Equilibrium

Qi Absorption allows Characters to regain Food passively, without the need to eat Food items. The Equilibrium value shows

There are 5 possible states for Equilibrium, depending on the Qi Absorption and Food Consumption Bonus of the Character, as well as the Biome Food Multiplier. This notably does not necessarily correlate with the actual Food levels, which is governed by the above equation.

* State 0 (Qi Absorption >= 0.383\*Food Consumption Bonus): 100% Equilibrium
* State 1 (Qi Absorption >= 0.133\*Food Consumption Bonus): 30% Equilibrium
* State 2 (Qi Absorption >= 0.066\*Food Consumption Bonus): 0% Equilibrium
* State 3 (Qi Absorption >= 0.04\*Food Consumption Bonus): 200% Equilibrium (likely a bug)
* State 4 (Qi Absorption < 0.04\*Food Consumption Bonus): 0% Equilibrium

## Eating Food

All Disciples automatically consume food when their Food Need is low. The levels where they begin to eat depend on the type of Disciple:

* Outer Disciples eat food if Food is <= 70 during an Eat timeslot, or Food is <30 otherwise.
* Cultivators eat food if Food is <= 29.

When available, they will consume the highest preference food, based on the value of the `Food` tag in the item definitions.

If their Food level is <= 0.01, they may also consume food with negative values for `Food` tag, such as Guanyin Clay or Spoiled Meal.

## Restoration

The amount of Food gained upon eating an item depends on the item, as well as the character's Food Replenishment Bonus. The bonus acts as a multiplier on the amount of Food gained per item eaten. It is helpful to place Spirit Relics with this property in a room containing a table accessible by a Physical Cultivator, since they tend to consume large amounts of Food. Overconsumption of Food by non Physical Cultivators may result in the Bloated Injury.

## Foods List

In the table below, items with "None" Priority will never be eaten by Disciples on their own, and have to be eaten manually.

## References

1. ↑ 1.0 1.1 `XiaWorld.FoodNeed.GetSubValue`
2. ↑ 2.0 2.1 Settings\Biomes\BiomeBase.xml
3. ↑ `XiaWorld.NeedBase.GetLevel`
4. ↑ `XiaWorld.FoodNeed.OnStep`
5. ↑ `XiaWorld.Npc.GetFoodEquilibrium`
6. ↑ `Panel_ThingInfo.FoodF2`
7. ↑ When Equilibrium shows as 200%, Food will usually end up decreasing to zero.
8. ↑ `XiaWorld.CommandEatFood.CouldBeFind`
9. ↑ Settings\ThingDef\Item
10. ↑ Settings\ThingDef\Item\Item\_Consumable\_Food.xml
11. ↑ `XiaWorld.Npc.NormalEatItem`
12. ↑ For Inner Disciples only, if you have Auto-Eat and "Elixirs First" checked in their Cultivation window, Inedia Pill becomes the highest priority Food.
13. ↑ May be a bug