From 9b8726ed7a51f1556ebd359761ee4a7a6ca4c27e Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 23 Apr 2009 19:20:52 +0000 Subject: Add minor cosmetic fixes. Also, tweak the message for when non-chunk lovers drink potions of blood to not use "Blech", as it gives nutrition, unlike other cases (e.g. when partial carnivores drink potions of porridge). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9685 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/it_use2.cc | 10 +++++----- crawl-ref/source/player.cc | 6 +++--- crawl-ref/source/xom.cc | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 43c7f51ae9..9617c1264c 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -84,7 +84,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) // only fix rot when healed to full if (you.hp == you.hp_max) { - unrot_hp( (2 + random2avg(5, 2)) / factor ); + unrot_hp((2 + random2avg(5, 2)) / factor); set_hp(you.hp_max, false); } break; @@ -121,12 +121,12 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) } else { - mpr("Blech - this tastes like blood!"); + mpr("Yuck - this tastes like blood!"); if (x_chance_in_y(herbivorous + 1, 4)) { // Full herbivores always become ill from blood. disease_player(50 + random2(100)); - xom_is_stimulated(32/xom_factor); + xom_is_stimulated(32 / xom_factor); } else lessen_hunger(value, true); @@ -136,7 +136,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) break; case POT_SPEED: - haste_player( (40 + random2(pow)) / factor ); + haste_player((40 + random2(pow)) / factor); break; case POT_MIGHT: @@ -308,7 +308,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) { mpr("You feel more experienced!"); - you.experience = 1 + exp_needed( 2 + you.experience_level ); + you.experience = 1 + exp_needed(2 + you.experience_level); level_change(); } else diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 82248cec33..6cdd04d41b 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3516,8 +3516,8 @@ void level_change(bool skip_attribute_increase) } // add hp and mp adjustments - GDL - inc_max_hp( hp_adjust ); - inc_max_mp( mp_adjust ); + inc_max_hp(hp_adjust); + inc_max_mp(mp_adjust); deflate_hp(you.hp_max, false); @@ -3546,7 +3546,7 @@ void level_change(bool skip_attribute_increase) learned_something_new(TUT_NEW_LEVEL); } - redraw_skill( you.your_name, player_title() ); + redraw_skill(you.your_name, player_title()); } // Here's a question for you: does the ordering of mods make a difference? diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 214924ffcc..990a9d42c8 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -1080,6 +1080,7 @@ static bool _xom_do_potion() rc = true; } + return (rc); } -- cgit v1.2.3-54-g00ecf