summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.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/clua.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/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 85e73b20df..c1a43d91ef 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1386,7 +1386,7 @@ static int l_item_weap_skill(lua_State *ls)
return (0);
int skill = range_skill(*item);
- if (skill == SK_RANGED_COMBAT)
+ if (skill == SK_THROWING)
skill = weapon_skill(*item);
if (skill == SK_FIGHTING)
return (0);