summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 10:01:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 10:02:38 +0100
commit6a883aea39bceefb34718c699ee3877d33b6d2ba (patch)
tree7dfc750f9da300c069643661ec329b969515c897 /crawl-ref/source/spells3.cc
parent14710e6fd41d63a20a68342b6604d48de3a6b621 (diff)
downloadcrawl-ref-6a883aea39bceefb34718c699ee3877d33b6d2ba.tar.gz
crawl-ref-6a883aea39bceefb34718c699ee3877d33b6d2ba.zip
Add a general halo interface to actor.
Also convert the TSO halo to use this. actor::haloed() is still specific to the player TSO halo.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 519be912fa..bd4df15d81 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1979,25 +1979,6 @@ bool cast_sanctuary(const int power)
return (true);
}
-int halo_radius()
-{
- if (you.religion == GOD_SHINING_ONE && you.piety >= piety_breakpoint(0)
- && !you.penance[GOD_SHINING_ONE])
- {
- return std::min(LOS_RADIUS, you.piety / 20);
- }
-
- return 0;
-}
-
-bool inside_halo(const coord_def& where)
-{
- if (!halo_radius())
- return (false);
-
- return (_inside_circle(where, halo_radius()) != -1);
-}
-
void cast_poison_ammo()
{
const int ammo = you.equip[EQ_WEAPON];