summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-04 13:15:07 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-04 13:15:07 +0000
commit40e2d7d94c4dff6c8e9a0b31139d86adcbb91e7c (patch)
treead874947291db76da968d20c26cdc6507dccf13b /crawl-ref/source/religion.cc
parent80c38b0682f61fc2901af257cc115676bacc9bde (diff)
downloadcrawl-ref-40e2d7d94c4dff6c8e9a0b31139d86adcbb91e7c.tar.gz
crawl-ref-40e2d7d94c4dff6c8e9a0b31139d86adcbb91e7c.zip
Part two of godly changes.
Trog's abilities Might and Haste have been replaced with Regeneration (Trog's Hand) and summoning (Brothers in Arms). Right now, berserking summonings don't behave as intended as they'd rather follow the player than attack a monster closer to them. Also, they should disappear when Berserk runs out. God gifts of Trog and Okawaru are now tweaked towards damage (Trog) or accuracy (Oki). In general, gifts no longer need praying to appear. Right now, this means that they're more likely (I think), so the gift timeout numbers will probably have to be changed. I've also done the much-needed update of tutorial.cc, so that it now gives correct information about praying, saccing and escape hatches. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1962 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc29
1 files changed, 19 insertions, 10 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index aa2f3161e7..d382cd7b9d 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -143,7 +143,7 @@ const char* god_gain_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] =
"", "" },
// Okawaru
{ "give your body great, but temporary strength",
- "call upon Okawaru for minor healing",
+ "",
"",
"",
"haste yourself" },
@@ -161,9 +161,9 @@ const char* god_gain_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] =
"" },
// Trog
{ "go berserk at will",
- "give your body great, but temporary, strength",
+ "call upon Trog for regeneration",
"",
- "haste yourself",
+ "call in reinforcement",
"" },
// Nemelex
{ "peek at the first card of a deck",
@@ -229,7 +229,7 @@ const char* god_lose_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] =
"" },
// Okawaru
{ "give your body great, but temporary strength",
- "call upon Okawaru for minor healing",
+ "",
"",
"",
"haste yourself" },
@@ -247,9 +247,9 @@ const char* god_lose_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] =
"" },
// Trog
{ "go berserk at will",
- "give your body great, but temporary, strength",
+ "call upon Trog for regeneration",
"",
- "haste yourself",
+ "call in reinforcement",
"" },
// Nemelex
{ "peek at the first card of a deck",
@@ -722,8 +722,6 @@ std::string god_prayer_reaction()
void pray()
{
- const bool was_praying = (you.duration[DUR_PRAYER] != 0);
-
if (silenced(you.x_pos, you.y_pos))
{
mpr("You are unable to make a sound!");
@@ -797,8 +795,6 @@ void pray()
mprf(MSGCH_DIAGNOSTICS, "piety: %d", you.piety );
#endif
- if (!was_praying)
- do_god_gift();
} // end pray()
const char *god_name( god_type which_god, bool long_name ) // mv - rewritten
@@ -1412,7 +1408,11 @@ void gain_piety(int pgn)
if (you.piety > 199
|| (you.piety > 150 && one_chance_in(3))
|| (you.piety > 100 && one_chance_in(3)))
+ {
+ if (you.piety > 150)
+ do_god_gift();
return;
+ }
}
else
{
@@ -2852,6 +2852,15 @@ void god_pitch(god_type which_god)
simple_god_message( info );
more();
+
+ if (you.religion == GOD_ELYVILON)
+ {
+ mpr("You can now call upon Elyvilon to destroy weapons lying on the ground.");
+ }
+ else if (you.religion == GOD_TROG)
+ {
+ mpr("You can now call upon Trog to burn books in your surroundings.");
+ }
if (you.worshipped[you.religion] < 100)
you.worshipped[you.religion]++;