summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 01:11:58 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 01:11:58 +0000
commitedc341c548110085c149f8d017d70e98583cc5e6 (patch)
tree842c81d5eed92ae0289b7cc0428823117ddcf779 /crawl-ref/source/ouch.cc
parente6cf5d92186ff49c3718377e4b57627304c364ce (diff)
downloadcrawl-ref-edc341c548110085c149f8d017d70e98583cc5e6.tar.gz
crawl-ref-edc341c548110085c149f8d017d70e98583cc5e6.zip
Add still more minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10299 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 491354444f..33eb7a1285 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -842,15 +842,15 @@ static void _maybe_spawn_jellies(int dam, const char* aux,
if (death_source == NON_MONSTER)
return;
- monster_type mons;
+ monster_type mon;
const monster_type jellies[] = {
MONS_ACID_BLOB, MONS_AZURE_JELLY,
MONS_DEATH_OOZE
};
- // Exclude torment damage
+ // Exclude torment damage.
const char *ptr = strstr(aux, "torment");
- if (you.religion == GOD_JIYVA && you.piety >= 160 && ptr == NULL)
+ if (you.religion == GOD_JIYVA && you.piety > 160 && ptr == NULL)
{
int how_many = 0;
if (dam >= you.hp_max * 0.75)
@@ -872,9 +872,9 @@ static void _maybe_spawn_jellies(int dam, const char* aux,
int count_created = 0;
for (int i = 0; i < how_many; ++i)
{
- mons = RANDOM_ELEMENT(jellies);
- mgen_data mg (mons, BEH_STRICT_NEUTRAL, 0, 0, you.pos(),
- MHITNOT, 0, GOD_JIYVA);
+ mon = RANDOM_ELEMENT(jellies);
+ mgen_data mg(mon, BEH_STRICT_NEUTRAL, 0, 0, you.pos(),
+ MHITNOT, 0, GOD_JIYVA);
if (create_monster(mg) != -1)
count_created++;