summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 04:51:11 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 04:51:11 +0000
commit45811434cb617c697917248049e88d71f43a00d8 (patch)
tree1c261a3ddadcb8b6a30cf5d66a5863cd3d72bdf2 /crawl-ref/source/effects.cc
parentb9cd7423d2652ba7e0cf40ba34b662bfd695c88e (diff)
downloadcrawl-ref-45811434cb617c697917248049e88d71f43a00d8.tar.gz
crawl-ref-45811434cb617c697917248049e88d71f43a00d8.zip
Add random uselessness messages for when the player is silenced. These
are taken from spell miscasts, as many of the random uselessness messages are already. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5307 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index bed5b8de64..a6e34514a4 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -59,6 +59,7 @@
#include "state.h"
#include "stuff.h"
#include "terrain.h"
+#include "transfor.h"
#include "traps.h"
#include "tutorial.h"
#include "view.h"
@@ -762,11 +763,19 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
msg::stream << "You hear the distant roaring of an enraged "
<< weird_roaring_animal() << "!" << std::endl;
}
+ else if (you.attribute[ATTR_TRANSFORMATION] != TRAN_AIR)
+ mpr("Your skull vibrates slightly.");
+ else
+ canned_msg(MSG_NOTHING_HAPPENS);
break;
case 4:
if (player_can_smell())
msg::stream << "You smell " << weird_smell() << "." << std::endl;
+ else if (you.species == SP_MUMMY)
+ mpr("Your bandages flutter.");
+ else
+ canned_msg(MSG_NOTHING_HAPPENS);
break;
case 5:
@@ -784,6 +793,8 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
case 7:
if (!silenced(you.x_pos, you.y_pos))
mpr("You hear the tinkle of a tiny bell.");
+ else
+ mpr("The world appears momentarily distorted.");
cast_summon_butterflies( 100 );
break;
@@ -802,6 +813,10 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2)
(temp_rand == 7) ? "a crunching sound"
: "the tinkle of an enormous bell");
}
+ else if (you.attribute[ATTR_TRANSFORMATION] != TRAN_AIR)
+ mpr("Your head hurts.");
+ else
+ canned_msg(MSG_NOTHING_HAPPENS);
break;
}