summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 18:32:53 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 18:32:53 +0000
commitdc24fce640225bfc22bfb7410a9b01c24801becc (patch)
treedc2ecea57d1c047614988b220aadca73430c8abf /crawl-ref/source/beam.cc
parent994900bb4da2dfc69735098a11d45f57b285eb7e (diff)
downloadcrawl-ref-dc24fce640225bfc22bfb7410a9b01c24801becc.tar.gz
crawl-ref-dc24fce640225bfc22bfb7410a9b01c24801becc.zip
Weakened monster lightning damage, dropped AC protection from lightning damage by half.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2440 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index d48cfc979f..11885cb32c 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3401,8 +3401,10 @@ static int affect_player( bolt &beam )
int roll = hurted;
#endif
- hurted -= random2( 1 + player_AC() );
-
+ int armour_damage_reduction = random2( 1 + player_AC() );
+ if (beam.flavour == BEAM_ELECTRICITY)
+ armour_damage_reduction /= 2;
+ hurted -= armour_damage_reduction;
// shrapnel
if (beam.flavour == BEAM_FRAG && !player_light_armour())