summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index a037b25dec..a4f3c9b3f6 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -197,7 +197,7 @@ int calc_heavy_armour_penalty( bool random_factor )
const bool ur_armed = (you.weapon() != NULL);
int heavy_armour = 0;
- // heavy armour modifiers for shield borne
+ // Heavy armour modifiers for shield borne.
if (player_wearing_slot(EQ_SHIELD))
{
switch (you.shield()->sub_type)
@@ -219,7 +219,9 @@ int calc_heavy_armour_penalty( bool random_factor )
{
if (you.skills[SK_SHIELDS] < maybe_random2(13,
random_factor))
+ {
heavy_armour += maybe_random2(3, random_factor);
+ }
}
}
break;