summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:00:42 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:00:42 +0000
commitc07f2c46323c57f9d5699293e3e4458d5bbacde5 (patch)
tree4afb8218230bd780be1d925a84f4abe8542aef32 /crawl-ref/source/player.cc
parent774610f0402dc15c10a1a39105e2427484364006 (diff)
downloadcrawl-ref-c07f2c46323c57f9d5699293e3e4458d5bbacde5.tar.gz
crawl-ref-c07f2c46323c57f9d5699293e3e4458d5bbacde5.zip
Some cleanup (replacing you.duration[DUR_CONF] with you.confused())
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7108 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index fe6dadca51..ebd6b2d28b 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -116,7 +116,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift,
|| mons_is_submerged( &menv[ mgrd(p) ])));
const int cloud = env.cgrid(p);
- if (cloud != EMPTY_CLOUD && !you.duration[DUR_CONF])
+ if (cloud != EMPTY_CLOUD && !you.confused())
{
const cloud_type ctype = env.cloud[ cloud ].type;
// Don't prompt if already in a cloud of the same type.
@@ -225,7 +225,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift,
// lava and dangerous deep water (ie not merfolk)
const coord_def entry = (stepped) ? you.pos() : p;
- if (stepped && !force && !you.duration[DUR_CONF])
+ if (stepped && !force && !you.confused())
{
canned_msg(MSG_UNTHINKING_ACT);
return (false);
@@ -3544,7 +3544,7 @@ int check_stealth(void)
if (you.burden_state > BS_UNENCUMBERED)
stealth /= you.burden_state;
- if (you.duration[DUR_CONF])
+ if (you.confused())
stealth /= 3;
const int arm = you.equip[EQ_BODY_ARMOUR];
@@ -3854,7 +3854,7 @@ void display_char_status()
if (you.duration[DUR_INVIS])
mpr("You are invisible.");
- if (you.duration[DUR_CONF])
+ if (you.confused())
mpr("You are confused.");
if (you.duration[DUR_BEHELD])