summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.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/monster.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/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index d82093bee9..4d574000e8 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -4980,7 +4980,7 @@ void monsters::apply_enchantment(const mon_enchant &me)
// If you are no longer dying, you must be dead.
if (decay_enchantment(me))
{
- if (observe_cell(position))
+ if (you.see_cell(position))
{
mprf("A nearby %s withers and dies.",
this->name(DESC_PLAIN, false).c_str());
@@ -5023,7 +5023,7 @@ void monsters::apply_enchantment(const mon_enchant &me)
env.mons[rc].behaviour = BEH_WANDER;
env.mons[rc].number = 20;
- if (observe_cell(adjacent) && observe_cell(pos()))
+ if (you.see_cell(adjacent) && you.see_cell(pos()))
mpr("A ballistomycete spawns a giant spore.");
deactivate_ballistos();
@@ -5429,8 +5429,8 @@ bool monsters::has_action_energy() const
void monsters::check_redraw(const coord_def &old) const
{
- const bool see_new = observe_cell(pos());
- const bool see_old = observe_cell(old);
+ const bool see_new = you.see_cell(pos());
+ const bool see_old = you.see_cell(old);
if ((see_new || see_old) && !view_update())
{
if (see_new)
@@ -5495,7 +5495,7 @@ void monsters::apply_location_effects(const coord_def &oldpos)
if (genus == MONS_JELLY || genus == MONS_GIANT_SLUG)
{
prop &= ~FPROP_BLOODY;
- if (observe_cell(pos()) && !visible_to(&you))
+ if (you.see_cell(pos()) && !visible_to(&you))
{
std::string desc =
feature_description(pos(), false, DESC_NOCAP_THE, false);