summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2014-04-10 01:28:51 +0200
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-13 23:41:47 -0700
commit3832802e78ab0fb923eb014c907b8b8fbc1f9715 (patch)
treea22332db8ea239195f0495b2adcf3dbb1b8ef2f4 /crawl-ref/source/artefact.cc
parent161eaca0bb6fc69738902d78136a32aa294b757f (diff)
downloadcrawl-ref-3832802e78ab0fb923eb014c907b8b8fbc1f9715.tar.gz
crawl-ref-3832802e78ab0fb923eb014c907b8b8fbc1f9715.zip
No longer consider Dam+ boring on artefacts
Slaying rings are the rarest base type, and the effects of slaying are definitely large enough now to no longer warrant this special treatment.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 03fad8b582..e4dffc188a 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -663,12 +663,11 @@ static int _randart_add_one_property(const item_def &item,
}
// An artefact will pass this check if it has any non-stat properties, and
-// also if it has enough stat properties (Str, Dex, Int, Slay).
+// also if it has enough stat properties (AC, EV, Str, Dex, Int).
// Returns how many (more) stat properties we need to add.
static int _need_bonus_stat_props(const artefact_properties_t &proprt)
{
int num_stats = 0;
- int num_acc_dam = 0;
for (int i = 0; i < ARTP_NUM_PROPERTIES; i++)
{
@@ -680,14 +679,10 @@ static int _need_bonus_stat_props(const artefact_properties_t &proprt)
if (i >= ARTP_AC && i <= ARTP_DEXTERITY)
num_stats++;
- else if (i == ARTP_SLAYING)
- num_acc_dam++;
else
return 0;
}
- num_stats += num_acc_dam;
-
// If an artefact has no properties at all, something is wrong.
if (num_stats == 0)
return 2;
@@ -697,10 +692,7 @@ static int _need_bonus_stat_props(const artefact_properties_t &proprt)
return 0;
// If an artefact has exactly one stat property, we might want to add
- // some more. (66% chance if it's Acc/Dam, else always.)
- if (num_acc_dam > 0)
- return random2(3);
-
+ // some more.
return 1 + random2(2);
}