diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-01-16 02:27:34 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-01-16 02:27:34 +0100 |
commit | 3c9a8035199bcaf485557df84a37a557426ff915 (patch) | |
tree | 08aefe796fbb186785ba52a12f6f19d12b6f5842 /crawl-ref | |
parent | 11cb8e40307220e66f073eedcd779f75956d725f (diff) | |
download | crawl-ref-3c9a8035199bcaf485557df84a37a557426ff915.tar.gz crawl-ref-3c9a8035199bcaf485557df84a37a557426ff915.zip |
Don't ask confirmation when using an identified Tome of Destruction.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 9 |
1 files changed, 6 insertions, 3 deletions
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)) |