summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-08-05 13:01:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-08-05 13:01:11 +0200
commit39f7220e9aee8108bf0144565e46f1f2a399105e (patch)
treeb18eb826ca15140e247943b21b912298bd70662a /crawl-ref/source/artefact.cc
parentaae68d51e96970e97268635bb98518e1fa7a7d4a (diff)
downloadcrawl-ref-39f7220e9aee8108bf0144565e46f1f2a399105e.tar.gz
crawl-ref-39f7220e9aee8108bf0144565e46f1f2a399105e.zip
Drop some randart power_level oddities.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 61a920e2b3..58077e4209 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -702,6 +702,8 @@ static void _get_randart_properties(const item_def &item,
if (aclass == OBJ_WEAPONS) // Only weapons get brands, of course.
{
+ power_level++; // at least a brand
+
if (is_range_weapon(item))
{
proprt[ARTP_BRAND] = random_choose_weighted(
@@ -723,8 +725,6 @@ static void _get_randart_properties(const item_def &item,
else if (one_chance_in(5))
proprt[ARTP_BRAND] = SPWPN_PENETRATION;
}
-
- power_level++;
}
else if (is_demonic(item) && x_chance_in_y(7, 9))
{
@@ -737,7 +737,7 @@ static void _get_randart_properties(const item_def &item,
SPWPN_PAIN,
SPWPN_VENOM,
-1);
- power_level += 2;
+ power_level++; // Demon weapons get an extra penalty -- why?
// fall back to regular melee brands 2/9 of the time
}
else
@@ -757,10 +757,6 @@ static void _get_randart_properties(const item_def &item,
13, SPWPN_ANTIMAGIC,
3, SPWPN_DISTORTION,
0);
-
- // What's the point in this logic?
- if (!is_demonic(item) && proprt[ARTP_BRAND] != SPWPN_DISTORTION)
- power_level++;
}
// no brand = magic flag to reject and retry
@@ -987,7 +983,7 @@ static void _get_randart_properties(const item_def &item,
power_level++;
}
- // Armours get fewer powers, and are also less likely to be cursed
+ // Armours get fewer powers, and are also more likely to be cursed
// than weapons.
if (aclass == OBJ_ARMOUR)
power_level -= 4;