summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-17 00:16:20 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-17 00:16:20 +0200
commit241ceb5971b5c87b58e7f28f9fee417230561a5d (patch)
tree8e3a0781c9ba03971f8880fe6923337a50f45409 /crawl-ref/source/dat/clua
parentf6e6b6b7151af9290c0597acb1995ed157378529 (diff)
downloadcrawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.tar.gz
crawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.zip
Globally replace see_grid by see_cell.
Diffstat (limited to 'crawl-ref/source/dat/clua')
-rw-r--r--crawl-ref/source/dat/clua/lm_monst.lua6
-rw-r--r--crawl-ref/source/dat/clua/lm_timed.lua2
-rw-r--r--crawl-ref/source/dat/clua/lm_tmsg.lua2
3 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/dat/clua/lm_monst.lua b/crawl-ref/source/dat/clua/lm_monst.lua
index 6700026fb4..f26e73e89b 100644
--- a/crawl-ref/source/dat/clua/lm_monst.lua
+++ b/crawl-ref/source/dat/clua/lm_monst.lua
@@ -98,13 +98,13 @@ function MonsterOnTrigger:event(marker, ev)
-- command, since then no turns will have been taken and the LOS info
-- won't have been updated.
you.losight()
- local see_grid = you.see_grid(x, y)
+ local see_cell = you.see_cell(x, y)
if (not dgn.create_monster(x, y, self.new_monster)) then
return
- elseif self.message_seen ~= "" and see_grid then
+ elseif self.message_seen ~= "" and see_cell then
crawl.mpr(self.message_seen)
- elseif self.message_unseen ~= "" and not see_grid then
+ elseif self.message_unseen ~= "" and not see_cell then
crawl.mpr(self.message_unseen)
end
diff --git a/crawl-ref/source/dat/clua/lm_timed.lua b/crawl-ref/source/dat/clua/lm_timed.lua
index 2174e01589..b2e1b482c4 100644
--- a/crawl-ref/source/dat/clua/lm_timed.lua
+++ b/crawl-ref/source/dat/clua/lm_timed.lua
@@ -70,7 +70,7 @@ function TimedMarker:timeout(marker, verbose, affect_player)
end
if verbose then
- if you.see_grid(marker:pos()) then
+ if you.see_cell(marker:pos()) then
crawl.mpr( util.expand_entity(self.props.entity, self.props.disappear) or
dgn.feature_desc_at(x, y, "The") .. " disappears!")
else
diff --git a/crawl-ref/source/dat/clua/lm_tmsg.lua b/crawl-ref/source/dat/clua/lm_tmsg.lua
index 91b3bfdb9b..0783b76e93 100644
--- a/crawl-ref/source/dat/clua/lm_tmsg.lua
+++ b/crawl-ref/source/dat/clua/lm_tmsg.lua
@@ -73,7 +73,7 @@ function TimedMessaging:perceptible(cm)
end
if self.visible then
- return you.see_grid(cm:pos())
+ return you.see_cell(cm:pos())
else
return you.hear_pos(cm:pos())
end