'R' fix
A patch in late January to suppress suits as likely candidates for the 'R' command when wearing a cloak also unintentionally suppressed rings when wearing non-cursed (or not yet known to be cursed) gloves. Cloak always blocks suit removal; gloves only block ring removal if cursed.
This commit is contained in:
@@ -1236,7 +1236,8 @@ register const char *let, *word;
|
||||
/* worn armor (shirt, suit) covered by worn armor (suit, cloak)
|
||||
or accessory (ring) covered by cursed worn armor (gloves) */
|
||||
|| (taking_off(word)
|
||||
&& inaccessible_equipment(otmp, (const char *) 0, FALSE))
|
||||
&& inaccessible_equipment(otmp, (const char *) 0,
|
||||
(boolean) (otmp->oclass == RING_CLASS)))
|
||||
|| (!strcmp(word, "write on")
|
||||
&& (!(otyp == SCR_BLANK_PAPER || otyp == SPE_BLANK_PAPER)
|
||||
|| !otmp->dknown || !objects[otyp].oc_name_known))
|
||||
|
||||
Reference in New Issue
Block a user