summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-11 11:39:55 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-11 11:39:55 +0000
commite301d18c8ff880246d068b2081225a2385df206d (patch)
tree595349c2842461f0f076f562e9d4288f9b3b8277 /crawl-ref/source/effects.cc
parent7b339ae5ffe5b43232561f9fc2980aae1321b9a6 (diff)
downloadcrawl-ref-e301d18c8ff880246d068b2081225a2385df206d.tar.gz
crawl-ref-e301d18c8ff880246d068b2081225a2385df206d.zip
Reintroducing Throwing.
s/SK_RANGED_COMBAT/SK_THROWING Only thrown weapons, darts and slings train Throwing and benefit from this skill. Added Slings/Throwing and Darts/Throwing to the cross training pairs in skill2.cc. For most cases ranged combat could be simply replaced with throwing. For some, such as effSkill in item_use.cc or starting skills I tried to choose reasonable replacements. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2070 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 522a99f8f6..52d45c9caf 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -583,7 +583,7 @@ static int find_acquirement_subtype(object_class_type class_wanted,
continue;
int wskill = range_skill(OBJ_WEAPONS, i);
- if (wskill == SK_RANGED_COMBAT)
+ if (wskill == SK_THROWING)
wskill = weapon_skill(OBJ_WEAPONS, i);
if (wskill == skill && random2(count += acqweight) < acqweight)
@@ -593,7 +593,7 @@ static int find_acquirement_subtype(object_class_type class_wanted,
else if (class_wanted == OBJ_MISSILES)
{
int count = 0;
- int skill = SK_RANGED_COMBAT;
+ int skill = SK_THROWING;
for (int i = SK_SLINGS; i <= SK_DARTS; i++)
{