summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 23:24:34 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 23:24:34 +0000
commitf3b1762e5a7ce54cb41729e3d4cedf482c4a42e9 (patch)
treec30507d1b89fc4666967e913d39973c1c8b34bd9 /crawl-ref/source/it_use3.cc
parent07a3ce3ad486d8cbf07a1fda8b50a1d3d87b6143 (diff)
downloadcrawl-ref-f3b1762e5a7ce54cb41729e3d4cedf482c4a42e9.tar.gz
crawl-ref-f3b1762e5a7ce54cb41729e3d4cedf482c4a42e9.zip
* Fix Xom's interest wrapping around from 0 to 255. (!!!)
* In xom_acts, if Xom was bored (and now did something bad) reroll interest. * Greatly decrease amusement derived from the player entering a new level. (However, entering a new level via escape hatch or shaft is REALLY amusing, more so the deeper the shaft.) * Xom may be amused if you are caught in a net and there are hostile monsters around. * Fix draconian tiles not showing up correctly for Detect Creatures. * Improve card descriptions output for Triple Draw/Stack Five. * In inventory, add '&' hotkey for useless (== inedible) chunks. Still needs documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9557 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 3de3c87738..c0c1c13fe1 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -834,13 +834,12 @@ 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 (!yesno("Read it?"))
return;
- set_ident_flags( you.inv[slot], ISFLAG_KNOW_TYPE );
-
if (player_mutation_level(MUT_BLURRY_VISION) > 0
&& x_chance_in_y(player_mutation_level(MUT_BLURRY_VISION), 4))
{
@@ -875,7 +874,7 @@ void tome_of_power(int slot)
if (one_chance_in(5))
{
mpr("The book disappears in a mighty explosion!");
- dec_inv_item_quantity( slot, 1 );
+ dec_inv_item_quantity(slot, 1);
}
immolation(15, IMMOLATION_TOME, you.pos(), false, &you);
@@ -930,7 +929,9 @@ void skill_manual(int slot)
// a manual in advance.
you.turn_is_over = true;
item_def& manual(you.inv[slot]);
- set_ident_flags( manual, ISFLAG_KNOW_TYPE );
+ const bool known = item_type_known(manual);
+ if (!known)
+ set_ident_flags( manual, ISFLAG_KNOW_TYPE );
const int skill = manual.plus;
mprf("You read about %s.", skill_name(skill));
@@ -945,7 +946,7 @@ void skill_manual(int slot)
else
mpr("The manual looks somewhat more worn.");
- xom_is_stimulated(14);
+ xom_is_stimulated(known ? 14 : 64);
}
static bool box_of_beasts()