From: Pasi Kallinen Date: Thu, 2 Jun 2016 13:35:21 +0000 (+0300) Subject: Show in inventory which monster a leash is attached to X-Git-Tag: NetHack-3.6.1_RC01~711 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8240db344517b1d8c432f69dc1c3eee9e845036d;p=nethack Show in inventory which monster a leash is attached to --- diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 2e58f8f23..c0c09b019 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -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 diff --git a/src/objnam.c b/src/objnam.c index fe6b25795..2d07b6ab4 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -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) {