fire when a corpse is first seen, rather than when one is first picked up.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5289 c06c8d41-db1a-0410-9941-cceddc491573
5HF63O5IRRERI2V3SZEDHUNFHUF2B4RSVWQR6C6DR5JF5UYSROWAC
MCBXXIV6GICTZB56APSXMJEI63FVQWVZR3H2DRNMMFDH2XCGK4JAC
PL6I2CMSTHY5ZHWVMIQE5YTM5S5VPKBNZM6QJVHZSSKOJGIJ5W4AC
7NDXS36TE7QVXTXJWMYSVG5UHCCLPIO4VL6NXFGTDK3ZNKE3A2IAC
77H4BWWPPGLM3PLZH4QTAJRXIZTSDVNCOKZE223I437FN2UJ34RQC
LS5XCCGKQHSJQGWLWLGTP2F5OYWK4ND5AQQAGRN6H2HVBSXNCCZAC
7HA2754QW3SBCAJ5K6KUXNXXXIZB5BIBCFPLXADCXHH6EREKXHSAC
GL6SGPBZQPJBVGPOASYVCTAFXS7RNARR6Y5WZMIO5YCTB7ZJY4KAC
ACDPN464TK2LKLHSDN3YVRHAPF7WLSLLU3UHIYEXKFDEZPEU3XSQC
text << "You have picked up a corpse"
// NOTE: This is called when a corpse is first seen, rather than
// first picked up, since a new player might not think to pick
// up a corpse.
if (x <= 0 || y <= 0)
text << "Ah, a corpse!";
else
{
int i = igrd[x][y];
while (i != NON_ITEM)
{
if (mitm[i].base_type == OBJ_CORPSES)
break;
i = mitm[i].link;
}
if (i == NON_ITEM)
text << "Ah, a corpse!";
else
{
const item_def& item(mitm[i]);
text << "That ";
". When a corpse is lying on the ground, you can "
"<w>c</w>hop it up with a sharp implement. Once hungry you "
"can then <w>e</w>at the resulting chunks (though they may "
"not be healthy).";
text << "is a corpse.";
}
}
text << " When a corpse is lying on the ground, you "
"can <w>c</w>hop it up with a sharp implement. Once "
"hungry you can then <w>e</w>at the resulting chunks "
"(though they may not be healthy).";