diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-25 18:18:52 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-25 18:18:52 +0000 |
commit | 043b5d69de4ee9f8b952488b1dc7e64a12d22f21 (patch) | |
tree | e1b87d9fd1d82909faf15a904323b346326b504d | |
parent | 6d82a40ed56b47de76f0c65edec84a566ee2497a (diff) | |
download | crawl-ref-043b5d69de4ee9f8b952488b1dc7e64a12d22f21.tar.gz crawl-ref-043b5d69de4ee9f8b952488b1dc7e64a12d22f21.zip |
Add minor consistency fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9830 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/religion.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 694d015740..28a42faf35 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -4381,7 +4381,7 @@ static void _ely_dull_inventory_weapons() simple_god_message( make_stringf(" dulls %syour weapons.", - num_dulled > 1 ? "" : "one of ").c_str(), + num_dulled == 1 ? "one of " : "").c_str(), GOD_ELYVILON); } } @@ -4729,7 +4729,7 @@ static bool _beogh_retribution() { std::ostringstream msg; msg << " throws " - << (num_created > 1 ? "implements" : "an implement") + << (num_created == 1 ? "an implement" : "implements") << " of " << (am_orc ? "orc slaying" : "electrocution") << " at you."; simple_god_message(msg.str().c_str(), god); @@ -7358,10 +7358,10 @@ static void _place_delayed_monsters() msg = replace_all(msg, " @an@", ""); } - if (placed > 1) - msg = replace_all(msg, "@s@", "s"); - else + if (placed == 1) msg = replace_all(msg, "@s@", ""); + else + msg = replace_all(msg, "@s@", "s"); prev_god = GOD_NO_GOD; _delayed_done_trigger_pos.pop_front(); @@ -7376,7 +7376,7 @@ static void _place_delayed_monsters() continue; } - // Fake it coming from simple_god_message(). + // Fake its coming from simple_god_message(). if (msg[0] == ' ' || msg[0] == '\'') msg = god_name(mg.god) + msg; |