diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2011-02-19 19:33:03 +0000 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2011-02-19 22:20:51 +0000 |
commit | 1c3772e603af46d892b04a7586e2da399757c56e (patch) | |
tree | dce6b1cb039d4b748c135986b3b5e9ecbd691c37 /crawl-ref/source/ng-wanderer.cc | |
parent | a057bea396d6d094c7e06f67b55ef873cd5a3f84 (diff) | |
download | crawl-ref-1c3772e603af46d892b04a7586e2da399757c56e.tar.gz crawl-ref-1c3772e603af46d892b04a7586e2da399757c56e.zip |
Consolidate the books of Minor Magic into a single book
Wizards always start with this new book of Minor Magic, containing:
Magic Dart, Throw Flame, Blink, Call Imp, Repel Missiles, Slow, Mephitic
Cloud.
Diffstat (limited to 'crawl-ref/source/ng-wanderer.cc')
-rw-r--r-- | crawl-ref/source/ng-wanderer.cc | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/crawl-ref/source/ng-wanderer.cc b/crawl-ref/source/ng-wanderer.cc index e42bb08e54..9a12f44634 100644 --- a/crawl-ref/source/ng-wanderer.cc +++ b/crawl-ref/source/ng-wanderer.cc @@ -294,36 +294,22 @@ static void _give_wanderer_book(skill_type skill, int & slot) switch((int)skill) { case SK_SPELLCASTING: - switch (random2(3)) - { - case 0: - book_type = BOOK_MINOR_MAGIC_I; - break; - case 1: - book_type = BOOK_MINOR_MAGIC_II; - break; - case 2: - book_type = BOOK_MINOR_MAGIC_III; - break; - } + book_type = BOOK_MINOR_MAGIC_I; break; case SK_CONJURATIONS: - switch (random2(5)) + switch (random2(4)) { case 0: book_type = BOOK_MINOR_MAGIC_I; break; case 1: - book_type = BOOK_MINOR_MAGIC_II; - break; - case 2: book_type = BOOK_CONJURATIONS_I; break; - case 3: + case 2: book_type = BOOK_CONJURATIONS_II; break; - case 4: + case 3: book_type = BOOK_YOUNG_POISONERS; break; } @@ -333,7 +319,7 @@ static void _give_wanderer_book(skill_type skill, int & slot) switch (random2(2)) { case 0: - book_type = BOOK_MINOR_MAGIC_III; + book_type = BOOK_MINOR_MAGIC_I; break; case 1: book_type = BOOK_CALLINGS; @@ -365,30 +351,24 @@ static void _give_wanderer_book(skill_type skill, int & slot) break; case SK_FIRE_MAGIC: - switch (random2(3)) + switch (random2(2)) { case 0: - book_type = BOOK_MINOR_MAGIC_I; - break; - case 1: book_type = BOOK_FLAMES; break; - case 2: + case 1: book_type = BOOK_CONJURATIONS_I; break; } break; case SK_ICE_MAGIC: - switch (random2(3)) + switch (random2(2)) { case 0: - book_type = BOOK_MINOR_MAGIC_II; - break; - case 1: book_type = BOOK_FROST; break; - case 2: + case 1: book_type = BOOK_CONJURATIONS_II; break; } |