From: PatR Date: Mon, 5 Mar 2018 20:26:44 +0000 (-0800) Subject: stuck_in_wall tweak X-Git-Tag: NetHack-3.6.1_RC01~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a43b2086e46d251ebba12ae211cc25463923868a;p=nethack 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. --- 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.");