From 00033a21e5e9bce12e82e37cbfccd78a58cd8b4e Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 2 Dec 2006 21:16:56 +0000 Subject: Added dump_order=overview and put it in by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@542 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/chardump.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 0c3b343e66..b96e6ff18b 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -45,6 +45,7 @@ #include "mutation.h" #include "notes.h" #include "output.h" +#include "overmap.h" #include "player.h" #include "randart.h" #include "religion.h" @@ -78,6 +79,7 @@ static void sdump_messages(const std::string §ion, std::string &text); static void sdump_screenshot(const std::string §ion, std::string &text); static void sdump_kills(const std::string §ion, std::string &text); static void sdump_newline(const std::string §ion, std::string &text); +static void sdump_overview(const std::string §ion, std::string &text); static void sdump_separator(const std::string §ion, std::string &text); #ifdef CLUA_BINDINGS static void sdump_lua(const std::string §ion, std::string &text); @@ -110,6 +112,7 @@ static dump_section_handler dump_handlers[] = { { "messages", sdump_messages }, { "screenshot", sdump_screenshot }, { "kills", sdump_kills }, + { "overview", sdump_overview }, // Conveniences for the .crawlrc artist. { "", sdump_newline }, @@ -943,6 +946,11 @@ static void sdump_kills(const std::string &, std::string & text) text += you.kills.kill_info(); } +static void sdump_overview(const std::string&, std::string& text) +{ + text += formatted_string::parse_string(overview_description_string()); +} + static void sdump_mutations(const std::string &, std::string & text) { // Can't use how_mutated() here, as it doesn't count demonic powers -- cgit v1.2.3-54-g00ecf