summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-other.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-02-27 14:18:03 -0330
committerDracoOmega <draco_omega@live.com>2013-03-03 18:36:52 -0330
commit41eaca393a3dc28a220f22257e425a50e479c611 (patch)
tree757781291be0ebf51c78234ed04916348a5e9b30 /crawl-ref/source/spl-other.cc
parent72f3d047aa9c895fba5a28db6dcd34d986baf12c (diff)
downloadcrawl-ref-41eaca393a3dc28a220f22257e425a50e479c611.tar.gz
crawl-ref-41eaca393a3dc28a220f22257e425a50e479c611.zip
Remove code for old version of recall
Diffstat (limited to 'crawl-ref/source/spl-other.cc')
-rw-r--r--crawl-ref/source/spl-other.cc75
1 files changed, 0 insertions, 75 deletions
diff --git a/crawl-ref/source/spl-other.cc b/crawl-ref/source/spl-other.cc
index bf6a7a97b1..42131531a6 100644
--- a/crawl-ref/source/spl-other.cc
+++ b/crawl-ref/source/spl-other.cc
@@ -176,81 +176,6 @@ spret_type cast_recall(bool fail)
// 0 = anything
// 1 = undead only (Yred religion ability)
// 2 = orcs only (Beogh religion ability)
-bool recall(int type_recalled)
-{
- int loopy = 0; // general purpose looping variable {dlb}
- bool success = false; // more accurately: "apparent success" {dlb}
- int start_count = 0;
- int step_value = 1;
- int end_count = (MAX_MONSTERS - 1);
-
- monster* mons = NULL;
-
- // someone really had to make life difficult {dlb}:
- // sometimes goes through monster list backwards
- if (coinflip())
- {
- start_count = (MAX_MONSTERS - 1);
- end_count = 0;
- step_value = -1;
- }
-
- for (loopy = start_count; loopy != end_count + step_value;
- loopy += step_value)
- {
- mons = &menv[loopy];
-
- if (mons->type == MONS_NO_MONSTER)
- continue;
-
- if (!mons->friendly())
- continue;
-
- if (mons_class_is_stationary(mons->type)
- || mons_is_conjured(mons->type))
- {
- continue;
- }
-
- if (!monster_habitable_grid(mons, DNGN_FLOOR))
- continue;
-
- if (type_recalled == 1) // undead
- {
- if (mons->holiness() != MH_UNDEAD)
- continue;
- }
- else if (type_recalled == 2) // Beogh
- {
- if (!is_orcish_follower(mons))
- continue;
- }
-
- coord_def empty;
- if (empty_surrounds(you.pos(), DNGN_FLOOR, 3, false, empty)
- && mons->move_to_pos(empty))
- {
- // only informed if monsters recalled are visible {dlb}:
- if (simple_monster_message(mons, " is recalled."))
- success = true;
- }
- else
- break; // no more room to place monsters {dlb}
- }
-
- // Interlevel recall
- if (type_recalled > 0 && branch_allows_followers(you.where_are_you))
- {
- if (recall_offlevel_companions())
- success = true;
- }
-
- if (!success)
- mpr("Nothing appears to have answered your call.");
-
- return success;
-}
-
void start_recall(int type)
{
// Assemble the recall list.