]> granicus.if.org Git - nethack/commitdiff
eating mimic corpses
authornethack.rankin <nethack.rankin>
Mon, 21 Oct 2002 08:19:17 +0000 (08:19 +0000)
committernethack.rankin <nethack.rankin>
Mon, 21 Oct 2002 08:19:17 +0000 (08:19 +0000)
     Don't mimic gold if you are Unchanging at the time you eat a
mimic corpse.

doc/fixes34.1
src/eat.c

index 7887f1286c303f1b1e2057572bfa6b96d3c81ca8..d3a5afb4ad0ca58936b9734e1802e4117474d683 100644 (file)
@@ -284,6 +284,7 @@ detect attempt to swap places with big pet through narrow opening
 stinking clouds in bones files do not get their ttl set reasonably
 stinking clouds in bones files may incorrectly set player_inside
 breaking wand of digging on a drawbridge shouldn't dig/hole a pit in the bridge
+avoid mimicking gold when the character has the Unchanging attribute
 
 
 Platform- and/or Interface-Specific Fixes
index 6ac56f807b27783ff82ef39c4ffd8f94c1131f10..821e293921ed01f148753b7a19616a6597373677 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -834,7 +834,7 @@ register int pm;
                /* fall into next case */
            case PM_SMALL_MIMIC:
                tmp += 20;
-               if (youmonst.data->mlet != S_MIMIC) {
+               if (youmonst.data->mlet != S_MIMIC && !Unchanging) {
                    char buf[BUFSZ];
                    You_cant("resist the temptation to mimic a pile of gold.");
 #ifdef STEED