refine PR #946 - named armor

Move the new stuff from PR #946 out of xname() into new routine
armor_simple_name().

Noticed while testing:  tweak 'call object type' so that it doesn't
list instances of pre-discovered armor as likely candidates since
assigning a name to such wasn't showing up in the discoveries list.

Add "silver shield" as wishing synonym for "polished silver shield".
This commit is contained in:
PatR
2022-12-14 07:37:04 -08:00
parent 099e2f3d05
commit daeec9291c
4 changed files with 58 additions and 29 deletions

View File

@@ -1489,6 +1489,9 @@ call_ok(struct obj *obj)
if (!obj || !objtyp_is_callable(obj->otyp))
return GETOBJ_EXCLUDE;
if (!interesting_to_discover(obj->otyp))
return GETOBJ_DOWNPLAY;
return GETOBJ_SUGGEST;
}