]> granicus.if.org Git - nethack/commitdiff
Show in inventory which monster a leash is attached to
authorPasi Kallinen <paxed@alt.org>
Thu, 2 Jun 2016 13:35:21 +0000 (16:35 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 2 Jun 2016 13:35:21 +0000 (16:35 +0300)
doc/fixes36.1
src/objnam.c

index 2e58f8f23bcc1a48746ddc7829262150d82145d3..c0c09b01926aa279b811a7f377fda0e333188fca 100644 (file)
@@ -282,6 +282,7 @@ when poly'd into a hider and engulfed, attempt to hide via #monster was blocked
        but feedback said "can't hide while held" rather than "while engulfed"
 various monster/object/food/gold/trap detections were inconsistent in how they
        behaved if performed while engulfed or underwater
+show in inventory which monster a leash is attached to
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index fe6b25795bc4cec0630d4df99cee1c01ecddcaa7..2d07b6ab4544a1e698b13eb1609994ec064a8bde 100644 (file)
@@ -908,7 +908,8 @@ boolean with_price;
             break;
         }
         if (obj->otyp == LEASH && obj->leashmon != 0) {
-            Strcat(bp, " (in use)");
+            Sprintf(eos(bp), " (attached to %s)",
+                    a_monnam(find_mid(obj->leashmon, FM_FMON)));
             break;
         }
         if (obj->otyp == CANDELABRUM_OF_INVOCATION) {