diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-11 11:39:55 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-11 11:39:55 +0000 |
commit | e301d18c8ff880246d068b2081225a2385df206d (patch) | |
tree | 595349c2842461f0f076f562e9d4288f9b3b8277 /crawl-ref/source/skills.cc | |
parent | 7b339ae5ffe5b43232561f9fc2980aae1321b9a6 (diff) | |
download | crawl-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/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 50c3007374..e615753db4 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -190,7 +190,7 @@ static int exercise2( int exsk ) int i; // being good at some weapons makes others easier to learn: - if (exsk < SK_SLINGS) + if (exsk < SK_ARMOUR) { /* blades to blades */ if ((exsk == SK_SHORT_BLADES || exsk == SK_LONG_SWORDS) @@ -223,6 +223,22 @@ static int exercise2( int exsk ) { bonus += random2(3); } + + /* Slings and Throwing */ + if ((exsk == SK_SLINGS || exsk == SK_THROWING) + && (you.skills[SK_SLINGS] > you.skills[exsk] + || you.skills[SK_THROWING] > you.skills[exsk])) + { + bonus += random2(3); + } + + /* Darts and Throwing */ + if ((exsk == SK_DARTS || exsk == SK_THROWING) + && (you.skills[SK_DARTS] > you.skills[exsk] + || you.skills[SK_THROWING] > you.skills[exsk])) + { + bonus += random2(3); + } } // Quick fix for the fact that stealth can't be gained fast enough to |