summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:00:57 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:22:16 +0100
commit310d0430888db20093a862e7921511076a486c6b (patch)
treeda21a4f3e17b5bba68a0ce3fc31aceb4429fe775 /crawl-ref/source/spells3.cc
parentd4189cb0308511fc5d7e12790993f6844974e0c7 (diff)
downloadcrawl-ref-310d0430888db20093a862e7921511076a486c6b.tar.gz
crawl-ref-310d0430888db20093a862e7921511076a486c6b.zip
Replace observe_cell by you.see_cell.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index a14535c98f..246fda1f8a 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -950,7 +950,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 (observe_cell(pos))
+ if (you.see_cell(pos))
{
mpr("The zero-headed hydra corpse sways and immediately "
"collapses!");
@@ -1047,7 +1047,7 @@ int animate_remains(const coord_def &a, corpse_type class_allowed,
: "attack");
}
- if (!quiet && observe_cell(a))
+ if (!quiet && you.see_cell(a))
mpr("The dead are walking!");
if (was_butchering)
@@ -1087,7 +1087,7 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting,
actual, true) > 0)
{
number_raised++;
- if (observe_cell(*ri))
+ if (you.see_cell(*ri))
number_seen++;
}
}
@@ -1755,7 +1755,7 @@ bool remove_sanctuary(bool did_attack)
if (is_sanctuary(*ri))
{
_remove_sanctuary_property(*ri);
- if (observe_cell(*ri))
+ if (you.see_cell(*ri))
seen_change = true;
}
}
@@ -1812,7 +1812,7 @@ void decrease_sanctuary_radius()
if (!size)
{
_remove_sanctuary_property(env.sanctuary_pos);
- if (observe_cell(env.sanctuary_pos))
+ if (you.see_cell(env.sanctuary_pos))
mpr("The sanctuary disappears.", MSGCH_DURATION);
}
}
@@ -1863,7 +1863,7 @@ bool cast_sanctuary(const int power)
continue;
const coord_def pos = *ri;
- if (testbits(env.pgrid(pos), FPROP_BLOODY) && observe_cell(pos))
+ if (testbits(env.pgrid(pos), FPROP_BLOODY) && you.see_cell(pos))
blood_count++;
if (trap_def* ptrap = find_trap(pos))
@@ -1944,7 +1944,7 @@ bool cast_sanctuary(const int power)
if (!is_harmless_cloud(cloud_type_at(pos)))
{
delete_cloud(env.cgrid(pos));
- if (observe_cell(pos))
+ if (you.see_cell(pos))
cloud_count++;
}
} // radius loop
@@ -2043,7 +2043,7 @@ bool project_noise(void)
if (success)
{
mprf(MSGCH_SOUND, "You hear a %svoice call your name.",
- (!observe_cell(pos) ? "distant " : "") );
+ (!you.see_cell(pos) ? "distant " : "") );
}
else
mprf(MSGCH_SOUND, "You hear a dull thud.");