No longer show the long description of a randart's base item in the dump, instead show the base item name in brackets (such as "[amulet of warding]"). Turfed out things like item weight descriptions that shouldn't infest chardumps anyway.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4863 c06c8d41-db1a-0410-9941-cceddc491573
JZSJAFHPIC5L6BVNOE3CWEI3IMUOUE7IVEPIKVSLS5KVGJLQBDLQC
7BBEAPSUBQMBK4XC2Q6YJ2JPSVSPCSBJUYXM6EWXHNTQG4AEJX3QC
JSDYXAWLSPKDGWGT2K2CSKZQHDWJPFYRA3S5G2HPXDQPAWPZFFRQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
2OQFLBVWCTXCWUPSDM76KNXTNC3YPAKRI5KLDAEU4KQLN4DEOLYQC
CNBEMJYK6RATHVHUXN5RFKJCRHZJUCPOGHKWPVD4QLVNDNLDDCFQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
VCG3BRIYRTNNWYC3LOXD6KFGXOX37HAFW2HNV7WXVG2V7EUHLDZQC
KHOLX4BOE2MYV65W6DZHB7QZS5MH2L7TCBVWX2WAGPMZBGU4B7LAC
RN2DSYJRJ55J7S2VBEYCOAINFU4VDBMWDJIYJG326BSLYOFDNHGAC
TX3LTXGB7TJ2QHLW2TEW6XTCTOW5A3KTZGBPBRTDTUYOZFFT3NLAC
2KTJHQUX2LTU2BCLS5YXVRRKMOYKKIZAPF2LBKORFGSHEN5IO3IAC
SCZCQPNBQG2GXZ76LCEYOMB4QMZGI6YV7LJEC7ZVBUG27KLO564AC
NLQFJJMMV55UZOFAKWAQ4FQSUEO5YDYF2NCUHCBPCDBLTRL776RAC
T7GULEUSVPY445FZAYPNTGCXYW3CKC5RQ2Q4KS7WF5W6LJV55YUQC
case ISFLAG_DWARVEN:
description += "$It is well-crafted and very durable.";
description += "$Dwarves are more deadly with it";
break;
case ISFLAG_ELVEN:
description += "$Elves are more accurate with it";
break;
case ISFLAG_ORCISH:
description += "$Orcs are more deadly with it";
break;
}
switch (get_equip_race( item ))
{
case ISFLAG_DWARVEN:
description += "$It is well-crafted and very durable.";
description += "$Dwarves are more deadly with it";
break;
case ISFLAG_ELVEN:
description += "$Elves are more accurate with it";
break;
case ISFLAG_ORCISH:
description += "$Orcs are more deadly with it";
break;
}
if (launcher)
{
description += ", and it is most deadly when used with ";
description += racial_description_string(item);
description += "ammunition";
if (launcher)
{
description += ", and it is most deadly when used with ";
description += racial_description_string(item);
description += "ammunition";
}
description += ".";
if (item_type_known(item))
description << "["
<< item.name(DESC_DBNAME, true, false, false)
<< "]";
}
else
{
std::string db_name = item.name(DESC_DBNAME, true, false, false);
std::string db_desc =
getLongDescription(db_name, is_artefact(item));
if (db_desc == "")
description << "[ERROR: no desc for item name '" << db_name
<< "']$";
if (item_type_known(item))
{
description << "[ERROR: no desc for item name '" << db_name
<< "']$";
}
else
{
description << article_a(item.name(DESC_CAP_A, true,
false, false), false);
description << ".$";
}
description << article_a(item.name(DESC_CAP_A, true,
false, false), false);
description << ".$";
// Get rid of newline at end of description, so that
// either the wand "no charges left" or the meat chunk
// "unpleasant" description can follow on the same line.
// Same for missiles' descriptions.
description.seekp(description.tellp() - (std::streamoff)1);
description << " ";
}
else
description << db_desc;
if (item.base_type == OBJ_WANDS
|| item.base_type == OBJ_MISSILES
|| item.base_type == OBJ_FOOD && item.sub_type == FOOD_CHUNK)
{
// Get rid of newline at end of description, so that
// either the wand "no charges left" or the meat chunk
// "unpleasant" description can follow on the same line.
// Same for missiles' descriptions.
description.seekp(description.tellp() - (std::streamoff)1);
description << " ";
description << "$$It";
if (item_known_cursed( item ))
description << " has a curse placed upon it, and it";
if (verbose)
{
description << "$$It";
if (item_known_cursed( item ))
description << " has a curse placed upon it, and it";
const int mass = item_mass( item );
description << " weighs around " << (mass / 10)
<< "." << (mass % 10)
<< " aum. "; // arbitrary unit of mass
const int mass = item_mass( item );
description << " weighs around " << (mass / 10)
<< "." << (mass % 10)
<< " aum. "; // arbitrary unit of mass
if ( is_dumpable_artefact(item, false) )
{
if (item.base_type == OBJ_ARMOUR || item.base_type == OBJ_WEAPONS)
description << "$$This ancient artefact cannot be changed "
"by magic or mundane means.";
else
description << "$$It is an ancient artefact.";
if ( is_dumpable_artefact(item, false) )
{
if (item.base_type == OBJ_ARMOUR
|| item.base_type == OBJ_WEAPONS)
{
description << "$$This ancient artefact cannot be changed "
"by magic or mundane means.";
}
else
{
description << "$$It is an ancient artefact.";
}
}