Talk:Domestic animal

From NetHackWiki
Revision as of 18:08, 6 January 2011 by Ilmari Karonen (talk | contribs) (wrong line)
Jump to navigation Jump to search

What food tames animals?

The article claims hostile animals are not "hungry", and therefore accept only treats DOGFOOD (and not "acceptable food" ACCFOOD). However, I routinely tame cats and dogs with food rations. Somehow, Source:Dog.c#line781 seems to evaluate EDOG(mtmp)->hungrytime as zero for non-tame monsters. Why? --Tjr

Looks like that branch is only taken if the monster is tame to begin with (line 776). The relevant check for taming new pets seems to be on line 808 (don't tame if dogfood(mtmp, obj) >= MANFOOD, or equivalently tame if code>dogfood(mtmp, obj) <= ACCFOOD). --Ilmari Karonen 18:08, 6 January 2011 (UTC)