diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-22 00:17:41 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-22 00:17:41 +0000 |
commit | f5e19148b9db8615efdae2ae247a291aa05610b2 (patch) | |
tree | 97db6c920af8ab696d02614daf985563a274a4f8 /crawl-ref/source/newgame.cc | |
parent | 184808a401fe41f95d8404cc50fdef600196f5da (diff) | |
download | crawl-ref-f5e19148b9db8615efdae2ae247a291aa05610b2.tar.gz crawl-ref-f5e19148b9db8615efdae2ae247a291aa05610b2.zip |
PCs who start with spells should always have Spellcasting skill,
even if they're from non-magically-apt races.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1905 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 245c3300b7..6aae2c64c6 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -553,6 +553,13 @@ static void reassess_starting_skills() else break; } + + // Spellcasters should always have Spellcasting skill. + if ( i == SK_SPELLCASTING && you.skills[i] == 0 ) + { + you.skill_points[i] = (skill_exp_needed(2) * sp_diff) / 100; + you.skills[i] = 1; + } } } |