diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-09 10:06:06 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-09 10:06:06 +0000 |
commit | 92294895904bb5be52eca509d6d1ec0549cd38d7 (patch) | |
tree | e81296c7b30c98f86ab64c53044a1f39c5a0c3a0 /crawl-ref/source/effects.cc | |
parent | 244b7e9117af1ebf239848abfb000f99da5a80d6 (diff) | |
download | crawl-ref-92294895904bb5be52eca509d6d1ec0549cd38d7.tar.gz crawl-ref-92294895904bb5be52eca509d6d1ec0549cd38d7.zip |
Backported fixes from trunk:1374:
* Goblins and orcs may get blowguns.
* Acquirement handles books of minor magic and conjurations correctly.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1433 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 30dbc1be0c..04ba728117 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1220,16 +1220,16 @@ bool acquirement(unsigned char force_class, int agent) if (thing.base_type == OBJ_BOOKS) { - if (thing.base_type == BOOK_MINOR_MAGIC_I - || thing.base_type == BOOK_MINOR_MAGIC_II - || thing.base_type == BOOK_MINOR_MAGIC_III) + if (thing.sub_type == BOOK_MINOR_MAGIC_I + || thing.sub_type == BOOK_MINOR_MAGIC_II + || thing.sub_type == BOOK_MINOR_MAGIC_III) { you.had_book[ BOOK_MINOR_MAGIC_I ] = 1; you.had_book[ BOOK_MINOR_MAGIC_II ] = 1; you.had_book[ BOOK_MINOR_MAGIC_III ] = 1; } - else if (thing.base_type == BOOK_CONJURATIONS_I - || thing.base_type == BOOK_CONJURATIONS_II) + else if (thing.sub_type == BOOK_CONJURATIONS_I + || thing.sub_type == BOOK_CONJURATIONS_II) { you.had_book[ BOOK_CONJURATIONS_I ] = 1; you.had_book[ BOOK_CONJURATIONS_II ] = 1; |