I put my archeologist on autodig... it didn't seem to help.
Is there a sourcediver in the house?
-jonker
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
> 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
Or you could just push a boulder around the room...
> 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.
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].
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..
>> 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.
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.
adhi...@red.seas.upenn.edu (Andrew D. Hilton) wrote in
news:slrne6jqus....@red.seas.upenn.edu:
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;