From 7a66364b0a9a5ee83119698e5d84b8293d3b3b62 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 12 Nov 2008 22:47:16 +0000 Subject: Added crawl.process_keys to user Lua API to allow a Lua macro to ask Crawl to process keystrokes immediately, i.e., not wait until the macro has finished running. Also removed player EV penalty during run/rest/travel. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7443 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index f796518b40..7a66a9538a 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6416,7 +6416,8 @@ int player::melee_evasion(const actor *act) const { return (player_evasion() - ((!act || act->visible()) ? 0 : 10) - - (you_are_delayed()? 5 : 0)); + - (you_are_delayed() + && !is_run_delay(current_delay_action())? 5 : 0)); } void player::heal(int amount, bool max_too) -- cgit v1.2.3-54-g00ecf