summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 23:33:49 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 23:33:49 +0000
commitb2a0f789b94558ed467b25ac5355eaf8b6558077 (patch)
tree8ffec1f322123a7ab8b725dcc4c23cbfa40e95f5 /crawl-ref/source/effects.cc
parent3344142e8b26c115585389049ca3a7f535fcab75 (diff)
downloadcrawl-ref-b2a0f789b94558ed467b25ac5355eaf8b6558077.tar.gz
crawl-ref-b2a0f789b94558ed467b25ac5355eaf8b6558077.zip
Fix 1962147: Move the comments on the food you eat at the end of DELAY_EAT.
Fix 1971216: Kills by confused undead use LIVING_KILLED_BY_SERVANT instead because the message ("collateral kill") fits better and, though it's basically a hack, the distinction does fit somehow. Fix 1914948: Tweak message when you resist a spell cast by an invisible monster. Fix 1946608: Print "Nothing appears to happen." if reading ?EWI when unarmed. I guess that's it, plus probably some more cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5378 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc25
1 files changed, 11 insertions, 14 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index e2d69263c6..bbaa21426a 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -701,7 +701,7 @@ void mons_direct_effect(struct bolt &pbolt, int i)
damage_taken += 7 + random2avg(11, 2);
break;
- case DMNBM_BRAIN_FEED: // not implemented here (nor, probably, can be)
+ case DMNBM_BRAIN_FEED: // Not implemented here (nor, probably, can be).
break;
case DMNBM_MUTATION:
@@ -717,7 +717,7 @@ void mons_direct_effect(struct bolt &pbolt, int i)
break;
}
- // apply damage and handle death, where appropriate {dlb}
+ // Apply damage and handle death, where appropriate {dlb}
if (damage_taken > 0)
{
hurt_monster(monster, damage_taken);
@@ -727,7 +727,7 @@ void mons_direct_effect(struct bolt &pbolt, int i)
}
return;
-} // end mons_direct_effect()
+}
void random_uselessness(unsigned char ru, unsigned char sc_read_2)
{
@@ -736,8 +736,7 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
switch (ru)
{
case 0:
- msg::stream << "The dust glows " << weird_glowing_colour() << "!"
- << std::endl;
+ mprf("The dust glows %s!", weird_glowing_colour().c_str());
break;
case 1:
@@ -748,22 +747,22 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
case 2:
if (you.equip[EQ_WEAPON] != -1)
{
- msg::stream << you.inv[you.equip[EQ_WEAPON]].name(DESC_CAP_YOUR)
- << " glows " << weird_glowing_colour()
- << " for a moment." << std::endl;
+ mprf("%s glows %s for a moment.",
+ you.inv[you.equip[EQ_WEAPON]].name(DESC_CAP_YOUR).c_str(),
+ weird_glowing_colour().c_str());
}
else
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 3:
- msg::stream << "You hear the distant roaring of an enraged "
- << weird_roaring_animal() << "!" << std::endl;
+ mprf("You hear the distant roaring of an enraged %s!",
+ weird_roaring_animal().c_str());
break;
case 4:
if (player_can_smell())
- msg::stream << "You smell " << weird_smell() << "." << std::endl;
+ mprf("You smell %s.", weird_smell().c_str());
else if (you.species == SP_MUMMY)
mpr("Your bandages flutter.");
else
@@ -801,9 +800,7 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
: "the tinkle of an enormous bell");
break;
}
-
- return;
-} // end random_uselessness()
+}
static armour_type random_nonbody_armour_type()
{