summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-20 02:26:25 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-20 02:26:25 +0000
commitcd4f718dbcb7974ef1762c87b5e13f0a38df0961 (patch)
treea9fda3e09706d01703795039d33ab9db9a6d1a2a /crawl-ref/source/directn.cc
parentf4cd5aede38a820cc5ab7137b8cc1a0927ae7f3e (diff)
downloadcrawl-ref-cd4f718dbcb7974ef1762c87b5e13f0a38df0961.tar.gz
crawl-ref-cd4f718dbcb7974ef1762c87b5e13f0a38df0961.zip
Some wizard/debugging commands:
* The &" command now shows the total experience value of all monster on the level. * &G now prevents dismissed monsters from dropping their original equipment, except for unrandarts and fixed arts. You can force the dismissed monsters to drop all of their non-summoned items by adding "keepitem" to the regexp string. * &R can now either change the random monster spawn rate for the current level, or immediately spawn a given number of random monsters. * &^D can be used to examine and alter player enchantments/durations. * The targeting command "S" can be used to turn a permanent monster into a summoned one. * The targeting command "~" can be used to polymorph a monster into one of a particular type. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7870 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index d6d09117d8..f07d04864c 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1415,6 +1415,27 @@ void direction(dist& moves, targeting_type restricts,
debug_miscast(mid);
break;
+
+ case CMD_TARGET_WIZARD_MAKE_SUMMONED:
+ if (!you.wizard || !in_bounds(moves.target))
+ break;
+ mid = mgrd(moves.target);
+ if (mid == NON_MONSTER) // can put in terrain description here
+ break;
+
+ wizard_make_monster_summoned(&menv[mid]);
+ break;
+
+ case CMD_TARGET_WIZARD_POLYMORPH:
+ if (!you.wizard || !in_bounds(moves.target))
+ break;
+ mid = mgrd(moves.target);
+ if (mid == NON_MONSTER) // can put in terrain description here
+ break;
+
+ wizard_polymorph_monster(&menv[mid]);
+ break;
+
#endif
case CMD_TARGET_DESCRIBE:
full_describe_square(moves.target);