summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-07-28 04:28:51 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-07-28 22:01:28 -0400
commit0534ad870240480d30f0842cbcf9055c90840b45 (patch)
treeae6041f9c7da9d77f78d313c5b4bd71a8d8d8f2e /crawl-ref/source/religion.cc
parentc233d03cb8852cbff59ac5adefa3cbe34d0e1e35 (diff)
downloadcrawl-ref-0534ad870240480d30f0842cbcf9055c90840b45.tar.gz
crawl-ref-0534ad870240480d30f0842cbcf9055c90840b45.zip
Remove meaningless comments from handle_god_time()
Mostly descriptions of ancient design decisions, a couple attempts to explain why gods have particular piety decay rates which don't make any sense. (Such as stating some gods have fast decay because they accept corpse sacrifices when there are gods with the same decay rate which don't.)
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc26
1 files changed, 9 insertions, 17 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 04a0addf08..b24ef5cb9f 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -3927,7 +3927,6 @@ bool god_protects_from_harm()
return false;
}
-//jmf: moved stuff from effects::handle_time()
void handle_god_time(int time_delta)
{
UNUSED(time_delta);
@@ -3955,11 +3954,6 @@ void handle_god_time(int time_delta)
{
switch (you.religion)
{
- case GOD_XOM:
-// Moved to _player_reacts()
-// xom_tick();
- return;
-
case GOD_ELYVILON:
if (one_chance_in(50))
lose_piety(1);
@@ -3983,7 +3977,6 @@ void handle_god_time(int time_delta)
lose_piety(1);
break;
- // These gods accept corpses, so they time-out faster.
case GOD_OKAWARU:
case GOD_TROG:
if (one_chance_in(14))
@@ -4000,36 +3993,35 @@ void handle_god_time(int time_delta)
break;
case GOD_NEMELEX_XOBEH:
- // Nemelex is relatively patient.
if (one_chance_in(35))
lose_piety(1);
break;
case GOD_SIF_MUNA:
- // [dshaligram] Sif Muna is now very patient - has to be
- // to make up for the new spell training requirements, else
- // it's practically impossible to get Master of Arcane status.
if (one_chance_in(100))
lose_piety(1);
break;
- case GOD_FEDHAS:
- case GOD_CHEIBRIADOS:
- // Fedhas' piety is stable over time but we need a case here to
- // avoid the error message below.
- break;
-
case GOD_ASHENZARI:
if (one_chance_in(25))
lose_piety(1);
break;
+ case GOD_FEDHAS:
+ case GOD_CHEIBRIADOS:
+ // These gods do not lose piety over time but we need a case here
+ // to avoid the error message below.
+ break;
+
case GOD_GOZAG:
+ case GOD_XOM:
+ // Gods without normal piety do nothing each tick.
return;
default:
die("Bad god, no bishop!");
return;
+
}
if (you.piety < 1)