Show in inventory which monster a leash is attached to

This commit is contained in:
Pasi Kallinen
2016-06-02 16:35:21 +03:00
parent 894d6c6859
commit 8240db3445
2 changed files with 3 additions and 1 deletions

View 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

View 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) {