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-05-30 19:44:18 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 19:44:18 +0000
commit1ddd66869baba3b2f47d0aca8e7810a8ed05b036 (patch)
treeedd352592a2bc354911b0b3f9ffb1480124b6370 /crawl-ref/source/debug.cc
parentd121c007bb2bb4b60d6b8299f87ea0b73036e1dc (diff)
downloadcrawl-ref-1ddd66869baba3b2f47d0aca8e7810a8ed05b036.tar.gz
crawl-ref-1ddd66869baba3b2f47d0aca8e7810a8ed05b036.zip
Autopickup freshly bottled blood potions.
Also, call autopickup() after a delayed weapon swap (presumably because we butchered/bottled one or more corpses before), so we can pick up all chunks/potions at the same time. Note that Vampires won't autopickup chunks, but autopickup will at least list stuff on the floor, which is also nice to have. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5347 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index d7b040207c..d38b849866 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -2112,10 +2112,11 @@ void debug_set_skills(void)
mpr( skill_name(skill) );
int amount = debug_prompt_for_int( "To what level? ", true );
- if (amount == -1)
+ if (amount < 0)
canned_msg( MSG_OK );
else
{
+ const int old_amount = you.skills[skill];
const int points = (skill_exp_needed( amount + 1 )
* species_skills( skill, you.species )) / 100;
@@ -2150,6 +2151,18 @@ void debug_set_skills(void)
default:
break;
}
+
+ mprf("%s %s to skill level %d.",
+ (old_amount < amount ? "Increased" :
+ old_amount > amount ? "Lowered"
+ : "Reset"),
+ skill_name(skill), amount);
+
+ if (skill == SK_STEALTH && amount == 27)
+ {
+ mpr("If you set the stealth skill to a value higher than 27, "
+ "hide mode is activated, and monsters won't notice you.");
+ }
}
}
} // end debug_add_skills()