diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-08 04:16:16 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-08 04:16:16 +0000 |
commit | 202da55ba94c6b9458594274e44870d6d6ab7632 (patch) | |
tree | 62d7e0530768a62a92687c3608f9c16edf93e70f /crawl-ref | |
parent | 34f2a2197a9d373ce51e1ec9eea3cbbd51293c76 (diff) | |
download | crawl-ref-202da55ba94c6b9458594274e44870d6d6ab7632.tar.gz crawl-ref-202da55ba94c6b9458594274e44870d6d6ab7632.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6897 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/acr.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/describe.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/food.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/ouch.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/religion.cc | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index f7baf679fa..a26541f3f7 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2677,7 +2677,7 @@ static void _decrement_durations() you.wield_change = true; } - // Vampire bat transformations are permanent (until ended.) + // Vampire bat transformations are permanent (until ended). if (you.species != SP_VAMPIRE || you.attribute[ATTR_TRANSFORMATION] != TRAN_BAT || you.duration[DUR_TRANSFORMATION] <= 5) diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 0214e6ca6f..8da813ba59 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -3105,14 +3105,14 @@ void describe_god( god_type which_god, bool give_title ) ""; have_any = true; - cprintf( "%s %s watches over you%s." EOL, - god_name(which_god).c_str(), how, when ); + cprintf("%s %s watches over you%s." EOL, + god_name(which_god).c_str(), how, when ); } if (which_god == GOD_ZIN) { have_any = true; - if (you.piety >= 30) + if (you.piety >= piety_breakpoint(0)) { cprintf("Praying to %s will provide sustenance if starving." EOL, god_name(which_god).c_str()); diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index bee77bf04d..e8a5320b64 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1430,7 +1430,7 @@ static void _eat_chunk( int chunk_effect, bool cannibal, int mon_intel ) if (you.species == SP_GHOUL) { - _heal_from_food((!one_chance_in(5)? hp_amt : 0), 0, + _heal_from_food((!one_chance_in(5) ? hp_amt : 0), 0, !one_chance_in(3), false); } } diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 6b5fa0f142..0b1ed073e1 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -828,11 +828,11 @@ void ouch( int dam, int death_source, kill_method_type death_type, { if (dam >= you.hp && god_protects_from_harm(you.religion)) { - simple_god_message( " protects you from harm!" ); + simple_god_message(" protects you from harm!"); return; } - dec_hp( dam, true ); + dec_hp(dam, true); // Even if we have low HP messages off, we'll still give a // big hit warning (in this case, a hit for half our HPs) -- bwr diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index d7db81e57b..db88cf9e37 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1704,7 +1704,7 @@ static void _do_god_gift(bool prayed_for) god_acting gdact; #if DEBUG_DIAGNOSTICS || DEBUG_GIFTS - int old_gifts = you.num_gifts[ you.religion ]; + int old_gifts = you.num_gifts[you.religion]; #endif // Consider a gift if we don't have a timeout and weren't already @@ -1727,7 +1727,7 @@ static void _do_god_gift(bool prayed_for) { god_speaks(you.religion, "Your stomach feels content."); set_hunger(6000, true); - lose_piety(5 + random2avg(10, 2) + (you.gift_timeout? 5 : 0)); + lose_piety(5 + random2avg(10, 2) + (you.gift_timeout ? 5 : 0)); _inc_gift_timeout(30 + random2avg(10, 2)); } break; |