Difference between revisions of "Domestic animal"

From NetHackWiki
Jump to navigation Jump to search
(Feeding: in-between save: while correcting the food quality table, put internal designators there)
(Feeding: The facts are now straight. Someone else will have to make it pretty.)
Line 22: Line 22:
 
== Feeding ==
 
== Feeding ==
  
These creatures have particular [[diet]]s and will react differently to various foods 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>
+
These creatures have particular [[diet]]s and will react differently to various foods 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>
 +
 
 +
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%.
 +
 
 +
Non-tame creates never eat, except [[metallivore]]s, [[ghoul]]s, [[gelatinous cube]]s, and hulks chewing on rock.
  
 
{|class="prettytable"
 
{|class="prettytable"
 
!Food grade
 
!Food grade
 +
!Internal name
 
!Effect
 
!Effect
 
|-
 
|-
 
|'''treat'''
 
|'''treat'''
|A delicious [[treat]] suitable for [[apport|training]].
+
|DOGFOOD
 +
|A delicious [[treat]] suitable for [[apport|training]].<ref>{{sourcecode|Dogmove.c|170}}</ref> Will make pets follow more closely.<ref>{{sourcecode|Dogmove.c|427}}</ref>. Pets will "catch" it, which is purely cosmetic.<ref>{{sourcecode|Dog.c|780}}</ref>
 
|-
 
|-
 
|'''good'''
 
|'''good'''
|Will be eaten happily.
+
|CADAVER
 +
|Will be eaten happily.<ref>{{sourcecode|Dogmove.c|297}} and {{sourcecode|Dogmove.c|675}}</ref>
 
|-
 
|-
 
|'''acceptable'''
 
|'''acceptable'''
|Will be eaten if hungry. (The minimum food grade needed for taming.)
+
|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.<ref>{{sourcecode|Dogmove.c|297}}</ref> The minimum food grade needed for taming.<ref>{{sourcecode|Dog.c|808}}</ref> The worst quality food that will to suppress the message "[[Foo]] moves only reluctantly."<ref>{{sourcecode|Dogmove.c|377}}</ref>
 
|-
 
|-
 
|yucky
 
|yucky
|Will be eaten only if tame and starving, as indicated by "Foo is confused from hunger." or "You feel worried about foo."
+
|MANFOOD (unless 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.<ref>[[Source:Dogmove.c#line377]]</ref>
 
|-
 
|-
 
|''inedible''
 
|''inedible''
 +
|MANFOOD, APPORT, POISON, UNDEF, TABU<!--Yes, MANFOOD features twice because dogfood reclassifies only some items when starving.-->
 
|Will be left untouched even while the poor creature starves to death.
 
|Will be left untouched even while the poor creature starves to death.
 
|}
 
|}
Line 52: Line 62:
 
|-
 
|-
 
|[[tripe ration]], or meat [[meat ring|ring]]/[[meat stick|stick]]/[[meatball|ball]]/[[huge chunk of meat|chunk]]
 
|[[tripe ration]], or meat [[meat ring|ring]]/[[meat stick|stick]]/[[meatball|ball]]/[[huge chunk of meat|chunk]]
|'''treat'''DOGFOOD
+
|'''treat'''
|''inedible''MANFOOD
+
|''inedible''
 
|-
 
|-
 
|safe [[egg]] (do not throw!)
 
|safe [[egg]] (do not throw!)
|'''good'''CADAVER
+
|'''good'''
|''inedible''MANFOOD
+
|''inedible''
 
|-
 
|-
 
|safe [[corpse]], non-vegan
 
|safe [[corpse]], non-vegan
|'''good'''CADAVER
+
|'''good'''
|''inedible''MANFOOD
+
|''inedible''
 
|-
 
|-
 
|safe [[corpse]], [[vegan]]
 
|safe [[corpse]], [[vegan]]
|''inedible''MANFOOD
+
|''inedible''
|'''good'''CADAVER
+
|'''good'''
 
|-
 
|-
 
|[[clove of garlic]]
 
|[[clove of garlic]]
|yucky MANFOOD (ACCFOOD if starving)
+
|yucky
|'''acceptable''' ACCFOOD
+
|'''acceptable'''
 
|-
 
|-
 
|[[tin]]
 
|[[tin]]
|''inedible'' MANFOOD
+
|''inedible''
|''inedible'' MANFOOD
+
|''inedible''
 
|-
 
|-
 
|[[apple]], [[carrot]]
 
|[[apple]], [[carrot]]
|yucky MANFOOD (ACCFOOD if starving)
+
|yucky
|'''treat''' DOGFOOD
+
|'''treat'''
 
|-
 
|-
 
|[[banana]]
 
|[[banana]]
|yucky MANFOOD (ACCFOOD if starving)
+
|yucky
|'''acceptable''' ACCFOOD
+
|'''acceptable'''
 
|-
 
|-
|people food:
+
|non-vegan people food:
 
*[[lump of royal jelly]]
 
*[[lump of royal jelly]]
 
*[[cream pie]] (do not throw!)
 
*[[cream pie]] (do not throw!)
Line 91: Line 101:
 
*[[lembas wafer]]
 
*[[lembas wafer]]
 
*[[food ration|food]]/[[cram ration|cram]]/[[K-ration|K]]-/[[C-ration|C]]-ration
 
*[[food ration|food]]/[[cram ration|cram]]/[[K-ration|K]]-/[[C-ration|C]]-ration
|'''acceptable''' ACCFOOD
+
|'''acceptable'''
|yucky MANFOOD (ACCFOOD if starving)
+
|yucky
 
|-
 
|-
|other [[comestibles]]:
+
|other [[vegan]] [[comestibles]]:
 
*[[kelp frond]]
 
*[[kelp frond]]
 
*[[eucalyptus leaf]]
 
*[[eucalyptus leaf]]
Line 102: Line 112:
 
*[[sprig of wolfsbane]]
 
*[[sprig of wolfsbane]]
 
*[[slime mold]]
 
*[[slime mold]]
|yucky MANFOOD (ACCFOOD if starving)
+
|yucky
|'''acceptable''' ACCFOOD
+
|'''acceptable'''
 
|-
 
|-
 
|Acidic, poisonous, petrifying, old<ref>50 turns or older. Lizards and lichens never age.</ref> or Rider [[corpse]] unless resistant
 
|Acidic, poisonous, petrifying, old<ref>50 turns or older. Lizards and lichens never age.</ref> or Rider [[corpse]] unless resistant

Revision as of 00:18, 11 January 2011

A domestic animal is one which can be pacified or tamed by throwing food at it. They are:[1]

Additionally, a chameleon in the form of any of these can be tamed with the appropriate food, remaining tame even as it changes forms.

Pacifying and taming

Throwing any kind of food--except an egg or cream pie--at a domestic animal will make it peaceful and remove any fear effects, even if it is not something that the animal would normally eat.[2][3] For example, a dog could be made peaceful by throwing a carrot or a lichen corpse, and a horse could be made peaceful by throwing a food ration or a gnome corpse.

If the food is considered a treat, a suitable corpse, or otherwise “acceptable” food, the animal will become tame and will eat the food. The animal is not considered starving for food classification purposes, but “acceptable” foodstuffs (which pets normally eat only if hungry) are sufficient for taming.[4]

Feeding

These creatures have particular diets and will react differently to various foods according to how appealing they find it. From best to worst, the grades of food are as follows.[5][6]

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%.

Non-tame creates never eat, except metallivores, ghouls, gelatinous cubes, and hulks chewing on rock.

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

Generally, the carnivores (cats and dogs) prefer meats, while the herbivores (horses) prefer produce. Corpses and eggs that would be harmful to the animal if eaten--being poisonous, acidic, or petrifying--are treated as inedible.

Food Carnivores (cats/dogs) Herbivores (horses)
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
clove of garlic yucky acceptable
tin inedible inedible
apple, carrot yucky treat
banana yucky acceptable
non-vegan people food: acceptable yucky
other vegan comestibles: yucky acceptable
Acidic, poisonous, petrifying, old[17] or Rider corpse unless resistant inedible inedible

SLASH'EM

SLASH'EM adds the following domestic animals:[18]

Also, some animals in SLASH'EM can be tamed or pacified with specific foods; throwing other kinds of comestibles at them has no pacifying effect.[20]

Tameable with cheese:

Tameable with carrots:

Tameable with bananas: all apelike creatures (monsters represented by Y)

See also

References

  1. monst.c: domestic monsters have the M2_DOMESTIC flag.
  2. dothrow.c, line 1383 (see also definition of befriend_with_obj at mondata.h, line 190)
  3. dog.c, line 756: "worst case, at least it'll be peaceful" (see also dogfood above)
  4. dog.c, line 808; see also edog.h and dogfood in edog.c
  5. Source:Edog.h#line10 for definition of food grades
  6. Source:Dog.c#dogfood for food classification
  7. Dogmove.c, line 170
  8. Dogmove.c, line 427
  9. Dog.c, line 780
  10. Dogmove.c, line 297 and Dogmove.c, line 675
  11. Dogmove.c, line 675 Dog.c, line 780, Dothrow.c, line 1382
  12. Dogmove.c, line 297
  13. Dog.c, line 808
  14. Dogmove.c, line 377
  15. Source:Dog.c#dogfood technically reclassifies some of it as ACCFOOD when starving.
  16. Source:Dogmove.c#line377
  17. 50 turns or older. Lizards and lichens never age.
  18. monst.c in SLASH'EM 0.0.7E7F2
  19. dog.c in SLASH'EM 0.0.7E7F2, line 734: "Koalas can only eat eucalyptus"
  20. mondata.h in SLASH'EM 0.0.7E7F2, line 239: "[Tom] Dorothy wants more pets..."


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.