From 7e3586acaddb92c70ea55c10d788375395c9aa7e Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 21 Oct 2025 14:06:16 -0700 Subject: [PATCH] ring item action bit for 'P' If the hero is in a form without fingers but is wearing two rings (put on before shape change), examining inventory and selecting a third ring shows an item action menu entry of "P - [both ring fingers in use]" (as of a couple of days ago). Change that to plug in appropriate body part for finger. --- src/invent.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/invent.c b/src/invent.c index 913bc353f..5d62567f2 100644 --- a/src/invent.c +++ b/src/invent.c @@ -3343,8 +3343,11 @@ itemactions(struct obj *otmp) Strcpy(buf, !uamul ? "Put this amulet on" : "[already wearing an amulet]"); } else if (otmp->oclass == RING_CLASS || otmp->otyp == MEAT_RING) { - Strcpy(buf, (!uleft || !uright) ? "Put this ring on" - : "[both ring fingers in use]"); + if (!uleft || !uright) + Strcpy(buf, "Put this ring on"); + else + Sprintf(buf, "[both ring %s in use]", + makeplural(body_part(FINGER))); } else if (otmp->otyp == BLINDFOLD || otmp->otyp == TOWEL || otmp->otyp == LENSES) { if (ublindf)