From de2ef98bacd84d676d75948fa33075fa55b99c18 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 1 Oct 2007 07:51:02 +0000 Subject: Overhaul trapping net escape functions. With the help of several factors (such as size, wielded weapon or stats) the game decides whether you should try to destroy the net to come free, or try to slip out of it. The same calculation also influences how long this will take. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2278 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 6fa1b88ade..e933640067 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -3124,8 +3124,7 @@ static void open_door(int move_x, int move_y, bool check_confused) if (you.attribute[ATTR_HELD]) { - // struggles against net, damaging it - free_self_from_net(true); + free_self_from_net(); you.turn_is_over = true; return; } @@ -3536,8 +3535,7 @@ static void move_player(int move_x, int move_y) if (you.attribute[ATTR_HELD]) { - // tries to escape from net (without damaging it, takes longer) - free_self_from_net(false); + free_self_from_net(); you.turn_is_over = true; return; } -- cgit v1.2.3-54-g00ecf