From cd4f718dbcb7974ef1762c87b5e13f0a38df0961 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 20 Dec 2008 02:26:25 +0000 Subject: 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 --- crawl-ref/source/directn.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'crawl-ref/source/directn.cc') 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); -- cgit v1.2.3-54-g00ecf