]> granicus.if.org Git - nethack/commit
pet fodder
authornethack.rankin <nethack.rankin>
Fri, 13 Sep 2002 05:31:54 +0000 (05:31 +0000)
committernethack.rankin <nethack.rankin>
Fri, 13 Sep 2002 05:31:54 +0000 (05:31 +0000)
commit6f63f81b86baca4060e3bb0bbb1862b971a061e7
treece35c90c9fa3c365f62e128d48dabac0c2375167
parentd916769a77d23bc5933f5182d2ec36b0477bbef8
pet fodder

     Allow starving pets to consume items they wouldn't ordinarily
eat.  Carnivores will eat fruits and vegetables--such as they are--
and herbivores will eat assorted rations.  Even though eating such
rations doesn't violate vegetarian conduct for the character, horses
would never eat them.

     This change should allow players to keep mundane steeds alive
much longer.  The new behavior doesn't kick in until the pet has
been classified as starving though; it doesn't affect ones who are
merely hungry.

     This also gives the reason why a starving pet has died instead
of just saying "<pet> dies" whenever it starved with hit points left.
doc/fixes34.1
src/dog.c
src/dogmove.c