(view screen). It's now consistent for known artefacts, and also consistent for non-artefacts and unID'd artefacts. The two consistencies still differ by one linebreak, but that's really minor, and for the short descriptions (potions, scrolls, food etc.) it looks better this way anyway, I think.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3544 c06c8d41-db1a-0410-9941-cceddc491573
7BBEAPSUBQMBK4XC2Q6YJ2JPSVSPCSBJUYXM6EWXHNTQG4AEJX3QC
TX3LTXGB7TJ2QHLW2TEW6XTCTOW5A3KTZGBPBRTDTUYOZFFT3NLAC
24KZBI2SCCLXNI7RFUHHYASEN6CVCRI3H35XK4VMT7KU3OP25MFQC
ZI4SHIK3UYEIVMG4IHMNTKFEMHAMEZHLPNX5AFMCJQNWT53ED6JQC
2DM6UVFM6ZMNTRY462IAI7DEPRKPISF4RYGGJNYHA4SEUACXNBBAC
L4DP66BD4QTDDLQ36DNSAJ4C3Y6F4IZXLJ2YMNMD5RB5SJXZGHUAC
2OQFLBVWCTXCWUPSDM76KNXTNC3YPAKRI5KLDAEU4KQLN4DEOLYQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
VNHFP63ZLLZU3A3PLXP4BITX57DUIYDHFOHQYK3BOBHV3S64G26QC
V53DXVC5T3N6J47H2CNG4MMPRR4PHW4AIS66QNVTKJNNYTTTQL4AC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
3YCDYRPJWT4ZZSIURZYTSCWSOR7K5NPHJE7NNUGTCZG23UH32OBQC
5V47S4NNTHWTSAHV3YLO2VGH7JTUIYJ3GBPDN5ZM4UQALT2ZEXDQC
X7X6JKZXOCG6NVLZLGNCQDFFXW4H3S77BVAJ5LS7ZHZ4GQVLMOMAC
3VO4LT3UMO752LBBVQIYMEY2GILQN7XJT254WQABE55IW2X423GQC
QVVC7AYGVA6U64PTNA7L27422NLMO327P22BQKXEVIMPZHIHO7MQC
TGKAO3VB562WPSNRDP2MHE6FGMIB75A6254APKTIPCO6DHLCFCZAC
B5OK4FEITJ6MUT7J76OJJH2TOPTZGG7J7UPIJ6Z6WA5FC526FLTAC
4UXFU3FZOCBSLDQ4S7MJKAE2H7VUHCNRDQMIY6NJ3PHYXWNGISDQC
34LEIRCHNNLI64TWLKUMVOYNGGJSFSSL7VZ4UPLS4ZG7BUTEV3PQC
GDRQMRZTPLRZYBEIJ5AXH3NVKKOQEB5HNG6VFBVZF6JWO7XCOBKQC
CNBEMJYK6RATHVHUXN5RFKJCRHZJUCPOGHKWPVD4QLVNDNLDDCFQC
W74555HMPXUQ72AGKBXC5P3STMMX5DZAW6ZESUDLNVJBCAG43PLAC
WCNEIYQ3FFHSAY7SX6JHQWS47GZH4PW4T4MTA6QMODZLFLUBSO3QC
6UPCB64Z2W243QR3JQD7WPQMPVNVBPYRG7GTGZK6LTKKBBSKBHZQC
2KTJHQUX2LTU2BCLS5YXVRRKMOYKKIZAPF2LBKORFGSHEN5IO3IAC
QKGDOYIYKE6B36ION5O2DRW65DWWPZMYNWJVH7LJJ7FPGGM2MYAQC
IHIJSWVOONSTA2WCHKW3YKBLETUQECFVBVLMET5SGQZ4C6U3GCUQC
VCG3BRIYRTNNWYC3LOXD6KFGXOX37HAFW2HNV7WXVG2V7EUHLDZQC
RN2DSYJRJ55J7S2VBEYCOAINFU4VDBMWDJIYJG326BSLYOFDNHGAC
TRZAZJJA5VQBJ65SO5H5DNSILIZEJHIZCBYEBHEATCT6ZSMWIFKQC
VMIKJGB6CSFVZS6VMQNP33ALEDEO2TARDICVGDJFMZ4WSPTV3LFAC
I7QLYOTE6DLQZM7YWUWYLKHRJRB2A3STQ42ALSRGQICEWKD2QTEQC
case HANDS_ONE:
description += "It is a one handed weapon";
break;
case HANDS_HALF:
description += "It can be used with one hand, or more "
"effectively with two (i.e. when not using a shield)";
break;
case HANDS_TWO:
description += "It is a two handed weapon";
break;
case HANDS_DOUBLE:
description += "It is a buggy weapon";
break;
}
switch (hands_reqd(item, player_size()))
{
case HANDS_ONE:
description += "It is a one handed weapon";
break;
case HANDS_HALF:
description += "It can be used with one hand, or more "
"effectively with two (i.e. when not using a shield)";
break;
case HANDS_TWO:
description += "It is a two handed weapon";
break;
case HANDS_DOUBLE:
description += "It is a buggy weapon";
break;
}
if (str_weight >= 8)
description += ", and it is best used by the strong";
else if (str_weight > 5)
description += ", and it is better for the strong";
else if (str_weight <= 2)
description += ", and it is best used by the dexterous";
else if (str_weight < 5)
description += ", and it is better for the dexterous";
description += ".";
if (str_weight >= 8)
description += ", and it is best used by the strong";
else if (str_weight > 5)
description += ", and it is better for the strong";
else if (str_weight <= 2)
description += ", and it is best used by the dexterous";
else if (str_weight < 5)
description += ", and it is better for the dexterous";
description += ".";
}
switch (get_equip_race( item ))
{
case ISFLAG_DWARVEN:
description += ", and it is most deadly when used with "
"dwarven ammunition";
break;
case ISFLAG_ELVEN:
description += ", and it is most deadly when used with "
"elven ammunition";
break;
case ISFLAG_ORCISH:
description += ", and it is most deadly when used with "
"orcish ammunition";
break;
}
description += ", and it is most deadly when used with ";
description += racial_description_string(item);
description += "ammunition";
if (item.plus > -3)
how = "a little worn";
else if (item.plus > -5)
how = "slightly damaged";
else if (item.plus > -7)
how = "damaged";
else
how = "heavily frayed";
std::string how;
if (item.plus > 1)
how = "brand-new";
else if (item.plus < 0)
{
if (item.plus > -3)
how = "a little worn";
else if (item.plus > -5)
how = "slightly damaged";
else if (item.plus > -7)
how = "damaged";
else
how = "heavily frayed";
}
description += "It looks ";
description += how;
description += ".";
case ISFLAG_DWARVEN:
description +=
"$It is more effective in conjunction with dwarven launchers.";
break;
case ISFLAG_ELVEN:
description +=
"$It is more effective in conjunction with elven launchers.";
break;
case ISFLAG_ORCISH:
description +=
"$It is more effective in conjunction with orcish launchers.";
break;
description += "It is more effective in conjunction with ";
description += racial_description_string(item);
description += "launchers.";
case ISFLAG_DWARVEN:
description +=
"$It is most deadly when thrown by dwarves.";
break;
case ISFLAG_ELVEN:
description +=
"$It is most deadly when thrown by elves.";
break;
case ISFLAG_ORCISH:
description +=
"$It is most deadly when thrown by orcs.";
break;
switch ( get_equip_race(item) )
{
case ISFLAG_DWARVEN:
description +=
"It is most deadly when thrown by dwarves.";
break;
case ISFLAG_ELVEN:
description +=
"It is most deadly when thrown by elves.";
break;
case ISFLAG_ORCISH:
description +=
"It is most deadly when thrown by orcs.";
break;
}
|| item.base_type == OBJ_JEWELLERY
|| item.base_type == OBJ_MISCELLANY
|| (item.base_type == OBJ_FOOD && item.sub_type == FOOD_CHUNK))
|| item.base_type == OBJ_MISSILES
|| item.base_type == OBJ_FOOD && item.sub_type == FOOD_CHUNK)