summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-11 16:08:08 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-11 16:08:08 +0000
commit0a3ce5265cc63bdc730069dfdb21ea0385f3b85c (patch)
treee9c3c8ff92081d76c30225a8a8e586f3746873cc /crawl-ref
parent02e8a1b752318d020087e69cca004534b518ddea (diff)
downloadcrawl-ref-0a3ce5265cc63bdc730069dfdb21ea0385f3b85c.tar.gz
crawl-ref-0a3ce5265cc63bdc730069dfdb21ea0385f3b85c.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10159 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 1acc78da33..b5b42cee57 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1137,7 +1137,7 @@ static void _give_nemelex_gift()
return;
// Nemelex will give at least one gift early.
- if (you.num_gifts[GOD_NEMELEX_XOBEH] == 0
+ if (!you.num_gifts[GOD_NEMELEX_XOBEH]
&& x_chance_in_y(you.piety + 1, piety_breakpoint(1))
|| one_chance_in(3) && x_chance_in_y(you.piety + 1, MAX_PIETY)
&& !you.attribute[ATTR_CARD_COUNTDOWN])
@@ -1920,7 +1920,7 @@ static void _do_god_gift(bool prayed_for)
more();
_inc_gift_timeout(30 + random2avg(19, 2));
- you.num_gifts[ you.religion ]++;
+ you.num_gifts[you.religion]++;
take_note(Note(NOTE_GOD_GIFT, you.religion));
}
break;
@@ -2034,7 +2034,7 @@ static void _do_god_gift(bool prayed_for)
more();
_inc_gift_timeout(40 + random2avg(19, 2));
- you.num_gifts[ you.religion ]++;
+ you.num_gifts[you.religion]++;
take_note(Note(NOTE_GOD_GIFT, you.religion));
}
@@ -2048,10 +2048,10 @@ static void _do_god_gift(bool prayed_for)
} // end of gift giving
#if DEBUG_DIAGNOSTICS || DEBUG_GIFTS
- if (old_gifts < you.num_gifts[ you.religion ])
+ if (old_gifts < you.num_gifts[you.religion])
{
mprf(MSGCH_DIAGNOSTICS, "Total number of gifts from this god: %d",
- you.num_gifts[ you.religion ] );
+ you.num_gifts[you.religion]);
}
#endif
}
@@ -3405,7 +3405,7 @@ void gain_piety(int pgn)
if (you.piety > 160 && old_piety <= 160)
{
- if (you.num_gifts[you.religion] == 0)
+ if (!you.num_gifts[you.religion])
{
if (you.religion == GOD_SHINING_ONE || you.religion == GOD_LUGONU)
simple_god_message(" will now bless your weapon at an altar... once.");
@@ -4114,7 +4114,7 @@ void lose_piety(int pgn)
if (!player_under_penance() && you.piety != old_piety)
{
if (you.piety <= 160 && old_piety > 160
- && you.num_gifts[you.religion] == 0)
+ && !you.num_gifts[you.religion])
{
if (you.religion == GOD_SHINING_ONE || you.religion == GOD_LUGONU)
simple_god_message(" is no longer ready to bless your weapon.");