diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-07 14:23:40 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-07 14:23:40 +0000 |
commit | ccb9171b5884a80787b98b1845f5a8e8e6275165 (patch) | |
tree | d1bbb778a06886d85d6a155b4b7aef750f04e5aa /crawl-ref/source/it_use3.cc | |
parent | bdc37d28a47c51a60bf740ae42b8cbd4ea4398ee (diff) | |
download | crawl-ref-ccb9171b5884a80787b98b1845f5a8e8e6275165.tar.gz crawl-ref-ccb9171b5884a80787b98b1845f5a8e8e6275165.zip |
Fix potions of decay created by mummy curse sometimes being inscribed.
Change inscription prompt to work as intended by David, after all. :)
Make manuals use a reading counter (plus2) that is initialized with
3 + random2(15). Once it reaches 0, the manual crumbles to dust.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6443 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index ef0ed9af09..19eb0173e7 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -942,15 +942,14 @@ void skill_manual(int slot) exercise(skill, 500); - if (one_chance_in(10)) + if (--manual.plus2 <= 0) { mpr("The manual crumbles into dust."); dec_inv_item_quantity( slot, 1 ); } else - { mpr("The manual looks somewhat more worn."); - } + xom_is_stimulated(14); } |