diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-12 03:25:21 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-12 03:25:21 -0800 |
commit | d728a1cd0de075594762733936732d3d7f91f410 (patch) | |
tree | 227c99bfb2ca14324008e42b6103f69476b89558 /crawl-ref/source/wiz-dgn.cc | |
parent | ce5dd6cec328845983bd62f5ffc32beb6c292ab9 (diff) | |
download | crawl-ref-d728a1cd0de075594762733936732d3d7f91f410.tar.gz crawl-ref-d728a1cd0de075594762733936732d3d7f91f410.zip |
Wiz cmd "&:": list altars in overflow temples
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r-- | crawl-ref/source/wiz-dgn.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc index 2972d37398..69f5e1ec2a 100644 --- a/crawl-ref/source/wiz-dgn.cc +++ b/crawl-ref/source/wiz-dgn.cc @@ -25,6 +25,7 @@ #include "options.h" #include "place.h" #include "player.h" +#include "religion.h" #include "stuff.h" #include "terrain.h" #include "traps.h" @@ -388,8 +389,26 @@ void wizard_list_branches() if (temples.size() == 0) continue; - mprf(MSGCH_DIAGNOSTICS, "%lu on D:%lu", temples.size(), - i + 1); + std::vector<std::string> god_names; + + for (unsigned int j = 0; j < temples.size(); j++) + { + CrawlHashTable &temple_hash = temples[j]; + CrawlVector &gods = temple_hash[TEMPLE_GODS_KEY]; + + for (unsigned int k = 0; k < gods.size(); k++) + { + god_type god = (god_type) gods[k].get_byte(); + + god_names.push_back(god_name(god)); + } + } + + mprf(MSGCH_DIAGNOSTICS, "%lu on D:%lu (%s)", temples.size(), + i + 1, + comma_separated_line( god_names.begin(), + god_names.end() ).c_str() + ); } } |