summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-07 14:23:40 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-07 14:23:40 +0000
commitccb9171b5884a80787b98b1845f5a8e8e6275165 (patch)
treed1bbb778a06886d85d6a155b4b7aef750f04e5aa /crawl-ref/source/debug.cc
parentbdc37d28a47c51a60bf740ae42b8cbd4ea4398ee (diff)
downloadcrawl-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/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index aaf7cce8a4..4ce700daa2 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -1370,8 +1370,12 @@ void wizard_create_spec_object()
{
special_wanted =
_debug_prompt_for_skill( "A manual for which skill? " );
+
if (special_wanted != -1)
- mitm[thing_created].plus = special_wanted;
+ {
+ mitm[thing_created].plus = special_wanted;
+ mitm[thing_created].plus2 = 3 + random2(15);
+ }
else
mpr( "Sorry, no books on that skill today." );
}