Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does digging exercise strength?

2 views
Skip to first unread message

Jonker

unread,
May 15, 2006, 8:58:26 PM5/15/06
to
I browsed the posts and spoilers... and can't seem to find a
definitive answer as to whether digging exercises strength.
The spoilers don't list it, but some of the posts disagree...

I put my archeologist on autodig... it didn't seem to help.
Is there a sourcediver in the house?

-jonker

Andrew D. Hilton

unread,
May 15, 2006, 9:34:41 PM5/15/06
to

Well, exercise() is not called anywhere in dig.c-- that
being the function which exercises your stats-- a quick glance
thru the digging code doesn't show anything that looks like it
would be likely to call it either, so no, I dont think it does.


--
Andrew D. Hilton
UPenn Phd Student

Kent Paul Dolan

unread,
May 16, 2006, 9:28:22 AM5/16/06
to
"Andrew D. Hilton" <adhi...@red.seas.upenn.edu> wrote:

> Well, exercise() is not called anywhere in dig.c--
> that being the function which exercises your
> stats-- a quick glance thru the digging code
> doesn't show anything that looks like it would be
> likely to call it either, so no, I dont think it
> does.

I checked farther afield, looking (if I did it
correctly using MS-Windows' primitive tools) at all
occurances of exercise(A_STR, TRUE), and I agree. I
think that's a bug though, because if I read uhitm.c
correctly, hitting a monster (and thus hitting a
monster with a pick-axe) _does_ exercise strength
(with a comment something to the effect "you are
using your muscles", hence the thought that digging
not exercising strength is an oversight, at best). I
even checked for a sneak approach via consulting the
setting created by set_occupation (to digging), but
again, _being digging_ doesn't seem to exercise
strength.

However, the search led to one fairly abusable way
to exercise strength: every time you try to open or
close an unlocked door, and the door resists, you
exercise strength (says lock.c). I suspect whether
the door resists is tempered by your strength, so
this is probably best abused to strengthen healers,
from low strength to mid-level strength, not
valkeries from high strength to supreme strength.

Still, if you are altar camping, credit cloning,
pudding farming, waiting to recover HP or PW,
stalling for a prayer timeout to expire, or some
other boring task, open and shut a door while you
wait, and it might buff up your strength a bit.

FWIW

xanthian.


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

Andrew D. Hilton

unread,
May 16, 2006, 9:36:07 AM5/16/06
to
On Tue, 16 May 2006 13:28:22, Kent Paul Dolan <xant...@well.com> wrote:
>Still, if you are altar camping, credit cloning,
>pudding farming, waiting to recover HP or PW,
>stalling for a prayer timeout to expire, or some
>other boring task, open and shut a door while you
>wait, and it might buff up your strength a bit.

Or you could just push a boulder around the room...

Kent Paul Dolan

unread,
May 16, 2006, 10:30:00 AM5/16/06
to
"Andrew D. Hilton" <adhi...@red.seas.upenn.edu> wrote:

> Or you could just push a boulder around the room...

Um, yeah, but its often two or three levels, sometimes
more, before a boulder occurs that is pushable beyond
one, one way trip, while a door to open and close
repeatedly is pretty much a given on DLVL 1. I was just
a bit astonished that so much more convenient a way
existed to exercise strength than the one you recommend,
and that same one which I had been using as my only
controllable recourse up until now.

xanthian.

A strength increase chance increment is always just
on the *other* side of the door.

Andrew D. Hilton

unread,
May 16, 2006, 11:12:28 AM5/16/06
to
On Tue, 16 May 2006 14:30:00, Kent Paul Dolan <xant...@well.com> wrote:
>Um, yeah, but its often two or three levels, sometimes
>more, before a boulder occurs that is pushable beyond
>one, one way trip, while a door to open and close
>repeatedly is pretty much a given on DLVL 1. I was just
>a bit astonished that so much more convenient a way
>existed to exercise strength than the one you recommend,
>and that same one which I had been using as my only
>controllable recourse up until now.

well, the door resists if rnl(20) >= (ACURRSTR+ACURR(A_DEX)+ACURR(A_CON))/3)

rnl(20) is a random number from 0-19, which is evenly distributed,
except that it can be modified for luck-- if you have any luck,
it does *not* affect the roll with probability 1/(50-Luck)- otherwise
[and this depends on the argument to rnl, but in this case]
your Luck gets subtracted from the roll.

That means that whith decent physical stats and luck, the odds of
the door resisting become very low [0, if your physical stats
average say 15 and you have a luck of 5, for example].

Andrew D. Hilton

unread,
May 16, 2006, 11:15:09 AM5/16/06
to
On Tue, 16 May 2006 14:30:00, Kent Paul Dolan <xant...@well.com> wrote:
>Um, yeah, but its often two or three levels, sometimes
>more, before a boulder occurs that is pushable beyond
>one, one way trip, while a door to open and close
>repeatedly is pretty much a given on DLVL 1. I was just
>a bit astonished that so much more convenient a way
>existed to exercise strength than the one you recommend,
>and that same one which I had been using as my only
>controllable recourse up until now.

well, the door resists if rnl(20) >= (ACURRSTR+ACURR(A_DEX)+ACURR(A_CON))/3)

rnl(20) is a random number from 0-19, which is evenly distributed,
except that it can be modified for luck-- if you have any luck,
it does *not* affect the roll with probability 1/(50-Luck)- otherwise
[and this depends on the argument to rnl, but in this case]
your Luck gets subtracted from the roll.

That means that whith decent physical stats and luck, the odds of

the door resisting become very low [for example, if your physical stats
average say 16 and you have a luck of 4-- which gives you
a chance of 1/4 * 1/46 = 1/184]. Opening a door 100-200 times
to exercise a stat once is going to give *very* slow progress..

Kent Paul Dolan

unread,
May 16, 2006, 11:11:17 PM5/16/06
to
Andrew D. Hilton wrote:
> Kent Paul Dolan <xant...@well.com> wrote:

>> Um, yeah, but its often two or three levels,
>> sometimes more, before a boulder occurs that is
>> pushable beyond one, one way trip, while a door
>> to open and close repeatedly is pretty much a
>> given on DLVL 1. I was just a bit astonished that
>> so much more convenient a way existed to exercise
>> strength than the one you recommend, and that
>> same one which I had been using as my only
>> controllable recourse up until now.

> well, the door resists if
> rnl(20) >= (ACURRSTR+ACURR(A_DEX)+ACURR(A_CON))/3)

> rnl(20) is a random number from 0-19, which is
> evenly distributed, except that it can be modified
> for luck-- if you have any luck, it does *not*
> affect the roll with probability 1/(50-Luck)-
> otherwise [and this depends on the argument to
> rnl, but in this case] your Luck gets subtracted
> from the roll.

> That means that with decent physical stats and


> luck, the odds of the door resisting become very
> low [for example, if your physical stats average
> say 16 and you have a luck of 4-- which gives you
> a chance of 1/4 * 1/46 = 1/184]. Opening a door
> 100-200 times to exercise a stat once is going to
> give *very* slow progress..

Umm, but my recommendation was to use the technique
for an early healer, who 1) has no discernable luck,
2) has a STR of as bad as 7 often, and usually 8.
If, as is likely, DEX and CON are both 16, this
gives a base by your equation of 13, so an rn1(20)
is going to produce "resists" quite often, 7/20 of
the time, not your 1/184. 7/20 is a quite
respectable rate, compared to boulder pushing, where
you lose turns every time your pet or another
monster gets in the way of the boulder, and every
time you have to walk around the boulder two or more
steps to push it the other direction. And again, the
door is pretty much _always_ available on DLVL 1.

The 7/20 agrees well with my perceived rate of doors
resisting, when playing a beginning healer, so I'm
pretty confident that's at least close to correct,
and 1/184 far out of line.

FWIW

xanthian.

Andrew D. Hilton

unread,
May 17, 2006, 7:03:09 AM5/17/06
to
On 16 May 2006 20:11:17 -0700, Kent Paul Dolan <xant...@well.com> wrote:
>
>Umm, but my recommendation was to use the technique
>for an early healer, who 1) has no discernable luck,
>2) has a STR of as bad as 7 often, and usually 8.
>If, as is likely, DEX and CON are both 16, this
>gives a base by your equation of 13, so an rn1(20)
>is going to produce "resists" quite often, 7/20 of
>the time, not your 1/184. 7/20 is a quite
>respectable rate, compared to boulder pushing, where

If you have no luck, then yes- it will be
7/20, but as you gain luck, that plumets---
1 luck point takes you to 7/20*1/49 + 6/20*48/49
(just over 6/20)
2 luck points gets you 7/20*1/48 + 5/20*47/48
(just over 5/20)
3 luck points gets you 7/20*1/47 + 4/20*46/47
(just over 4/20)
4 luck points gets you 7/20*1/46 + 3/20*45/46
(almost 3.1/20)
....
7 luck points gets you 7/20*1/43=7/860 ~=1/122

So yeah, if you have bad physical stats and
no luck, you can exercise strength regularly doing
this. I believe one of the people suggesting this
including "while altar camping", in which case,
you will gain luck quickly, and it will become
ineffective.

rangetrader

unread,
May 18, 2006, 1:35:56 PM5/18/06
to

malcol...@gmail.com

unread,
May 18, 2006, 8:21:27 PM5/18/06
to

Jonker wrote:
> I browsed the posts and spoilers... and can't seem to find a
> definitive answer as to whether digging exercises strength.
> The spoilers don't list it, but some of the posts disagree...

Apparently not, but it looks easy enough to patch. This would appear to
do the job:

diff -Npbaur -x '*~' -x '#*#' nethack-3.4.3/src/dig.c
nethack-exercise-dig/src/dig.c
--- nethack-3.4.3/src/dig.c 2003-12-08 10:39:13.000000000 +1100
+++ nethack-exercise-dig/src/dig.c 2006-05-19 10:19:51.000000000
+1000
@@ -383,6 +383,8 @@ dig()
if(dmgtxt)
pay_for_damage(dmgtxt, FALSE);

+ exercise(A_STR, TRUE);
+
if(Is_earthlevel(&u.uz) && !rn2(3)) {
register struct monst *mtmp;

0 new messages