summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-wanderer.cc
diff options
context:
space:
mode:
authorMarvintheParanoidAndroid <chriscampbell89@gmail.com>2011-02-05 16:06:48 +0000
committerChris Campbell <chriscampbell89@gmail.com>2011-02-05 16:57:11 +0000
commitc97d7f5b540ebb66d3692e009a2a644f37be8c8e (patch)
tree40c53dbf4bcca637d635c866578057d2a202517e /crawl-ref/source/ng-wanderer.cc
parent1f3bf3c4c795c1efd8428945dd4ee6230ea6afc4 (diff)
downloadcrawl-ref-c97d7f5b540ebb66d3692e009a2a644f37be8c8e.tar.gz
crawl-ref-c97d7f5b540ebb66d3692e009a2a644f37be8c8e.zip
Don't give Wanderers with Conj/Poison skill the new book of Stalking
Add it as an option for wanderers with Tmut skill, though.
Diffstat (limited to 'crawl-ref/source/ng-wanderer.cc')
-rw-r--r--crawl-ref/source/ng-wanderer.cc21
1 files changed, 6 insertions, 15 deletions
diff --git a/crawl-ref/source/ng-wanderer.cc b/crawl-ref/source/ng-wanderer.cc
index 62b0563c04..2e70809554 100644
--- a/crawl-ref/source/ng-wanderer.cc
+++ b/crawl-ref/source/ng-wanderer.cc
@@ -304,12 +304,11 @@ static void _give_wanderer_book(skill_type skill, int & slot)
break;
case SK_CONJURATIONS:
- switch (random2(6))
+ switch (random2(5))
{
case 0:
book_type = BOOK_MINOR_MAGIC_I;
break;
-
case 1:
book_type = BOOK_MINOR_MAGIC_II;
break;
@@ -322,9 +321,6 @@ static void _give_wanderer_book(skill_type skill, int & slot)
case 4:
book_type = BOOK_YOUNG_POISONERS;
break;
- case 5:
- book_type = BOOK_STALKING;
- break;
}
break;
@@ -349,7 +345,7 @@ static void _give_wanderer_book(skill_type skill, int & slot)
break;
case SK_TRANSMUTATIONS:
- switch (random2(2))
+ switch (random2(3))
{
case 0:
book_type = BOOK_GEOMANCY;
@@ -357,6 +353,9 @@ static void _give_wanderer_book(skill_type skill, int & slot)
case 1:
book_type = BOOK_CHANGES;
break;
+ case 2:
+ book_type = BOOK_STALKING;
+ break;
}
break;
@@ -399,15 +398,7 @@ static void _give_wanderer_book(skill_type skill, int & slot)
break;
case SK_POISON_MAGIC:
- switch (random2(2))
- {
- case 0:
- book_type = BOOK_STALKING;
- break;
- case 1:
- book_type = BOOK_YOUNG_POISONERS;
- break;
- }
+ book_type = BOOK_YOUNG_POISONERS;
break;
case SK_HEXES: