summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 00:34:40 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 00:34:40 +0000
commit97fb0d78f692cb36873006a79446d011b4a3fb6b (patch)
treeacf34c7a52d8a7795a76f72f4fab9674c14ebbfa /crawl-ref/source/acr.cc
parent845cc22c3950d9e3e1e8b27a11e4557b3bb0fddb (diff)
downloadcrawl-ref-97fb0d78f692cb36873006a79446d011b4a3fb6b.tar.gz
crawl-ref-97fb0d78f692cb36873006a79446d011b4a3fb6b.zip
* Rename beheld -> mesmerised.
* Fix forget_map routine for Tiles. There are two problems remaining: a) Calling forget_map every ~20 turns is fine for ASCII since it mostly happens outside vision range anyway but looks really odd and spurious when watched in the minimap. Potential solution: Call the function more often. b) The minimap currently does not recenter but of course it should from time to time. The problem with this is that this is likely to look wobbly. Potential solution: Disable the minimap entirely while in labyrinths. I don't like the solutions I came up with, so if anyone has a better idea please speak up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7698 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index bce6474961..79ddec8867 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -662,10 +662,10 @@ static void _do_wizard_command(int wiz_command, bool silent_fail)
case 'H': // super-heal
you.magic_contamination = 0;
you.duration[DUR_LIQUID_FLAMES] = 0;
- if (you.duration[DUR_BEHELD])
+ if (you.duration[DUR_MESMERISED])
{
- you.duration[DUR_BEHELD] = 0;
- you.beheld_by.clear();
+ you.duration[DUR_MESMERISED] = 0;
+ you.mesmerised_by.clear();
}
inc_hp( 10, true );
// intentional fall-through
@@ -1666,12 +1666,12 @@ static bool _toggle_flag( bool* flag, const char* flagname )
return *flag;
}
-static bool _stairs_check_beheld()
+static bool _stairs_check_mesmerised()
{
- if (you.duration[DUR_BEHELD] && !you.confused())
+ if (you.duration[DUR_MESMERISED] && !you.confused())
{
mprf("You cannot move away from %s!",
- menv[you.beheld_by[0]].name(DESC_NOCAP_THE, true).c_str());
+ menv[you.mesmerised_by[0]].name(DESC_NOCAP_THE, true).c_str());
return (true);
}
@@ -1688,7 +1688,7 @@ static void _go_upstairs()
{
const dungeon_feature_type ygrd = grd(you.pos());
- if (_stairs_check_beheld())
+ if (_stairs_check_mesmerised())
return;
if (you.attribute[ATTR_HELD])
@@ -1731,7 +1731,7 @@ static void _go_downstairs()
bool shaft = (get_trap_type(you.pos()) == TRAP_SHAFT
&& grd(you.pos()) != DNGN_UNDISCOVERED_TRAP);
- if (_stairs_check_beheld())
+ if (_stairs_check_mesmerised())
return;
if (shaft && you.flight_mode() == FL_LEVITATE)
@@ -2774,10 +2774,10 @@ static void _decrement_durations()
_decrement_a_duration(DUR_SURE_BLADE,
"The bond with your blade fades away." );
- if ( _decrement_a_duration(DUR_BEHELD, "You break out of your daze.",
+ if ( _decrement_a_duration(DUR_MESMERISED, "You break out of your daze.",
-1, 0, NULL, MSGCH_RECOVERY ))
{
- you.beheld_by.clear();
+ you.mesmerised_by.clear();
}
dec_slow_player();
@@ -4056,11 +4056,11 @@ static void _move_player(coord_def move)
// You cannot move away from a mermaid but you CAN fight monsters on
// neighbouring squares.
monsters *beholder = NULL;
- if (you.duration[DUR_BEHELD] && !you.confused())
+ if (you.duration[DUR_MESMERISED] && !you.confused())
{
- for (unsigned int i = 0; i < you.beheld_by.size(); i++)
+ for (unsigned int i = 0; i < you.mesmerised_by.size(); i++)
{
- monsters& mon = menv[you.beheld_by[i]];
+ monsters& mon = menv[you.mesmerised_by[i]];
int olddist = grid_distance(you.pos(), mon.pos());
int newdist = grid_distance(targ, mon.pos());