From a43b2086e46d251ebba12ae211cc25463923868a Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 5 Mar 2018 12:26:44 -0800 Subject: [PATCH] stuck_in_wall tweak When divine aid granted temporary Passes_walls ability to stuck hero, it was giving 4d4 turns (4..16, avg 10). But the first warning that it's timing out is given at 4 turns left so wouldn't be seen if the random amount of time picked was the minimum. Switch to 4d4+4 (8..20, avg 14) so that the message at 4 turns left will always happen. --- src/pray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pray.c b/src/pray.c index 29a2bd601..646de494c 100644 --- a/src/pray.c +++ b/src/pray.c @@ -421,7 +421,7 @@ int trouble; Without something like this, fix_all_troubles can get stuck in an infinite loop trying to fix STUCK_IN_WALL and repeatedly failing. */ - set_itimeout(&HPasses_walls, (long) d(4, 4)); + set_itimeout(&HPasses_walls, (long) (d(4, 4) + 4)); /* 8..20 */ /* how else could you move between packed rocks or among lattice forming "solid" rock? */ You_feel("much slimmer.");