out to be a bug…We might want a 'bool inv_prefix' argument to name(), or an appropriate description_type.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1479 c06c8d41-db1a-0410-9941-cceddc491573
4SAYTYAEYZY4Q4JMCHC6Q3KRO65C6O3M26QI5SLNZN2SD3AQPQQAC
text = i.name(DESC_NOCAP_A, false);
if ( in_inventory(i) && i.base_type != OBJ_GOLD )
{
// We need to do this in order to get the 'wielded' annotation.
// We then toss out the first four characters, which look
// like this: "a - ". Ow. FIXME.
text = i.name(DESC_INVENTORY_EQUIP, false).substr(4);
}
else
text = i.name(DESC_NOCAP_A, false);