summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
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." );
}