hungry and very full are now always displayed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2141 c06c8d41-db1a-0410-9941-cceddc491573
5S3CAGZSAQC3CYFPM5TQFPHW5IE2OZRVFJMICQZXHBZRGKFMNPRQC
3D6NWJ44UYHLZMD3BOQIWXJUEGITAVCHK6Z2WWDQONVQC4HSBRXQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
D77K7ISUWRLGNSQGYH5P2KEJZCNYQHDZC5AMLSKTXVBIRNG6F5KQC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
switch (you.hunger_state)
{
case HS_ENGORGED:
textcolor( LIGHTGREEN );
cprintf( "Engorged" );
break;
case HS_VERY_FULL:
textcolor( GREEN );
cprintf( "Very Full" );
break;
case HS_FULL:
textcolor( GREEN );
cprintf( "Full" );
break;
case HS_SATIATED:
break;
case HS_HUNGRY:
textcolor( YELLOW );
cprintf( "Hungry" );
break;
case HS_ENGORGED:
textcolor( LIGHTGREEN );
cprintf( "Engorged" );
break;
case HS_STARVING:
textcolor( RED );
cprintf( "Starving" );
break;
}
}
else
{
switch (you.hunger_state)
{
case HS_ENGORGED:
textcolor( LIGHTGREEN );
cprintf( "Engorged" );
break;
case HS_SATIATED:
break;
// Stop the travel command, if it's in progress and we just got hungry
if (Options.detailed_hunger)
{
if (newstate < HS_SATIATED)
interrupt_activity( AI_HUNGRY );
}
else
{
// Don't interrupt on changing from hungry to very hungry
// or very hungry to near starving if they don't want
// detailed hunger info.
if (newstate == HS_STARVING ||
(newstate < HS_SATIATED && oldstate >= HS_SATIATED))
interrupt_activity( AI_HUNGRY );
// Don't inform user of changing from hungry to very hungry
// or very hungry to near starving if they don't want
// detailed hunger info.
if (newstate < HS_SATIATED && oldstate < HS_SATIATED &&
newstate != HS_STARVING)
suppress_message = true;
}
if (newstate < HS_SATIATED)
interrupt_activity( AI_HUNGRY );
if (Options.detailed_hunger)
{
switch (you.hunger_state)
{
case HS_STARVING:
mpr("You are starving!", MSGCH_FOOD);
learned_something_new(TUT_YOU_STARVING);
break;
case HS_HUNGRY:
mpr("You are feeling hungry.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
case HS_VERY_HUNGRY:
mpr("You are feeling very hungry.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
case HS_NEAR_STARVING:
mpr("You are near starving.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
default:
break;
}
}
else
switch (you.hunger_state)
switch (you.hunger_state)
{
case HS_STARVING:
mpr("You are starving!", MSGCH_FOOD);
learned_something_new(TUT_YOU_STARVING);
break;
case HS_HUNGRY:
case HS_VERY_HUNGRY:
case HS_NEAR_STARVING:
mpr("You are feeling hungry.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
default:
break;
}
case HS_STARVING:
mpr("You are starving!", MSGCH_FOOD);
learned_something_new(TUT_YOU_STARVING);
break;
case HS_HUNGRY:
mpr("You are feeling hungry.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
case HS_VERY_HUNGRY:
mpr("You are feeling very hungry.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
case HS_NEAR_STARVING:
mpr("You are near starving.", MSGCH_FOOD);
learned_something_new(TUT_YOU_HUNGRY);
break;
default:
break;