summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-13 10:27:08 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-13 10:27:08 +0000
commit2ce8ccfa9ec7125c1519f2b9efbe1fe25aa5ad48 (patch)
treed97ccba02db3882f67742df0375d876486b20cd4 /crawl-ref/source
parent7400e2b500bba61682a888a3293e3c382224014e (diff)
downloadcrawl-ref-2ce8ccfa9ec7125c1519f2b9efbe1fe25aa5ad48.tar.gz
crawl-ref-2ce8ccfa9ec7125c1519f2b9efbe1fe25aa5ad48.zip
Fog now makes poison and steam (5% chance of each) instead of the old
10% chance for miasma (Erik.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2845 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/it_use2.cc34
-rw-r--r--crawl-ref/source/item_use.cc3
2 files changed, 14 insertions, 23 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 6eeb4ac953..e129ba8de3 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -308,30 +308,20 @@ bool potion_effect( potion_type pot_eff, int pow )
case POT_BLOOD:
if (you.species == SP_VAMPIRE)
{
- int temp_rand = random2(9);
- strcpy(info, (temp_rand == 0) ? "human" :
- (temp_rand == 1) ? "rat" :
- (temp_rand == 2) ? "goblin" :
- (temp_rand == 3) ? "elf" :
- (temp_rand == 4) ? "goat" :
- (temp_rand == 5) ? "sheep" :
- (temp_rand == 6) ? "gnoll" :
- (temp_rand == 7) ? "sheep"
- : "yak");
-
- mprf("Yummy - fresh %s blood!", info);
-
- lessen_hunger(1000, true);
- mpr("You feel better.");
- inc_hp(1 + random2(10), false);
+ const char* names[] = { "human", "rat", "goblin",
+ "elf", "goat", "sheep",
+ "sheep", "gnoll", "yak" };
+
+ mprf("Yummy - fresh %s blood!", RANDOM_ELEMENT(names));
+ lessen_hunger(1000, true);
+ mpr("You feel better.");
+ inc_hp(1 + random2(10), false);
}
else
{
- bool likes_blood = (you.omnivorous()
- || you.mutation[MUT_CARNIVOROUS]);
-
- if (likes_blood)
+ if (you.omnivorous() || you.mutation[MUT_CARNIVOROUS])
{
+ // Likes it
mpr("This tastes like blood.");
lessen_hunger(200, true);
}
@@ -508,8 +498,8 @@ bool unwield_item(bool showMsgs)
// This does *not* call ev_mod!
void unwear_armour(char unw)
{
- you.redraw_armour_class = 1;
- you.redraw_evasion = 1;
+ you.redraw_armour_class = true;
+ you.redraw_evasion = true;
item_def &item(you.inv[unw]);
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index e415a4f369..b90e378e7a 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3876,7 +3876,8 @@ void read_scroll(void)
case SCR_FOG:
mpr("The scroll dissolves into smoke.");
- big_cloud( one_chance_in(10) ? CLOUD_MIASMA : random_smoke_type(),
+ big_cloud( one_chance_in(20) ? CLOUD_POISON :
+ (one_chance_in(19) ? CLOUD_STEAM : random_smoke_type()),
KC_YOU, you.x_pos, you.y_pos, 50, 8 + random2(8));
break;