another uhandedness bit

For the accessories section of '*' and perminv_mode=InUse, show the
ring on main hand first (after amulet) and the one on off hand after
(before blindfold).  Main hand ring is more significant due to the
potential of a one-handed weapon becoming cursed, preventing it from
being removed.
This commit is contained in:
PatR
2023-12-04 00:54:42 -08:00
parent 6e785f4d8c
commit 2713853f28
3 changed files with 6 additions and 6 deletions

View File

@@ -132,8 +132,8 @@ inuse_classify(Loot *sort_item, struct obj *obj)
/* "Accessories" */
++altclass; /* 4 */
USE_RATING(w_mask & WORN_BLINDF);
USE_RATING(w_mask & LEFT_RING);
USE_RATING(w_mask & RIGHT_RING);
USE_RATING(w_mask & (ULEFTY ? RIGHT_RING : LEFT_RING)); /* off hand */
USE_RATING(w_mask & (URIGHTY ? RIGHT_RING : LEFT_RING)); /* main hand */
USE_RATING(w_mask & WORN_AMUL);
/* if we get here, the USE_RATING() checks failed to find a match */

View File

@@ -4011,10 +4011,9 @@ boomhit(struct obj *obj, coordxy dx, coordxy dy)
register int i, ct;
int boom; /* showsym[] index */
struct monst *mtmp;
boolean counterclockwise = URIGHTY; /* URIGHTY = right-handed throw
else ULEFTY = left-handed throw */
boolean counterclockwise = URIGHTY; /* ULEFTY => clockwise */
/* counterclockwise traversal patterns:
/* counterclockwise traversal patterns, from @ to 1 then on through to 9
* ..........................54.................................
* ..................43.....6..3....765.........................
* ..........32.....5..2...7...2...8...4....87..................