summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 10:19:28 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 10:19:28 +0000
commit31d23a40fe1ac90e0e319ce9bab1fa3bb0a08bf3 (patch)
tree3b981f5efc06e3a5e46cf9b1a395f7e35f2ddd9a /crawl-ref/source/it_use2.cc
parent00af6cae236018eae3c659ae02cd8c017549bd15 (diff)
downloadcrawl-ref-31d23a40fe1ac90e0e319ce9bab1fa3bb0a08bf3.tar.gz
crawl-ref-31d23a40fe1ac90e0e319ce9bab1fa3bb0a08bf3.zip
Cleaned up a lot of code which was using info[] to use mprf() directly
instead. Fixed a bug with affix_weapon_enchantment messaging (mea culpa.) Fixed shatter() messages getting surpressed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1347 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 969683e7c8..2c32f6f91b 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -124,10 +124,8 @@ bool potion_effect( char pot_eff, int pow )
break;
case POT_LEVITATION:
- strcpy(info, "You feel");
- strcat(info, (!player_is_levitating()) ? " very" : " more");
- strcat(info, " buoyant.");
- mpr(info);
+ mprf("You feel %s buoyant.",
+ (!player_is_levitating()) ? " very" : " more");
if (!player_is_levitating())
mpr("You gently float upwards from the floor.");
@@ -144,17 +142,13 @@ bool potion_effect( char pot_eff, int pow )
case POT_STRONG_POISON:
if (player_res_poison())
{
- snprintf( info, INFO_SIZE, "You feel %s nauseous.",
- (pot_eff == POT_POISON) ? "slightly" : "quite" );
-
- mpr(info);
+ mprf("You feel %s nauseous.",
+ (pot_eff == POT_POISON) ? "slightly" : "quite" );
}
else
{
- snprintf( info, INFO_SIZE, "That liquid tasted %s nasty...",
- (pot_eff == POT_POISON) ? "very" : "extremely" );
-
- mpr(info);
+ mprf("That liquid tasted %s nasty...",
+ (pot_eff == POT_POISON) ? "very" : "extremely" );
poison_player( ((pot_eff == POT_POISON) ? 1 + random2avg(5, 2)
: 3 + random2avg(13, 2)) );