From 6a883aea39bceefb34718c699ee3877d33b6d2ba Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 10:01:11 +0100 Subject: 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. --- crawl-ref/source/spells3.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'crawl-ref/source/spells3.cc') 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]; -- cgit v1.2.3-54-g00ecf