10% chance for miasma (Erik.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2845 c06c8d41-db1a-0410-9941-cceddc491573
UFWUMT4IRLCXZD6ERXU7UZ2QWMTCK7QOFWL4JNCIG7Z2HL7KE5LAC
int temp_rand = random2(9);
strcpy(info, (temp_rand == 0) ? "human" :
(temp_rand == 1) ? "rat" :
(temp_rand == 2) ? "goblin" :
(temp_rand == 3) ? "elf" :
(temp_rand == 4) ? "goat" :
(temp_rand == 5) ? "sheep" :
(temp_rand == 6) ? "gnoll" :
(temp_rand == 7) ? "sheep"
: "yak");
mprf("Yummy - fresh %s blood!", info);
lessen_hunger(1000, true);
mpr("You feel better.");
inc_hp(1 + random2(10), false);
const char* names[] = { "human", "rat", "goblin",
"elf", "goat", "sheep",
"sheep", "gnoll", "yak" };
mprf("Yummy - fresh %s blood!", RANDOM_ELEMENT(names));
lessen_hunger(1000, true);
mpr("You feel better.");
inc_hp(1 + random2(10), false);
bool likes_blood = (you.omnivorous()
|| you.mutation[MUT_CARNIVOROUS]);
if (likes_blood)
if (you.omnivorous() || you.mutation[MUT_CARNIVOROUS])