From 3d81bd7a6b61c60f49995ad85787afa7452a7965 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 1 Jul 2008 14:59:59 +0000 Subject: Outsource the description of Xom's powers (so to speak) instead of hardcoding it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6296 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 56bf70c4cd..c64306b9fe 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2742,28 +2742,17 @@ static void _detailed_god_description(god_type which_god) textcolor(LIGHTGREY); cprintf(EOL); - if (which_god == GOD_XOM) - { - cprintf("To worship Xom is to live riskily. In a good mood Xom may " - "shower you " EOL - "with gifts, while at other times this capricious god could " - "decide to " EOL - "\"spice things up a little\" and send you to your doom. If " - "you prove " EOL - "yourself the stronger, so much the better; if not, well, " - "there'll be " EOL - "other playthings..." EOL); + std::string broken = get_god_powers(which_god); + if (!broken.empty()) + { + linebreak_string2(broken, width); + formatted_string::parse_block(broken, false).display(); + cprintf(EOL); + cprintf(EOL); } - else + + if (which_god != GOD_XOM) { - std::string broken = get_god_powers(which_god); - if (!broken.empty()) - { - linebreak_string2(broken, width); - formatted_string::parse_block(broken, false).display(); - cprintf(EOL); - cprintf(EOL); - } broken = get_god_likes(which_god, true); linebreak_string2(broken, width); formatted_string::parse_block(broken, false).display(); -- cgit v1.2.3-54-g00ecf