diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-06 14:30:42 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-06 14:30:42 +0000 |
commit | e87dea4ec73e18578f93d82434660af8d2135904 (patch) | |
tree | f88f2c49f847595b35b367f896ae07c0a0b1d650 /crawl-ref/source/food.cc | |
parent | d6170bf64951aecfdd93eed709c4c9491ee9ee4c (diff) | |
download | crawl-ref-e87dea4ec73e18578f93d82434660af8d2135904.tar.gz crawl-ref-e87dea4ec73e18578f93d82434660af8d2135904.zip |
Tweak Vampires, part I
Better stats and aptitudes as suggested in David's post "The plan"
Minor modifications to starving/hungry/full messages. Generally change
Hungry to Thirsty, and Engorged to Alive. For now, the rest remains as
for the other species. Yes, this is nowhere near as radical as David'd
suggestions as those are confusing me immenseley, and I just can't code
that way.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3526 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index da11ab593a..294eb27e45 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -590,6 +590,14 @@ bool eat_food(bool run_hook, int slot) * * ************************************************** */ +static std::string how_hungry() +{ + if (you.hunger_state > HS_SATIATED) + return ("full"); + else if (you.species == SP_VAMPIRE) + return ("thirsty"); + return ("hungry"); +} static bool food_change(bool suppress_message) { @@ -638,11 +646,11 @@ static bool food_change(bool suppress_message) learned_something_new(TUT_YOU_HUNGRY); break; case HS_VERY_HUNGRY: - mpr("You are feeling very hungry.", MSGCH_FOOD); + mprf(MSGCH_FOOD, "You are feeling very %s.", how_hungry().c_str()); learned_something_new(TUT_YOU_HUNGRY); break; case HS_HUNGRY: - mpr("You are feeling hungry.", MSGCH_FOOD); + mprf(MSGCH_FOOD, "You are feeling %s.", how_hungry().c_str()); learned_something_new(TUT_YOU_HUNGRY); break; default: @@ -677,7 +685,8 @@ static void describe_food_change(int food_increment) else msg += "less "; - msg += ((you.hunger_state > HS_SATIATED) ? "full." : "hungry."); + msg += how_hungry().c_str(); + msg += "."; mpr(msg.c_str()); } // end describe_food_change() @@ -959,8 +968,7 @@ static void eat_chunk( int chunk_effect, bool cannibal, int mon_intel ) (chunk_effect == CE_ROTTEN) ? "rotting " : ""); if (you.species == SP_GHOUL) - heal_from_food(hp_amt, 0, !one_chance_in(4), - one_chance_in(5)); + heal_from_food(hp_amt, 0, !one_chance_in(4), one_chance_in(5)); do_eat = true; } |