]> granicus.if.org Git - nethack/commitdiff
abuse wisdom in keeping with Rider eating msg
authornhmall <mjnh@persona.ca>
Fri, 13 Mar 2015 05:02:09 +0000 (01:02 -0400)
committernhmall <mjnh@persona.ca>
Fri, 13 Mar 2015 05:02:09 +0000 (01:02 -0400)
The death message for eating a Rider is "unwisely tried to eat...", but
it doesn't abuse Wisdom (potentially relevant if you lifesave)

doc/fixes35.0
src/eat.c

index 4ad731e36609356d95f95a66da70a7e6b9c360e3..3ac75e94ee4eee745782ca53c8be56bf62832f05 100644 (file)
@@ -874,6 +874,7 @@ remove 'if (Deaf)' guards preceding You_hear which already checks deafness
 tse a menu to loot multiple containers
 do_look() in post-3.4.3 used glyph prior to setting it in pager.c
 charge for a boulder that fills a pit in shop
+abuse wisdom in keeping with Rider eating message
 
 
 Platform- and/or Interface-Specific Fixes
index 320fa23518379db37ca90f89eb0d055e0aef6ccc..793925fb71b6330b76bbe5b864c081b28a8ee916 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -659,6 +659,8 @@ register int pm;
                            mons[pm].mname);
                    killer.format = NO_KILLER_PREFIX;
                    done(DIED);
+                   /* life-saving needed to reach here */
+                   exercise(A_WIS, FALSE);
                    /* It so happens that since we know these monsters */
                    /* cannot appear in tins, context.victual.piece will always */
                    /* be what we want, which is not generally true. */