summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-01 07:51:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-01 07:51:02 +0000
commitde2ef98bacd84d676d75948fa33075fa55b99c18 (patch)
tree87b79b98fa685a017c1c13ba4494c8b17d181f59 /crawl-ref/source/acr.cc
parentae65d11576dbc6e348b439a13bb7b6c6712c827c (diff)
downloadcrawl-ref-de2ef98bacd84d676d75948fa33075fa55b99c18.tar.gz
crawl-ref-de2ef98bacd84d676d75948fa33075fa55b99c18.zip
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
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc6
1 files changed, 2 insertions, 4 deletions
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;
}