From 3c9a8035199bcaf485557df84a37a557426ff915 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sat, 16 Jan 2010 02:27:34 +0100 Subject: Don't ask confirmation when using an identified Tome of Destruction. --- crawl-ref/source/it_use3.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index ea3a383bc5..174522f204 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -484,11 +484,14 @@ void tome_of_power(int slot) msg::stream << "The book opens to a page covered in " << weird_writing() << '.' << std::endl; - set_ident_flags(you.inv[slot], ISFLAG_KNOW_TYPE); you.turn_is_over = true; + if (!item_ident(you.inv[slot], ISFLAG_KNOW_TYPE)) + { + set_ident_flags(you.inv[slot], ISFLAG_KNOW_TYPE); - if (!yesno("Read it?", false, 'n')) - return; + if (!yesno("Read it?", false, 'n')) + return; + } if (player_mutation_level(MUT_BLURRY_VISION) > 0 && x_chance_in_y(player_mutation_level(MUT_BLURRY_VISION), 4)) -- cgit v1.2.3-54-g00ecf