From d96a6c804f2602b5792428e0f932641ae536f281 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 17 Dec 2009 23:57:37 +0100 Subject: A wizard command "x,", to bring a mon down to 1hp. It could be made to ask for a specific number, but I'm too lazy to code that right now. --- crawl-ref/source/directn.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index f4e991f034..1526fd6255 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1595,6 +1595,16 @@ void direction(dist& moves, const targetting_type restricts, if (monster_at(moves.target)) debug_stethoscope(mgrd(moves.target)); break; + + case CMD_TARGET_WIZARD_HURT_MONSTER: + if (!you.wizard || !in_bounds(moves.target)) + break; + if (monster_at(moves.target)) + { + monster_at(moves.target)->hit_points = 1; + mpr("Brought the mon down to near death."); + } + break; #endif case CMD_TARGET_DESCRIBE: full_describe_square(moves.target); -- cgit v1.2.3-54-g00ecf