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.
This commit is contained in:
PatR
2025-10-21 14:06:16 -07:00
parent 966145a61d
commit 7e3586acad

View File

@@ -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)