summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/dat/descript/gods.txt8
-rw-r--r--crawl-ref/source/describe.cc29
-rw-r--r--crawl-ref/source/religion.cc2
3 files changed, 18 insertions, 21 deletions
diff --git a/crawl-ref/source/dat/descript/gods.txt b/crawl-ref/source/dat/descript/gods.txt
index 891a49fb6e..16368ab777 100644
--- a/crawl-ref/source/dat/descript/gods.txt
+++ b/crawl-ref/source/dat/descript/gods.txt
@@ -157,6 +157,14 @@ Yredelemnul will also sporadically gift you with stronger undead
servants. Sometimes, Yredelemnul may directly intervene to save a
follower's life.
%%%%
+Xom powers
+
+To worship Xom is to live riskily. In a good mood Xom may shower you
+with gifts, while at other times this capricious god could decide to
+"spice things up a little" and send you to your doom. If you prove
+yourself the stronger, so much the better; if not, well, there'll be
+other playthings...
+%%%%
# no active powers of Vehumet
%%%%
Okawaru powers
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();
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index c531c96366..eba5c836c5 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -464,7 +464,7 @@ bool god_gives_permanent_followers(god_type god)
std::string get_god_powers(god_type which_god)
{
// Return early for the special cases.
- if (which_god == GOD_NO_GOD || which_god == GOD_XOM)
+ if (which_god == GOD_NO_GOD)
return "";
std::string result = getLongDescription(god_name(which_god) + " powers");