Difference between revisions of "Diet"

From NetHackWiki
Jump to navigation Jump to search
m (NHW:Style guide § Variants – keep variant info within its own section. Also fixed source code redlinks)
Line 7: Line 7:
 
You, as a monster endowed with free will, are restricted only by your physical capacity to consume. Still, your diet is determined by what you are. Most character types are omnivores, although [[monk]]s are effectively herbivores, suffering an alignment penalty for eating non-vegetarian food. Being a carnivore or herbivore (or even inediate) does not restrict your ability to eat, but does make the respective food types more delicious.  
 
You, as a monster endowed with free will, are restricted only by your physical capacity to consume. Still, your diet is determined by what you are. Most character types are omnivores, although [[monk]]s are effectively herbivores, suffering an alignment penalty for eating non-vegetarian food. Being a carnivore or herbivore (or even inediate) does not restrict your ability to eat, but does make the respective food types more delicious.  
  
You are the only monster that can open a [[tin]] of food. You can also quaff any form of [[Foodless#Restoring_nutrition|liquid nourishment]], provided you are capable of drinking. When [[polymorph]]ed into a new type of monster, you can eat whatever that monster type can eat, in addition to the usual [[comestibles]]. Note, however, that being ''capable'' of eating something does not mean that you ''should'' eat it; eating a dead [[cockatrice]] by mistake has ended many a game, and eating your own race carries the penalties of [[cannibalism]].  
+
You are the only creature that can open a [[tin]] of food. You can also quaff any form of [[Foodless#Restoring nutrition|liquid nourishment]], provided you are capable of drinking. When [[polymorph]]ed into a new type of monster, you can eat whatever that monster type can eat, in addition to the usual [[comestibles]]. Note, however, that being ''capable'' of eating something does not mean that you ''should'' eat it; eating a dead [[cockatrice]] by mistake has ended many a game, and eating your own race carries the penalties of [[cannibalism]].  
  
 
Three [[conducts]] tracked by the game entail ''voluntarily'' restricting your diet: vegetarian, vegan, and [[foodless]].  
 
Three [[conducts]] tracked by the game entail ''voluntarily'' restricting your diet: vegetarian, vegan, and [[foodless]].  
Line 17: Line 17:
 
Most [[pet]]s must continually eat to stave off [[Nutrition#Nutrition_and_pets|starvation]]. Besides a normal state of contentment, a pet has two degrees of hunger. ''Hungry'' is what a [[stethoscope]] and #[[chat]]ting indicate. ''Starving'' means the pet "is confused from hunger" or "you feel worried about" it, and implies the pet's maximum hit points are reduced to 25%. Beyond that, it will cease to be your pet, either dying or, if on another level, becoming [[tameness|hostile]].  
 
Most [[pet]]s must continually eat to stave off [[Nutrition#Nutrition_and_pets|starvation]]. Besides a normal state of contentment, a pet has two degrees of hunger. ''Hungry'' is what a [[stethoscope]] and #[[chat]]ting indicate. ''Starving'' means the pet "is confused from hunger" or "you feel worried about" it, and implies the pet's maximum hit points are reduced to 25%. Beyond that, it will cease to be your pet, either dying or, if on another level, becoming [[tameness|hostile]].  
  
Pets react differently to various [[food]]s according to how appealing they find it. From best to worst, the grades of food are as follows.<ref>[[Source:Edog.h#line10]] for definition of food grades</ref><ref>[[Source:Dog.c#dogfood]] for food classification</ref>
+
Pets react differently to various [[food]]s according to how appealing they find it. From best to worst, the grades of food are as follows.<ref>[[Source:edog.h#line10]] for definition of food grades</ref><ref>[[Source:dog.c#dogfood]] for food classification</ref>
  
 
{|class="prettytable"
 
{|class="prettytable"
Line 26: Line 26:
 
|'''treat'''
 
|'''treat'''
 
|DOGFOOD
 
|DOGFOOD
|A delicious [[treat]] suitable for [[apport|training]].{{refsrc|Dogmove.c|170}} Will make pets follow more closely.{{refsrc|Dogmove.c|427}}. Pets will "catch" it, which is purely cosmetic.{{refsrc|Dog.c|780}}
+
|A delicious [[treat]] suitable for [[apport|training]].{{refsrc|dogmove.c|170}} Will make pets follow more closely.{{refsrc|dogmove.c|427}}. Pets will "catch" it, which is purely cosmetic.{{refsrc|dog.c|780}}
 
|-
 
|-
 
|'''good'''
 
|'''good'''
 
|CADAVER
 
|CADAVER
|Will be eaten happily.<ref>{{sourcecode|Dogmove.c|297}} and {{sourcecode|Dogmove.c|675}}</ref>
+
|Will be eaten happily.<ref>{{sourcecode|dogmove.c|297}} and {{sourcecode|dogmove.c|675}}</ref>
 
|-
 
|-
 
|'''hungry'''
 
|'''hungry'''
 
|ACCFOOD
 
|ACCFOOD
|Will be eaten if hungry,<ref>{{sourcecode|Dogmove.c|675}} {{sourcecode|Dog.c|780}}, {{sourcecode|Dothrow.c|1382}}</ref> but the pet will seek it out only if starving.{{refsrc|Dogmove.c|297}} (Try throwing the food at the pet.) The minimum food grade needed for taming.{{refsrc|Dog.c|808}} The worst quality food that will to suppress the message "[[Foo]] moves only reluctantly."{{refsrc|Dogmove.c|377}}
+
|Will be eaten if hungry,<ref>{{sourcecode|dogmove.c|675}} {{sourcecode|dog.c|780}}, {{sourcecode|dothrow.c|1382}}</ref> but the pet will seek it out only if starving.{{refsrc|dogmove.c|297}} (Try throwing the food at the pet.) The minimum food grade needed for taming.{{refsrc|dog.c|808}} The worst quality food that will to suppress the message "[[Foo]] moves only reluctantly."{{refsrc|dogmove.c|377}}
 
|-
 
|-
 
|starving
 
|starving
 
|MANFOOD (ACCFOOD when starving)
 
|MANFOOD (ACCFOOD when starving)
|Will be eaten only if starving.<ref>[[Source:Dog.c#dogfood]] technically reclassifies some of it as ACCFOOD when starving.</ref> Otherwise, the pet wants to apport the food.{{refsrc|Dogmove.c|377}}
+
|Will be eaten only if starving.<ref>[[Source:dog.c#dogfood]] technically reclassifies some of it as ACCFOOD when starving.</ref> Otherwise, the pet wants to apport the food.{{refsrc|dogmove.c|377}}
 
|-
 
|-
 
|''inedible''
 
|''inedible''
Line 45: Line 45:
 
|}
 
|}
  
Untame [[domestic animal]]s (dogs, cats, and horses, plus many others in [[SLASH'EM]]) will not eat spontaneously but will react favorably to food you throw at them (apart from eggs, melons, and cream pies that hit their target and splat 99% of the time). If the food is considered grade "hungry" or better, the animal will eat it and become [[tame]]; this is an easy way to [[Pet#New_pets|acquire pets]]. Any other [[comestible]] will not be eaten but will [[peaceful|pacify]] the animal and remove any [[fear]] effects.<ref>{{sourcecode|dothrow.c|1383}} (see also definition of befriend_with_obj at {{sourcecode|mondata.h|190}})</ref><ref>{{sourcecode|dog.c|756}}: "worst case, at least it'll be peaceful" (see also {{function|dog.c|dogfood|x}} above)</ref>  
+
Untame [[domestic animal]]s (dogs, cats, and horses) will not eat spontaneously but will react favorably to food you throw at them (apart from eggs, melons, and cream pies that hit their target and splat 99% of the time). If the food is considered grade "hungry" or better, the animal will eat it and become [[tame]]; this is an easy way to [[Pet#New_pets|acquire pets]]. Any other [[comestible]] will not be eaten but will [[peaceful|pacify]] the animal and remove any [[fear]] effects.<ref>{{sourcecode|dothrow.c|1383}} (see also definition of befriend_with_obj at {{sourcecode|mondata.h|190}})</ref><ref>{{sourcecode|dog.c|756}}: "worst case, at least it'll be peaceful" (see also {{function|dog.c|dogfood|x}} above)</ref>  
  
 
Carnivores and herbivores evaluate food in very different ways, tabulated below. The obvious trend to bear in mind is that carnivores prefer meats and herbivores prefer vegetable matter. Omnivores generally apply the more favorable grade out of both.  
 
Carnivores and herbivores evaluate food in very different ways, tabulated below. The obvious trend to bear in mind is that carnivores prefer meats and herbivores prefer vegetable matter. Omnivores generally apply the more favorable grade out of both.  
Line 106: Line 106:
 
*[[poison]]ous
 
*[[poison]]ous
 
*[[petrify]]ing (including [[cockatrice]] eggs)
 
*[[petrify]]ing (including [[cockatrice]] eggs)
*old (>=50 turns, except lizards and lichens)
+
*old (&ge;50 turns, except lizards and lichens)
 
*[[Rider]]s
 
*[[Rider]]s
 
|''inedible''
 
|''inedible''
Line 115: Line 115:
  
 
=== Omnivore ===
 
=== Omnivore ===
{{main|omnivore}}
 
  
Most [[humanoid]] monsters, including yourself initially, are omnivores. This diet is essentially a combination of [[carnivore]] and [[herbivore]].  
+
Most [[humanoid]] monsters, including yourself initially, are [[omnivore]]s. This diet is essentially a combination of [[carnivore]] and [[herbivore]].  
  
 
=== Carnivore ===
 
=== Carnivore ===
{{main|carnivore}}
 
  
Carnivores are monsters that (when [[tame]]d) prefer to eat meat. [[Tripe]] and meat created with [[stone to flesh]] are considered [[treat]]s. They will eat any safe [[corpse]]s and [[egg]]s that they find on the ground. They will eat "people food" such as [[food ration]]s, [[pancake]]s, or [[fortune cookie]]s if they are hungry and [[vegetarian]] food such as [[fruit]] and [[melon]]s if starving. They will not eat [[vegan]] corpses such as [[mold]] or [[lichen]]s, nor will they eat [[tin]]s.
+
[[Carnivore]]s are monsters that (when [[tame]]d) prefer to eat meat. [[Tripe]] and meat created with [[stone to flesh]] are considered [[treat]]s. They will eat any safe [[corpse]]s and [[egg]]s that they find on the ground. They will eat "people food" such as [[food ration]]s, [[pancake]]s, or [[fortune cookie]]s if they are hungry and [[vegetarian]] food such as [[fruit]] and [[melon]]s if starving. They will not eat [[vegan]] corpses such as [[mold]] or [[lichen]]s, nor will they eat [[tin]]s.
  
 
=== Herbivore ===
 
=== Herbivore ===
{{main|herbivore}}
 
  
Herbivores are monsters that (when [[tame]]d) prefer to eat vegetable matter such as [[fruit]], vegetables, [[fungus|fungi]], and other plants. [[Apple]]s and [[carrot]]s are considered [[treat]]s. They will eat safe [[vegan]] [[corpse]]s such as [[lichen]]s, [[mold]], [[shrieker]]s, [[blob]]s, and [[jelly|jellies]] if they find them lying on the ground. They will also eat [[melon]]s, [[orange]]s, [[pear]]s, [[wolfsbane]], [[garlic]], [[kelp frond]]s, and so on, but only when hungry. If they are very hungry, they will eat some people food like [[food ration]]s, [[pancake]]s, and [[lembas]]. They will never eat meat products, meaty corpses, [[egg]]s, or [[tin]]s.
+
[[Herbivore]]s are monsters that (when [[tame]]d) prefer to eat vegetable matter such as [[fruit]], vegetables, [[fungus|fungi]], and other plants. [[Apple]]s and [[carrot]]s are considered [[treat]]s. They will eat safe [[vegan]] [[corpse]]s such as [[lichen]]s, [[mold]], [[shrieker]]s, [[blob]]s, and [[jelly|jellies]] if they find them lying on the ground. They will also eat [[melon]]s, [[orange]]s, [[pear]]s, [[wolfsbane]], [[garlic]], [[kelp frond]]s, and so on, but only when hungry. If they are very hungry, they will eat some people food like [[food ration]]s, [[pancake]]s, and [[lembas]]. They will never eat meat products, meaty corpses, [[egg]]s, or [[tin]]s.
  
 
=== Metallivore ===
 
=== Metallivore ===
{{main|metallivore}}
 
  
Metallivores subsist on [[metal]]s, including not only metallic weapons and armor but also rings, amulets, and wands made of metal. In fact, a useful strategy is to [[polymorph]] into a metallivore to gain [[intrinsics]] by [[eating jewelry]]. They also eat tins of food, biting right through the tasty metal. Non-rustproof [[iron]] objects are considered [[treat]]s. Unlike [[xorn]]s and [[rock mole]]s, [[rust monster]]s are restricted to the one metal that can rust, [[iron]].
+
[[Metallivore]]s subsist on [[metal]]s, including not only metallic weapons and armor but also rings, amulets, and wands made of metal. In fact, a useful strategy is to [[polymorph]] into a metallivore to gain [[intrinsics]] by [[eating jewelry]]. They also eat tins of food, biting right through the tasty metal. Non-rustproof [[iron]] objects are considered [[treat]]s. Unlike [[xorn]]s and [[rock mole]]s, [[rust monster]]s are restricted to the one metal that can rust, [[iron]].
  
Metallivore monsters and players do not get hungry (unless they also eat meat/vegetables), but ring and amulet hunger still apply.
+
Metallivorous monsters and players do not get hungry (unless they also eat meat or vegetables), but ring and amulet hunger still apply.
 
 
=== Lithivore ===
 
{{main|lithivore}}
 
 
 
Lithivores (which currently only exist in [[Slash'EM Extended]]) subsist on [[stone]]s, including not only rocks and gems but also pieces of glass, and any other items made of [[mineral]], [[bone]], [[gemstone]] or [[glass]]. In fact, a useful strategy is to [[polymorph]] into a lithivore to gain [[intrinsics]] by [[eating jewelry]]. Lithic objects are considered [[treat]]s.
 
 
 
Lithivore monsters and players do not get hungry (unless they also eat meat/vegetables), but ring and amulet hunger still apply. However, in Slash'EM Extended version v36 and higher, both lithivores and metallivores '''will''' get hungry even if they can't eat anything else.
 
  
 
=== Inediate ===
 
=== Inediate ===
{{main|inediate}}
 
  
Inediates do not need to eat any kind of food to stay alive, and cannot eat anything. Most monsters that are [[undead]], [[demon]]ic, [[angel]]ic, or otherwise magical in nature are inediate.  
+
[[Inediate]] monsters do not need to eat any kind of food to stay alive, and cannot eat anything. Most monsters that are [[undead]], [[demon]]ic, [[Angelic being|angelic]], or otherwise magical in nature are inediate.  
  
 
=== Special cases ===
 
=== Special cases ===
Line 158: Line 146:
  
 
=== Internals ===
 
=== Internals ===
Internally, the diet of a monster type is indicated by the flags M1_CARNIVORE and M1_HERBIVORE; both flags are set for an omnivore, and neither is set for inediates. The M1_METALLIVORE flag denotes a metallivore. Interestingly, a monster with M1_METALLIVORE but not M1_CARNIVORE or M1_HERBIVORE is considered inediate for ingame purposes.
+
Internally, the diet of a monster type is indicated by the flags M1_CARNIVORE and M1_HERBIVORE; both flags are set for an omnivore, and neither is set for inediates. The M1_METALLIVORE flag denotes a metallivore. Interestingly, a monster with M1_METALLIVORE but not M1_CARNIVORE or M1_HERBIVORE is considered inediate for in-game purposes.
 +
 
 +
== Slash'EM Extended ==
 +
[[Slash'EM Extended]] features [[lithivore|lithivorous]] monsters. Lithivores subsist on [[stone]]s&mdash;not only rocks and gems, but also any other items made of [[mineral]], [[bone]], [[gemstone]], or [[glass]]. [[Polymorph]]ing into a lithivore allows the player to gain [[intrinsics]] by [[eating jewelry]]. Lithic objects are considered [[treat]]s for lithivores.
 +
 
 +
As of version v36, both lithivores and metallivores <em>will</em> get hungry even if they can't eat anything else.
  
 
== See also ==
 
== See also ==

Revision as of 04:08, 10 January 2020

The diet of a monster describes which types of things it will eat.

Every monster, including yourself, is restricted to eating only certain materials. Solid foods that are edible to your starting character are generally classified as comestibles, but if you polymorph into a different type of monster, you may find yourself snacking on such things as shirts or wands. Further, many types of monsters have strong innate preferences with regard to meats and vegetable matter.

Your diet

You, as a monster endowed with free will, are restricted only by your physical capacity to consume. Still, your diet is determined by what you are. Most character types are omnivores, although monks are effectively herbivores, suffering an alignment penalty for eating non-vegetarian food. Being a carnivore or herbivore (or even inediate) does not restrict your ability to eat, but does make the respective food types more delicious.

You are the only creature that can open a tin of food. You can also quaff any form of liquid nourishment, provided you are capable of drinking. When polymorphed into a new type of monster, you can eat whatever that monster type can eat, in addition to the usual comestibles. Note, however, that being capable of eating something does not mean that you should eat it; eating a dead cockatrice by mistake has ended many a game, and eating your own race carries the penalties of cannibalism.

Three conducts tracked by the game entail voluntarily restricting your diet: vegetarian, vegan, and foodless.

Pets

Most types of monsters eat only when tame, i.e., your pets; the exceptions are metallivores and other unique diets, which largely avoid safe comestibles. A pet encountering something it is capable of eating will decide whether to eat it according to its dietary preference and its degree of hunger, with due care to avoid harmful meals. A pet cat, for example, will eat a banana only when starving. Diet also determines which foods will tame a domestic animal and which foods a pet considers a treat. Thus it is helpful to be aware of the diets of your pets or potential pets you want to tame (that pony wants an apple, not a yucky tripe ration!), besides watching out for monsters that might go after your treasures (a rock mole ate my gold stash!).

Most pets must continually eat to stave off starvation. Besides a normal state of contentment, a pet has two degrees of hunger. Hungry is what a stethoscope and #chatting indicate. Starving means the pet "is confused from hunger" or "you feel worried about" it, and implies the pet's maximum hit points are reduced to 25%. Beyond that, it will cease to be your pet, either dying or, if on another level, becoming hostile.

Pets react differently to various foods according to how appealing they find it. From best to worst, the grades of food are as follows.[1][2]

Food grade Internal name Effect
treat DOGFOOD A delicious treat suitable for training.[3] Will make pets follow more closely.[4]. Pets will "catch" it, which is purely cosmetic.[5]
good CADAVER Will be eaten happily.[6]
hungry ACCFOOD Will be eaten if hungry,[7] but the pet will seek it out only if starving.[8] (Try throwing the food at the pet.) The minimum food grade needed for taming.[9] The worst quality food that will to suppress the message "Foo moves only reluctantly."[10]
starving MANFOOD (ACCFOOD when starving) Will be eaten only if starving.[11] Otherwise, the pet wants to apport the food.[12]
inedible MANFOOD, APPORT, POISON, UNDEF, TABU Will be left untouched even while the poor creature starves to death.

Untame domestic animals (dogs, cats, and horses) will not eat spontaneously but will react favorably to food you throw at them (apart from eggs, melons, and cream pies that hit their target and splat 99% of the time). If the food is considered grade "hungry" or better, the animal will eat it and become tame; this is an easy way to acquire pets. Any other comestible will not be eaten but will pacify the animal and remove any fear effects.[13][14]

Carnivores and herbivores evaluate food in very different ways, tabulated below. The obvious trend to bear in mind is that carnivores prefer meats and herbivores prefer vegetable matter. Omnivores generally apply the more favorable grade out of both.

Food Carnivores Herbivores
tripe ration, or meat ring/stick/ball/chunk treat inedible
safe egg (do not throw!) good inedible
safe corpse, non-vegan good inedible
safe corpse, vegan inedible good
apple, carrot starving treat
non-vegan people food: hungry starving
other vegan comestibles: starving hungry
tin inedible inedible
harmful corpse unless resistant: inedible inedible

Types of diet

Omnivore

Most humanoid monsters, including yourself initially, are omnivores. This diet is essentially a combination of carnivore and herbivore.

Carnivore

Carnivores are monsters that (when tamed) prefer to eat meat. Tripe and meat created with stone to flesh are considered treats. They will eat any safe corpses and eggs that they find on the ground. They will eat "people food" such as food rations, pancakes, or fortune cookies if they are hungry and vegetarian food such as fruit and melons if starving. They will not eat vegan corpses such as mold or lichens, nor will they eat tins.

Herbivore

Herbivores are monsters that (when tamed) prefer to eat vegetable matter such as fruit, vegetables, fungi, and other plants. Apples and carrots are considered treats. They will eat safe vegan corpses such as lichens, mold, shriekers, blobs, and jellies if they find them lying on the ground. They will also eat melons, oranges, pears, wolfsbane, garlic, kelp fronds, and so on, but only when hungry. If they are very hungry, they will eat some people food like food rations, pancakes, and lembas. They will never eat meat products, meaty corpses, eggs, or tins.

Metallivore

Metallivores subsist on metals, including not only metallic weapons and armor but also rings, amulets, and wands made of metal. In fact, a useful strategy is to polymorph into a metallivore to gain intrinsics by eating jewelry. They also eat tins of food, biting right through the tasty metal. Non-rustproof iron objects are considered treats. Unlike xorns and rock moles, rust monsters are restricted to the one metal that can rust, iron.

Metallivorous monsters and players do not get hungry (unless they also eat meat or vegetables), but ring and amulet hunger still apply.

Inediate

Inediate monsters do not need to eat any kind of food to stay alive, and cannot eat anything. Most monsters that are undead, demonic, angelic, or otherwise magical in nature are inediate.

Special cases

Several monsters have unique diets.

None of these monsters need to eat to stay alive.

Internals

Internally, the diet of a monster type is indicated by the flags M1_CARNIVORE and M1_HERBIVORE; both flags are set for an omnivore, and neither is set for inediates. The M1_METALLIVORE flag denotes a metallivore. Interestingly, a monster with M1_METALLIVORE but not M1_CARNIVORE or M1_HERBIVORE is considered inediate for in-game purposes.

Slash'EM Extended

Slash'EM Extended features lithivorous monsters. Lithivores subsist on stones—not only rocks and gems, but also any other items made of mineral, bone, gemstone, or glass. Polymorphing into a lithivore allows the player to gain intrinsics by eating jewelry. Lithic objects are considered treats for lithivores.

As of version v36, both lithivores and metallivores will get hungry even if they can't eat anything else.

See also

References

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.