summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2011-11-29 20:15:56 -0500
committerChris Campbell <chriscampbell89@gmail.com>2011-11-30 01:43:16 +0000
commitaf7f19ccf2136282670fe5703b04eaf3f85395b8 (patch)
tree6d42a3b0c51fd97be90bbdbfd6899b193201cfa6 /crawl-ref/source/directn.h
parente7466cb9650239318832307666ce805a972b2184 (diff)
downloadcrawl-ref-af7f19ccf2136282670fe5703b04eaf3f85395b8.tar.gz
crawl-ref-af7f19ccf2136282670fe5703b04eaf3f85395b8.zip
Fuzz target when reaching while confused.
The attack goes to a random square within reaching range. If your own square is chosen, you get a different message, but don't actually hurt yourself. If there is a wall in the way, you still lose the turn.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index bdcf92ca6a..0606e86b04 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -58,7 +58,9 @@ public:
dist();
bool isMe() const;
- void confusion_fuzz(); // modify target as if the player is confused.
+
+ // modify target as if the player is confused.
+ void confusion_fuzz(int range = 6);
bool isValid; // valid target chosen?
bool isTarget; // target (true), or direction (false)?