diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 14:59:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 14:59:59 +0000 |
commit | 3d81bd7a6b61c60f49995ad85787afa7452a7965 (patch) | |
tree | 0fac001d4ad72743612390b01f9fe58ff5c229c0 /crawl-ref/source/describe.cc | |
parent | 480d2ee923ab8077e03e10e07efe59d9306c5b81 (diff) | |
download | crawl-ref-3d81bd7a6b61c60f49995ad85787afa7452a7965.tar.gz crawl-ref-3d81bd7a6b61c60f49995ad85787afa7452a7965.zip |
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
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 29 |
1 files changed, 9 insertions, 20 deletions
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(); |