summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:39:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:41:29 +0100
commitceb51161c896f17a951b0ba2bbd4b48f8fead13a (patch)
tree6fb22b76e7cda0eeb93e82db1d853f664765fc13 /crawl-ref/source/spells3.cc
parentf858cfc60235a5cfb86dd2a2c510dde5e130a4bf (diff)
downloadcrawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.tar.gz
crawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.zip
Replace global see_cell by observe_cell and disambiguate old uses.
Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 6d49fae5d7..139e177bdc 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -947,7 +947,7 @@ static bool _raise_remains(const coord_def &pos, int corps, beh_type beha,
// Headless hydras cannot be raised, sorry.
if (zombie_type == MONS_HYDRA && number == 0)
{
- if (see_cell(pos))
+ if (observe_cell(pos))
{
mpr("The zero-headed hydra corpse sways and immediately "
"collapses!");
@@ -1036,7 +1036,7 @@ int animate_remains(const coord_def &a, corpse_type class_allowed,
: "attack");
}
- if (!quiet && see_cell(a))
+ if (!quiet && observe_cell(a))
mpr("The dead are walking!");
if (was_butchering)
@@ -1082,7 +1082,7 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting,
actual, true) > 0)
{
number_raised++;
- if (see_cell(*ri))
+ if (observe_cell(*ri))
number_seen++;
}
}
@@ -1513,7 +1513,7 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area)
if (is_controlled)
{
- if (!see_cell(pos))
+ if (!you.see_cell(pos))
large_change = true;
// Merfolk should be able to control-tele into deep water.
@@ -1581,9 +1581,9 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area)
|| need_distance_check && (newpos - centre).abs() < 34*34
|| testbits(env.map(newpos).property, FPROP_NO_RTELE_INTO));
- if ( newpos == you.pos() )
+ if (newpos == you.pos())
mpr("Your surroundings flicker for a moment.");
- else if ( see_cell(newpos) )
+ else if (you.see_cell(newpos))
mpr("Your surroundings seem slightly different.");
else
{
@@ -1750,7 +1750,7 @@ bool remove_sanctuary(bool did_attack)
if (is_sanctuary(*ri))
{
_remove_sanctuary_property(*ri);
- if (see_cell(*ri))
+ if (observe_cell(*ri))
seen_change = true;
}
}
@@ -1811,7 +1811,7 @@ void decrease_sanctuary_radius()
if (!size)
{
_remove_sanctuary_property(env.sanctuary_pos);
- if (see_cell(env.sanctuary_pos))
+ if (observe_cell(env.sanctuary_pos))
mpr("The sanctuary disappears.", MSGCH_DURATION);
}
}
@@ -1862,7 +1862,7 @@ bool cast_sanctuary(const int power)
continue;
const coord_def pos = *ri;
- if (testbits(env.map(pos).property, FPROP_BLOODY) && see_cell(pos))
+ if (testbits(env.map(pos).property, FPROP_BLOODY) && observe_cell(pos))
blood_count++;
if (trap_def* ptrap = find_trap(pos))
@@ -1943,7 +1943,7 @@ bool cast_sanctuary(const int power)
if (!is_harmless_cloud(cloud_type_at(pos)))
{
delete_cloud(env.cgrid(pos));
- if (see_cell(pos))
+ if (observe_cell(pos))
cloud_count++;
}
} // radius loop
@@ -2061,7 +2061,7 @@ bool project_noise(void)
if (success)
{
mprf(MSGCH_SOUND, "You hear a %svoice call your name.",
- (!see_cell( pos ) ? "distant " : "") );
+ (!observe_cell(pos) ? "distant " : "") );
}
else
mprf(MSGCH_SOUND, "You hear a dull thud.");