more '*' and perminv_mode==inuse

If any items are in use and hero isn't wielding anything, include
| - bare hands
in the primary weapon slot of the display of used items as an alert.
More useful for perm_invent than for #seeall.

If no items at all are in use, continue to show "not using any items"
without any specific weaponless alert.

When sortloot() is called for inuse_only, pass a filter that screens
out items which aren't in use so they won't be needlessly sorted.
This commit is contained in:
PatR
2023-11-25 14:11:43 -08:00
parent 99ccb7a26f
commit 6c5b5c0688
2 changed files with 137 additions and 90 deletions

View File

@@ -1178,6 +1178,7 @@ extern struct obj *o_on(unsigned int, struct obj *);
extern boolean obj_here(struct obj *, coordxy, coordxy);
extern boolean wearing_armor(void);
extern boolean is_worn(struct obj *);
extern boolean is_inuse(struct obj *);
extern struct obj *g_at(coordxy, coordxy);
extern boolean splittable(struct obj *);
extern int any_obj_ok(struct obj *);