summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index bd98b43d61..bd4ee4a76d 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2424,7 +2424,7 @@ static void _generate_book_item(item_def& item, int allow_uniques,
continue;
}
}
- while (book_rarity(item.sub_type) == 100);
+ while (item.sub_type == BOOK_HEALING);
// Tome of destruction: rare!
if (item_level > 10 && x_chance_in_y(21 + item_level, 7000))
@@ -2664,7 +2664,7 @@ static void _generate_misc_item(item_def& item, int force_type, int item_race)
// Returns item slot or NON_ITEM if it fails.
int items( int allow_uniques, // not just true-false,
- // because of BCR acquirement hack
+ // because of BCR acquirement hack
object_class_type force_class, // desired OBJECTS class {dlb}
int force_type, // desired SUBTYPE - enum varies by OBJ
bool dont_place, // don't randomly place item on level
@@ -2681,9 +2681,9 @@ int items( int allow_uniques, // not just true-false,
// force_ego = SPWPN_VORPAL, and a random weapon of a type
// appropriate for the vorpal brand will be chosen.
ASSERT(force_ego <= 0
- || (force_class == OBJ_WEAPONS || force_class == OBJ_ARMOUR
- || force_class == OBJ_MISSILES)
- && force_type != OBJ_RANDOM);
+ || force_type != OBJ_RANDOM
+ && (force_class == OBJ_WEAPONS || force_class == OBJ_ARMOUR
+ || force_class == OBJ_MISSILES));
// Find an empty slot for the item (with culling if required).
int p = get_item_slot(10);