summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-23 01:21:36 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-23 01:21:36 +0000
commit50c8807c05dc44cead92a13368926283bb35d3e7 (patch)
treec6a5acc18536f415580694996d69ee42c2fa4400 /crawl-ref/source/player.cc
parent5b76b7f58f91d6906b8b2f39621fe722dbcf81b8 (diff)
downloadcrawl-ref-50c8807c05dc44cead92a13368926283bb35d3e7.tar.gz
crawl-ref-50c8807c05dc44cead92a13368926283bb35d3e7.zip
Fix [2777074]: Properly add the negative dexterity effects from certain
scale mutations instead of subtracting them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9682 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 8663b0f499..82248cec33 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5562,7 +5562,7 @@ bool rot_player(int amount)
return (true);
}
-int count_worn_ego( int which_ego )
+int count_worn_ego(int which_ego)
{
int result = 0;
for (int slot = EQ_CLOAK; slot <= EQ_BODY_ARMOUR; ++slot)
@@ -5591,7 +5591,7 @@ static int _strength_modifier()
result += 3 * count_worn_ego(SPARM_STRENGTH);
// rings of strength
- result += player_equip( EQ_RINGS_PLUS, RING_STRENGTH );
+ result += player_equip(EQ_RINGS_PLUS, RING_STRENGTH);
// randarts of strength
result += scan_randarts(RAP_STRENGTH);
@@ -5603,7 +5603,7 @@ static int _strength_modifier()
- player_mutation_level(MUT_FLEXIBLE_WEAK);
// transformations
- switch ( you.attribute[ATTR_TRANSFORMATION] )
+ switch (you.attribute[ATTR_TRANSFORMATION])
{
case TRAN_STATUE: result += 2; break;
case TRAN_DRAGON: result += 10; break;
@@ -5626,7 +5626,7 @@ static int _int_modifier()
result += 3 * count_worn_ego(SPARM_INTELLIGENCE);
// rings of intelligence
- result += player_equip( EQ_RINGS_PLUS, RING_INTELLIGENCE );
+ result += player_equip(EQ_RINGS_PLUS, RING_INTELLIGENCE);
// randarts of intelligence
result += scan_randarts(RAP_INTELLIGENCE);
@@ -5649,7 +5649,7 @@ static int _dex_modifier()
result += 3 * count_worn_ego(SPARM_DEXTERITY);
// rings of dexterity
- result += player_equip( EQ_RINGS_PLUS, RING_DEXTERITY );
+ result += player_equip(EQ_RINGS_PLUS, RING_DEXTERITY);
// randarts of dexterity
result += scan_randarts(RAP_DEXTERITY);
@@ -5667,13 +5667,13 @@ static int _dex_modifier()
const int yellow_modifier[] = { 0, 0, -1, -2 };
const int red2_modifier[] = { 0, 0, -1, -2 };
- result -= grey2_modifier[player_mutation_level(MUT_GREY2_SCALES)];
- result -= metallic_modifier[player_mutation_level(MUT_METALLIC_SCALES)];
- result -= yellow_modifier[player_mutation_level(MUT_YELLOW_SCALES)];
- result -= red2_modifier[player_mutation_level(MUT_RED2_SCALES)];
+ result += grey2_modifier[player_mutation_level(MUT_GREY2_SCALES)];
+ result += metallic_modifier[player_mutation_level(MUT_METALLIC_SCALES)];
+ result += yellow_modifier[player_mutation_level(MUT_YELLOW_SCALES)];
+ result += red2_modifier[player_mutation_level(MUT_RED2_SCALES)];
// transformations
- switch ( you.attribute[ATTR_TRANSFORMATION] )
+ switch (you.attribute[ATTR_TRANSFORMATION])
{
case TRAN_SPIDER: result += 5; break;
case TRAN_STATUE: result -= 2; break;
@@ -5684,7 +5684,7 @@ static int _dex_modifier()
return (result);
}
-int stat_modifier( stat_type stat )
+int stat_modifier(stat_type stat)
{
switch (stat)
{