diff options
-rw-r--r-- | crawl-ref/source/religion.cc | 26 | ||||
-rw-r--r-- | crawl-ref/source/religion.h | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index a4d9f06bb6..2399fe4b60 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -5714,3 +5714,29 @@ static void _place_delayed_monsters() _delayed_success.clear(); _delayed_failure.clear(); } + +std::vector<god_type> temple_god_list() +{ + std::vector<god_type> god_list; + + for (int i = 0; i < NUM_GODS; i++) + { + god_type god = (god_type) i; + + // These never appear in any temples. + switch(god) + { + case GOD_NO_GOD: + case GOD_LUGONU: + case GOD_BEOGH: + case GOD_JIYVA: + continue; + + default: + break; + } + + god_list.push_back(god); + } + return god_list; +} diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h index 82b1a5f731..5ecc6ce34c 100644 --- a/crawl-ref/source/religion.h +++ b/crawl-ref/source/religion.h @@ -134,4 +134,6 @@ void religion_turn_start(); void religion_turn_end(); int get_tension(god_type god = you.religion, bool count_travelling = true); + +std::vector<god_type> temple_god_list(); #endif |