summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 21:16:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 21:16:36 +0000
commitdf5bb9a76b2c11725c8833706ca738aa201d1202 (patch)
tree0465daaa0835a06e4aad30b504f76b84f9d36811 /crawl-ref/source/fight.cc
parent019348774d4d0235e851a00ccb46559a24d2d779 (diff)
downloadcrawl-ref-df5bb9a76b2c11725c8833706ca738aa201d1202.tar.gz
crawl-ref-df5bb9a76b2c11725c8833706ca738aa201d1202.zip
Yellow wasps have less chance to paralyse than red wasps.
Don't generate lava creatures in the shallow dungeon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1134 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index a59d082be9..1411c52c2e 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2663,10 +2663,14 @@ void melee_attack::mons_do_poison(const mon_attack_def &attk)
void melee_attack::wasp_paralyse_defender()
{
// [dshaligram] Adopted 4.1.2's wasp mechanics, in slightly modified form.
- if (attacker->id() == MONS_RED_WASP)
+ if (attacker->id() == MONS_RED_WASP || one_chance_in(3))
defender->poison( attacker, coinflip()? 2 : 1 );
- if (!defender->res_poison() && one_chance_in( damage_done > 4? 3 : 20 ))
+ int paralyse_roll = (damage_done > 4? 3 : 20);
+ if (attacker->id() == MONS_YELLOW_WASP)
+ paralyse_roll += 7;
+
+ if (!defender->res_poison() && one_chance_in(paralyse_roll))
defender->paralyse( roll_dice(1, 3) );
else
defender->slow_down( roll_dice(1, 3) );