Talk:Dog

From NetHackWiki
Revision as of 17:22, 29 August 2022 by Darth l33t (talk | contribs) (response)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Is this really true for peaceful dogs? IIRC, only hostile dogs/cats/horses will automatically be hungry, and hungry domestic animals will eat people food (and thereby be tamed).

"Throwing a meaty treat, a safe fresh meat-based corpse, or processed human food at a hostile or peaceful dog will tame it."

Tjr 14:07, 3 April 2009 (UTC)

yep, seems true. You never know it all. Tjr 21:57, 16 April 2009 (UTC)

Is there any difference between cats and dogs for gameplay purposes? Dr. 8-Bit 19:23, June 15, 2010 (UTC)

"During a full moon" - "You have a chance of not being able to tame dogs at night.". To the best of my knowledge there is no other difference in Vanilla. In SLASH'EM, pets will not commit cannibalism (unless starving IIRC), so a dog will not eat other d and a cat will not eat other f. -- Qazmlpok 19:36, June 15, 2010 (UTC)
Dogs seem to stay closer to the player. I don't know why. Tjr 14:06, June 16, 2010 (UTC)

I thought I just found another "the devs think of everything", but it might have been RNG. After my level 4 Wizard cast Sleep on a (hostile) dog, it would wake after my second attack, while other monsters were staying asleep for 4-6 turns. I was wondering if this was related to the phrase: "Let sleeping dogs lie" and dogs were more likely to awake if attacked while asleep. This page and the Sleep spell page don't mention anything. If it was random, I think it would be a good addition to the game. Qwiption (talk) 21:30, 28 August 2022 (UTC)

The relevant code in uhitm.c is:
if (mtmp->msleeping) {
   mtmp->msleeping = 0;
   tmp += 2;
}
if (!mtmp->mcanmove) {
   tmp += 4;
   if (!rn2(10)) {
       mtmp->mcanmove = 1;
       mtmp->mfrozen = 0;
   }
}
The first block is for a monster that spawns asleep (nymphs, jabberwocks, throne room monsters etc.), while the second is a monster that was put to sleep (wand, spell, sleeping gas trap etc.). In neither case does the monster's species matter, so I'd say it's a coincidence. --Darth l33t (talk) 17:21, 29 August 2022 (UTC)