]> granicus.if.org Git - nethack/log
nethack
21 years agolev_comp parser update (U433)
nethack.rankin [Tue, 20 May 2003 04:11:33 +0000 (04:11 +0000)]
lev_comp parser update (U433)

21 years agoU468 - disclose default
cohrs [Tue, 20 May 2003 03:39:02 +0000 (03:39 +0000)]
U468 - disclose default
clarify the "disclose" default value in opthelp

21 years agomore knight capitalization
cohrs [Tue, 20 May 2003 03:24:30 +0000 (03:24 +0000)]
more knight capitalization
Capitalize a bunch of "Us"s.  <Someone> comments that some other "We" and "Our"
actually referred to a group.  I disagree and left them alone.

21 years agoU433 - infinite loop with place_branch
cohrs [Tue, 20 May 2003 02:05:45 +0000 (02:05 +0000)]
U433 - infinite loop with place_branch
This solution is mostly a band-aid.  Make sure information set by join_map
that is overlaid by the MAP is cleared out.  This ensures that place_branch
will never consider invalid data.  A new function, remove_rooms(), with a
helper, remove_room(), takes care of this, but only for rooms created by
join_map, which addresses the only known case that causes this problem.
There's a possibility that some other strange behavior, especially in
minetn-6, will be fixed by this as well.  The problem of disconnected caves
on minetn-6 is not yet addressed.

Also, add a check to lev_comp.y to make sure the required fg semantics of
joined levels (fg must be ROOM or CORR) are actually met.  Doesn't affect
any levels currently included in the distro, but might address levels
others are trying to make.

21 years agoB02005 - Boulder and vision followup
cohrs [Mon, 19 May 2003 13:41:01 +0000 (13:41 +0000)]
B02005 - Boulder and vision followup
put back code to remove LAUNCH_UNSEEN from the mask that got lost
when I re-arranged the change.

21 years agoB02005 - Boulder and vision
cohrs [Sun, 18 May 2003 21:04:49 +0000 (21:04 +0000)]
B02005 - Boulder and vision
add another bit to the flags passed to launch_obj so it can print
the initial "rumbling" message at the appropriate time rather than
having the caller print the message, possibly out of order.

21 years agoMinGW and Borland Makefiles
nethack.allison [Sun, 18 May 2003 18:53:13 +0000 (18:53 +0000)]
MinGW and Borland Makefiles
Add build instructions for nhraykey (untested)

21 years agostarvation killer message
cohrs [Sat, 17 May 2003 22:03:27 +0000 (22:03 +0000)]
starvation killer message
Write "died of starvation" on the tombstone, not just "starvation".
Suggested by <Someone> a couple weeks ago, although his suggested
prefix was different and didn't work as well for the "exhaustion" case.

21 years agomore U429 - tile bits
cohrs [Sat, 17 May 2003 21:46:45 +0000 (21:46 +0000)]
more U429 - tile bits
> While looking at the tiles.bmp file, I've found some more mistakes like
> this : the Wizard of Yendor's shadow is touching Croesus' tile, and one
> of Orcus' wing is touching Yeenoghu's tile.

21 years agomore grammar bits
cohrs [Sat, 17 May 2003 21:35:21 +0000 (21:35 +0000)]
more grammar bits
Reported to the list a while back by <Someone>.  The Knight's quest
messages are inconsistent in the use of royal pronouns.  Capitalize them all.
Another option would have been to remove all royal capitalization (since such
Capitalization didn't come into use until relatively recently).

21 years agoU442 - scroll of charging
cohrs [Sat, 17 May 2003 21:12:16 +0000 (21:12 +0000)]
U442 - scroll of charging
<Someone> suggested a scroll to counteract an unknown scroll of charging
that had negative effects.  Scroll of punishment already costs the same,
so that unknown behavior is already covered.  Plus, a cursed scroll of
charging already has negative effects, except in the case where the player
was confused where no negative effect from reading a cursed scroll of
charging occured.  Added such an effect (since the curse should still cause
something bad, even though the reader is confused), to drain the player's
energy.

21 years agomessage when eating a stalking
cohrs [Sat, 17 May 2003 20:51:11 +0000 (20:51 +0000)]
message when eating a stalking
As suggested by <Someone> to the mailing list, display a message
when you eat a stalker and notice that you became invisible.

21 years agoanother README.linux update
cohrs [Sat, 17 May 2003 20:35:07 +0000 (20:35 +0000)]
another README.linux update
Make the instructions a bit more blow-by-blow.  Re-order them so they
correspond to the Install.unx step numbers.  Explicitly refer to
Install.unx and Install.X11 where appropriate.

21 years agowin32tty: The author field should not be left as devteam
nethack.allison [Wed, 14 May 2003 10:56:54 +0000 (10:56 +0000)]
win32tty: The author field should not be left as devteam

21 years agofix B02004 and other projectile related killer reasons
nethack.rankin [Wed, 14 May 2003 10:25:26 +0000 (10:25 +0000)]
fix B02004 and other projectile related killer reasons

1) killer reason for scattered land mine shrapnel used "a" or "an" prefix
   even when multiple projectiles hit as a group -- one of various things
   From a bug report.oextra field) --
   noticed while investigating #1 and later From a bug report.4.0 due to an unintentional side-effect of missile killer reason
   handling in 3.4.1 (removal of redundant "poisoned" prefix by m_throw()
   confused the poison handling routine) -- noticed while investigating #3.

21 years agoField is conditionally defined, code referring to it isn't
nethack.allison [Mon, 12 May 2003 04:49:20 +0000 (04:49 +0000)]
Field is conditionally defined, code referring to it isn't

21 years agoAdd <Someone> to dungeoneers list
nethack.allison [Mon, 12 May 2003 03:05:00 +0000 (03:05 +0000)]
Add <Someone> to dungeoneers list
Proposed by Michael Allison.
Seconded by Pat Rankin.
(it can always be withdrawn if there is a later objection)

-Author of Spanish NetHack
-Author of some NT keyboard internationalization fixes
-Author of "Hell patch"

21 years agoSome altkeyhandler tweaking
nethack.allison [Mon, 12 May 2003 02:25:08 +0000 (02:25 +0000)]
Some altkeyhandler tweaking

21 years agoAdd <Someone>'s comments to file
nethack.allison [Sun, 11 May 2003 23:42:25 +0000 (23:42 +0000)]
Add <Someone>'s comments to file

21 years agoAdd <Someone>'s key handling as loadable handler
nethack.allison [Sun, 11 May 2003 23:25:08 +0000 (23:25 +0000)]
Add <Someone>'s key handling as loadable handler

21 years agocurrent fixes files missing from ./Files
nethack.allison [Sun, 11 May 2003 15:13:42 +0000 (15:13 +0000)]
current fixes files missing from ./Files

21 years agotypo (mine not Ken's)
nethack.allison [Sun, 11 May 2003 15:09:24 +0000 (15:09 +0000)]
typo (mine not Ken's)

21 years agofixes30.0
nethack.allison [Sun, 11 May 2003 14:52:59 +0000 (14:52 +0000)]
fixes30.0

On January 20, 2002 Ken Arromdee wrote:
>I dug this out of my files. (Well, it didn't take a lot of
>digging; I already copied the disk in question to my PC long ago.)
[...]
>I may or may not have another one of these but I'd actually
>have to go install a 5 1/4 inch drive to check.

21 years agoadd some old fixes entries
nethack.allison [Sun, 11 May 2003 13:40:01 +0000 (13:40 +0000)]
add some old fixes entries
some old patches from the same week that never got fixes34.0 entries
(fixes33.2 at the time)

21 years agopolearms and infravision
cohrs [Sun, 11 May 2003 05:08:58 +0000 (05:08 +0000)]
polearms and infravision
Allow hero to apply a polearm against a monster seen only by infravision.
Reported to the mailing list.

21 years agoB02003 - choking on unique monster corpse
cohrs [Sun, 11 May 2003 04:18:25 +0000 (04:18 +0000)]
B02003 - choking on unique monster corpse
Try harder to use the pronoun "the" when refering to a unique monster's corpse

21 years agoU455 - attacking disenchanter
cohrs [Sun, 11 May 2003 03:18:02 +0000 (03:18 +0000)]
U455 - attacking disenchanter
When polymorphed, only attacks involving hands/feet/weapons should result
in damage to object.  Theoretically, hug and butt attacks should affect
objects too, but no forms with such attacks currently allow wearing armor.

21 years agorollback one band
nethack.allison [Sat, 10 May 2003 21:28:33 +0000 (21:28 +0000)]
rollback one band

Rollback a band that shouldn't have been in recent patch at all.

21 years agofinal qbuf patch
nethack.allison [Sat, 10 May 2003 21:16:39 +0000 (21:16 +0000)]
final qbuf patch

This is my final src mod to ensure that a qbuf does not overflow due to
a lengthy named object.  These recent patches, coupled with the core yn_function() patch earlier, should make it much rarer for a QBUFSZ
buffer overflow to occur in a window port routine (unless the window
port routine has its own bugs, but that isn't the core's fault).

21 years agofinal qbuf patch
nethack.allison [Sat, 10 May 2003 21:11:16 +0000 (21:11 +0000)]
final qbuf patch

This is my final src mod to ensure that a qbuf does not overflow due to
a lengthy named object.  These recent patches, coupled with the core yn_function() patch earlier, should make it much rarer for a QBUFSZ
buffer overflow to occur in a window port routine (unless the window
port routine has its own bugs, but that isn't the core's fault).

21 years agosafe_qbuf arguments
nethack.allison [Sat, 10 May 2003 16:21:12 +0000 (16:21 +0000)]
safe_qbuf arguments

Pat's compiler triggered a warning because safe_qbuf
is declared as `char *' but might return `last_resort'
which is `const char *'.

21 years agoensure safe_qbuf gets initialized buffer as 1st arg
nethack.allison [Sat, 10 May 2003 15:25:33 +0000 (15:25 +0000)]
ensure safe_qbuf gets initialized buffer as 1st arg

21 years agoPat Rankin wrote:
nethack.allison [Sat, 10 May 2003 14:11:42 +0000 (14:11 +0000)]
Pat Rankin wrote:
> The `prompt' buffer in tty_yn_function still only holds QBUFSZ
> characters. But fixing the tty incarnation wouldn't be good enough;
> all the other interfaces would need to handle it too.  I think it
> should be fixed in the core instead.  Prompt strings simply should
> not be allowed to become so lengthy.

Another step in the fight against prompt sting buffer overflows.
The goes after the ones that may not have been found yet.

This makes yn_function a real core function and removes
the #define yn_function macro.

The yn_function validates the prompt string buffer being
passed prior to calling (*windowprocs.win_yn_function)(),
and if necessary, truncating it and adding "...".

This won't help if the overflow occurs in the core in
a buffer that is still QBUFSZ in size, but it will help if
a BUFSZ buffer is being passed to one of the query
functions.

21 years agonext qbuf overflow
nethack.allison [Fri, 9 May 2003 04:03:16 +0000 (04:03 +0000)]
next qbuf overflow

By naming the candelabrum as long a name as the game will allow, and by naming a candle the longest name also, a qbuf overflow and crash is
triggered when you attach the candle to the candelabrum.

21 years agonext qbuf overflow
nethack.allison [Fri, 9 May 2003 03:55:33 +0000 (03:55 +0000)]
next qbuf overflow

By naming the candelabrum as long a name as the game will allow, and by naming a candle the longest name also, a qbuf overflow and crash is
triggered when you attach the candle to the candelabrum.

21 years agoyet more qbuf
nethack.allison [Fri, 9 May 2003 01:19:29 +0000 (01:19 +0000)]
yet more qbuf

21 years agomore qbuf
nethack.allison [Thu, 8 May 2003 11:19:16 +0000 (11:19 +0000)]
more qbuf
Pat pointed out to me that there are other potential
qbuf overflows, so this adds a function to assist in
weeding them out.

21 years agobones fix
nethack.rankin [Thu, 8 May 2003 07:23:11 +0000 (07:23 +0000)]
bones fix

     From the newsgroup:  leash found inside a bones level shop was flagged
as "in use".  3.4.0 had a fix for that which works for most cases, but not
when the shopkeeper has taken the dead character's inventory just before
saving the bones file.

     This also adds an entry to the branch copy of fixes34.2 to synchronize
it with the trunk copy.

21 years agoback out accidental fixes35.0 update
nethack.allison [Thu, 8 May 2003 02:27:10 +0000 (02:27 +0000)]
back out accidental fixes35.0 update

21 years agofix prompt string overflow in lift_object()
nethack.allison [Thu, 8 May 2003 02:25:19 +0000 (02:25 +0000)]
fix prompt string overflow in lift_object()
<email deleted> wrote:
> The game crashed badly when I made some experiments with items
> with very long names:
>
> You have much trouble lifting a blessed greased thoroughly rusty  >thoroughly corroded +3 plate mail named terribly long killer longer than my
>ong long-worm called long.  Continue? [ynq] (q)

  tty_yn_function(const char * 0x0012fa50,
      const char * 0x00572ddc _ynqchars, char 113) line 379 + 6 bytes
  lift_object(obj * 0x009e8970, obj * 0x00000000,
      long * 0x0012fcd0, char 0) line 1131 + 20 bytes
  pickup_object(obj * 0x009e8970, long 1, char 0) line 1258 + 19 bytes
  pickup(int 0) line 474 + 28 bytes
  dopickup() line 1853 + 11 bytes
  rhack(char * 0x005c0d50 in_line) line 1908 + 3 bytes
  moveloop() line 406 + 7 bytes
  main(int 3, char * * 0x009e2ac0) line 102

21 years agotwo land mine bits
nethack.rankin [Sat, 3 May 2003 02:08:34 +0000 (02:08 +0000)]
two land mine bits

     Noticed when investigating one of the killer reason bugs recently
reported:  a land mine explosion shouldn't create a concealed pit trap;
make a revealed pit instead.  And while testing that, I noticed that the
"Kaboom" message given when pushing a boulder onto a land mine was given
while the map still showed the boulder at its original location even
though it had actually been moved already.  It's a little odd that you
get hit by shrapnel at your original position--as if you're shoving the
boulder ahead of you and then pausing a moment before stepping into its
former location--but that's trickier to fix; sometimes you won't advance
due to there being multiple boulders present (in that case you evidently
do shove the boulder instead of performing a steady push, so maybe the
current behavior is fine as it is).

21 years agofix U438 - text formatting
nethack.rankin [Wed, 30 Apr 2003 23:27:31 +0000 (23:27 +0000)]
fix U438 - text formatting

     "List of game options" from `? f' misaligns the entries for runmode
and scroll_amount (at least for tty display).  Shorten their descriptions
so that they fit without squeezing out spaces.

21 years agoyet another spelling error
cohrs [Sun, 27 Apr 2003 15:10:46 +0000 (15:10 +0000)]
yet another spelling error
"undigestable" -> "indigestible"

21 years agomagic bag explosion
nethack.rankin [Sun, 27 Apr 2003 11:05:22 +0000 (11:05 +0000)]
magic bag explosion

     Make exploding bags of holding be less mysterious, and perhaps cut
done on the number of claims that they've vanished for no reason.  There
wasn't any feedback other than the explosion message itself; in particular,
the message about putting something into the bag didn't occur since that's
handled by the didn't-explode case.

21 years agocomment typo
nethack.rankin [Sun, 27 Apr 2003 10:38:00 +0000 (10:38 +0000)]
comment typo

21 years agoCastle trap doors fix
nethack.rankin [Sun, 27 Apr 2003 10:32:55 +0000 (10:32 +0000)]
Castle trap doors fix

     Recently discussed in the newsgroup, and it sounded familiar so may
have been reported directly earlier:

  You fly through the trap door.  You fly down along the stairs.

when polymorphed into a flying creature or riding a flying steed.  It
only happens at the castle, and only happens because the go-down code is
explicitly setting the arrival point to be the Valley stairs.  That's how
the castle trap doors used to work as traps too, but they were changed to
dump you randomly near the stairs quite some time ago.  Fix it by making
intentional triggering work the same now; this also prevents the false
feedback (even if you happen to arrive on the stairs by coincidence).

21 years agoX11 install doc update
cohrs [Thu, 24 Apr 2003 15:42:53 +0000 (15:42 +0000)]
X11 install doc update
In some X11R6 configurations, .Xresources is the name for the .Xdefaults
file.  My older Linux system uses _both_, depending on which window
manager you run.

21 years agoU429 - high priest tile
cohrs [Tue, 22 Apr 2003 23:51:30 +0000 (23:51 +0000)]
U429 - high priest tile
Fix a couple bad pixels in the high priest tile that are actually shadows
from the previous tile that spilled over.

21 years agoThe POSIX function yn() is sometimes a macro (eg. GCC 3.2, Linux),
warwick [Tue, 22 Apr 2003 06:57:27 +0000 (06:57 +0000)]
The POSIX function yn() is sometimes a macro (eg. GCC 3.2, Linux),
so undefine it (we don't need either here).

21 years agoAvoid using NAME_MAX. What we really wanted was PL_NSIZ.
warwick [Tue, 22 Apr 2003 06:54:45 +0000 (06:54 +0000)]
Avoid using NAME_MAX. What we really wanted was PL_NSIZ.

21 years agogauntlets of power removal encumbrance feedback
cohrs [Sun, 20 Apr 2003 22:29:25 +0000 (22:29 +0000)]
gauntlets of power removal encumbrance feedback
<Someone> reported that encumbrance feedback when removing GoP
was delayed until the next turn.  Several other places call encumber_msg()
to provide immediate feedback.  Call it in Gloves_off() too.

21 years agoB02002 - Monster werechange messages
cohrs [Sun, 20 Apr 2003 18:00:12 +0000 (18:00 +0000)]
B02002 - Monster werechange messages
Change the monster constants to match the current position of the switch
statement.  Also test canseemon(), since the message isn't needed if you
see the change.  I didn't make any other change to the message frequency.
If it's too frequent, then perhaps the changes themselves are too frequent.

21 years agoU423 - uninitialized memory access in dolookup
cohrs [Thu, 17 Apr 2003 03:44:02 +0000 (03:44 +0000)]
U423 - uninitialized memory access in dolookup
fix a case where "cc", which is only set when looking from_screen,
in a case where from_screen is not set.

21 years agowishing for magenta potions
arromdee [Thu, 17 Apr 2003 02:21:16 +0000 (02:21 +0000)]
wishing for magenta potions
Reported on the net.

21 years agoU406 - running and mimic mimicking closed doors
cohrs [Mon, 14 Apr 2003 05:10:06 +0000 (05:10 +0000)]
U406 - running and mimic mimicking closed doors
If running in a way that stops at closed doors, you should stop when coming
across a mimic mimicking a closed door too.

21 years agoU409 - hiding and eating bugs
cohrs [Mon, 14 Apr 2003 01:09:30 +0000 (01:09 +0000)]
U409 - hiding and eating bugs
Three related bug fixed, two reported in U409.
+ If you zapped a wand of cold downward while hiding underwater, the uundetected
flag was not reset (but the monster case was code correctly), resulting in
an impossible error on the next attack
+ If you finished eating something you were hiding under and were attacked,
another impossible would occur
+ While checking the eating gold case, I noticed that several cases would lose
gold on the floor if the attempt to eat it failed

The first case is fixed by resetting the flag just like the monster case.
The other cases are fixed by adding code to useupf to deal with this.
eatspecial and floorfood were modified to allow useupf to be called, and
fix the 3rd bug in the process.

21 years agounpaid tinning kit usage
cohrs [Sun, 13 Apr 2003 04:18:36 +0000 (04:18 +0000)]
unpaid tinning kit usage
<Someone> reported that shopkeepers don't charge for using tinning kits.

21 years agocompilation bit
cohrs [Sun, 13 Apr 2003 04:09:32 +0000 (04:09 +0000)]
compilation bit
quiet a new gcc warning

21 years agoGOLDOBJ compat (main trunk only)
nethack.allison [Fri, 11 Apr 2003 22:32:08 +0000 (22:32 +0000)]
GOLDOBJ compat (main trunk only)

This patch gives game and savefile compatibility
whether GOLDOBJ is defined or not.

You can build with GOLDOBJ defined or not, and
still load your saved games. Rebuild with the
opposite, and load the same game.

That way GOLDOBJ can be experimented with
more easily.

1. Leave the "you" struct and the "monst"
   struct the same under the hood between
   GOLDOBJ and !GOLDOBJ.

2. Always write out gold as an
   object on the player and monster
   inventory chains.

On a restore of the savefile with GOLDOBJ
not defined,  take the gold objects out of
the inventory chains and put it into u.ugold
or mtmp->mgold as appropriate.

On a restore of the savefile with GOLDOBJ
defined, nothing special is done.

21 years agois_damageable was always true
cohrs [Sun, 6 Apr 2003 15:02:57 +0000 (15:02 +0000)]
is_damageable was always true
<Someone> noticed that is_damageable used the address of is_rottable
instead of calling it.  Unfortunately, there doesn't seem to be a good
compiler warning to detect uses of function addresses as booleans.

21 years agoquaffing documentation
cohrs [Sat, 5 Apr 2003 02:14:52 +0000 (02:14 +0000)]
quaffing documentation
some of the places quaff was documented tried to be general about what it
applied to, but other places, including the Guidebook, were not.

21 years agonarrative linux install instructions
cohrs [Fri, 4 Apr 2003 02:00:35 +0000 (02:00 +0000)]
narrative linux install instructions
try to give an example showing actual commands to make it more obvious
exactly how the linux tarball gets installed

21 years ago#tip command - container access
nethack.rankin [Thu, 3 Apr 2003 10:56:46 +0000 (10:56 +0000)]
#tip command - container access

     Another fix to address the complaints about two-handed weapons being
rendered useless by 3.4.1's change to require free hands in order to apply
containers.  Some players now fear to wield two-handed weapons because a
curse would make accessing their bag impossible, which is doubly nasty if
that's where they have scrolls of remove curse or potions of holy water
intended to deal with cursed items.  The same situation applies for cursed
one-handed weapon combined with cursed shield, so some are now claiming
that 3.4.1 has made two-weapon combat be even more attractive than before.

     This implements #tip, a new command that causes a container at the
current location or carried in inventory to have its contents emptied
onto the floor.  Hero's hands don't need to be free at the time but tipping
a floor container requires limbs; tipping an inventory container doesn't
need hands or even limbs.  The contained items don't pass through inventory
during the process, so don't cause objects (loadstones, crysknives, scrolls
of scare monster?) to go through their special handling unless it's part of
normally dropping to the floor.  Tipping a bag of tricks behaves the same
as applying it (one monster is released, and it only becomes empty if
that happened to be the last charge) and items tipped out of a cursed bag
of holding have their normal cursed bag chance (1/13) of being destroyed.
Tipping an inventory container while levitating or during unskilled riding
behaves similar to normal drop--from a height, so some fragile items break.

     Players have wanted this feature to get gray stones out of chests or
heavy corpses out of ice boxes but I didn't care much about that; losing
access to your bag is more significant.  I'm pretty sure that there was a
user patch to do something like this floating around at one time, but I
couldn't find it when I looked, so I implemented #tip totally from scratch.

     Bug?  Extended commands which lack meta-key shortcuts are not listed
in the help files displayed by the '?' command....

21 years agopickup bit
nethack.rankin [Thu, 3 Apr 2003 10:05:42 +0000 (10:05 +0000)]
pickup bit

     Lint removal necessitated by accidental omission of a band from the
earlier "container groundwork" patch.

21 years agocontainer groundwork
nethack.rankin [Thu, 3 Apr 2003 09:28:28 +0000 (09:28 +0000)]
container groundwork

     Move a couple of instances of container contents manipulation into
their own routines.  Behavior for items disappearing from cursed bags of
holding isn't quite identical but is effectively the same.  I think its
use of stolen_value (or simply the behavior of the latter) is buggy, but
I haven't tried to fix that.  (Cursed bag of holding destroying a player
owned bag containing shopped owned items definitely doesn't work well.)

21 years agoAllow both UNIX and MacOSX conventions for configfile.
warwick [Thu, 3 Apr 2003 04:21:57 +0000 (04:21 +0000)]
Allow both UNIX and MacOSX conventions for configfile.

21 years agofix B02001 - WIZKIT artifacts
nethack.rankin [Thu, 3 Apr 2003 03:59:40 +0000 (03:59 +0000)]
fix B02001 - WIZKIT artifacts

     Fix the reported bug of artifacts created via wizard mode WIZKIT
being "forgotten" and possibly duplicated during play.  Perform artifact
initialization before $WIZKIT processing; role info needed by the former
is already sufficiently set up by that point.

21 years agoAnother key fix for MacOSX.
warwick [Wed, 2 Apr 2003 07:04:16 +0000 (07:04 +0000)]
Another key fix for MacOSX.

21 years agopatchlevel 3.4.2 update
nethack.allison [Mon, 31 Mar 2003 13:19:35 +0000 (13:19 +0000)]
patchlevel 3.4.2 update

21 years agomagicbane message grammar
nethack.rankin [Mon, 31 Mar 2003 08:02:30 +0000 (08:02 +0000)]
magicbane message grammar

> "The magic-absorbing blade scares the erinys!  The erinys resist!
> The erinys are stunned.  You kill the erinys!"

     vtense() already has code to handle "erinys", but it didn't work as
intended when the caller uses "the erinys" for the subject string.

21 years agoB01006 - containers hitting the floor
cohrs [Sat, 29 Mar 2003 03:31:51 +0000 (03:31 +0000)]
B01006 - containers hitting the floor
<Someone> noted that if you dropped a box while levitating, nothing would
break.  This is true for sacks too, which shouldn't be immune either.
Throwing didn't break contained objects either, not mentioned in his report.

Refactored out the code in kick_object that handled damage for objects
contained in normal containers and added calls in hitfloor and throwit.
kick_object still only calls it for boxes, but other callers will call it
for any object letting it decide if damage is required.  BoH objects aren't
affected, since traditionally the inside of the BoH is "somewhere else".

21 years agoShow true key sequences (essential on MacOSX).
warwick [Fri, 28 Mar 2003 01:41:38 +0000 (01:41 +0000)]
Show true key sequences (essential on MacOSX).

21 years agoB01005 - infinite objects from traps
cohrs [Thu, 27 Mar 2003 03:01:38 +0000 (03:01 +0000)]
B01005 - infinite objects from traps
Added a random factor to arrow, dart and rock traps so they'll eventually
stop producing new objects.  Also fixed a bug in mklev that set the trap
"once" flag even for traps where it wasn't currently appropriate.

21 years ago(from <Someone>)
nethack.allison [Thu, 27 Mar 2003 00:23:24 +0000 (00:23 +0000)]
(from <Someone>)
What's in it:
some MessageBox tidbits:
- Let all MessageBoxes display an icon
- Introduced NHMessageBox to have messageboxes display a consistent title
- Change icon in mswin_display_file from MB_ICONERROR to MB_ICONEXCLAMATION
  for non-fatal error
And to solve #U355: NetHackW won't run on Win2K OS:
- Avoid a crash when closing the main window while the splash screen is
  displayed.
- Make sure NetHack starts normal when closed minimized
- Center the splash screen on the screen, not on the parent window
  (which may be off-screen)

What's new in it:
- Show copyright banner in textbox in splash screen instead of over the picture
- Show news in splash screen only if iflags.news (solves W341-6)
- show complete version information in splash screen when it is used as about box)

[Also reverse the numkey patch in main trunk]

21 years agoB01003 - blindfold vs dust vortex
cohrs [Wed, 26 Mar 2003 05:10:22 +0000 (05:10 +0000)]
B01003 - blindfold vs dust vortex
This started out as a change to address the strange sequence of messages if
you remove a blindfold while engulfed in a dust vortex.  That is addressed
by a new function that can be called in such situations.  Calls to this
function were added in all the cases where the can_blnd() engulfing
conditions end as a result of player action.  There are some other cases
that end ucreamed or usleep, but they happen between turns and shouldn't
need extra handling.

While I was at it, I noticed that a unicorn horn or prayer would cure
blindness even while engulfed in a dust vortex.  This is useless, because
you immediately get blind again the next turn.  So, I added checks to avoid
doing this.  Finally, it didn't make sense for eating a carrot to cure your
blindness in these situations either, only for it to return immediately.

21 years agoTo summarise:
nethack.allison [Wed, 26 Mar 2003 00:02:09 +0000 (00:02 +0000)]
To summarise:
- My "various Windows refinements" patch from yesterday went into 3.4.x correctly
- My "NumberPad" patch went into 3.4.x, but should be backed out
- My "various Windows refinements" patch from last week was for 3.5.0, but is incomplete; you can safely ignore that.
- I'll make a new "various Windows refinements" patch for 3.5.0 tonight.

21 years agomore gnome compilation problems
cohrs [Mon, 24 Mar 2003 22:12:32 +0000 (22:12 +0000)]
more gnome compilation problems
a typo kept gnstatus.c from compiling w/GOLDOBJ defined

21 years agojumping over sokoban pits
cohrs [Mon, 24 Mar 2003 21:56:59 +0000 (21:56 +0000)]
jumping over sokoban pits
reported to the list.  The code in hurtle_step was returning FALSE one
step too early, resulting in the player not actually ending up in the pit.

21 years agofix U382 - missing map display update
nethack.rankin [Mon, 24 Mar 2003 08:58:45 +0000 (08:58 +0000)]
fix U382 - missing map display update

> Receiving Excalibur from a fountain while blind doesn't update the
> display (i.e. the missing fountain) immediately.

     Various other topology changes had the same problem.  The display
was only being updated if the hero was invisible on the assumption that
it wouldn't matter otherwise, but a blind character who moved off the
affected location would still have the old map info (fountain, trap, &c)
shown--until he walked back onto that spot or searched next to it or
regained sight--even though the player is told about the map change as
it happens.

21 years agoB01002 - tame dwarf won't eat
cohrs [Mon, 24 Mar 2003 07:30:49 +0000 (07:30 +0000)]
B01002 - tame dwarf won't eat
<Someone> reported that a tame dwarf wouldn't eat food tossed at it.
He also reported that it wouldn't eat off the ground, which I couldn't
reproduce nor see in a problem in the code.  The code in thitmonst didn't
allow for sharing food with non-domestic, already tame monsters.

21 years agohealer quest locate level lighting
cohrs [Mon, 24 Mar 2003 05:21:47 +0000 (05:21 +0000)]
healer quest locate level lighting
There were 2 narrow rectangles of darkness on the healer locate level
that weren't consistent with the healer quest.

21 years agoU384 - dopay impossible
cohrs [Mon, 24 Mar 2003 02:15:49 +0000 (02:15 +0000)]
U384 - dopay impossible
If you zapped a WoStriking while outside a shop and broke the door and 2
separate objects, the shopkeeper would come out to get paid but if you
tried, it would result in "dopay: not to shopkeeper?" due to stolen_value
not adding the cost of the 2nd object to the right accumulator.

21 years agostatue gender
arromdee [Mon, 24 Mar 2003 02:02:08 +0000 (02:02 +0000)]
statue gender
Reported on the newsgroup (a few weeks ago in the middle of a post about
something else): someone turned Perseus to flesh and found out he was female.

21 years agoseeing self with infravision
arromdee [Mon, 24 Mar 2003 00:47:03 +0000 (00:47 +0000)]
seeing self with infravision
> It appears that if showrace is set, and your race is not human, a
> potion of invisibility (or any other form of invisibility) doesn't cause
> your symbol to disappear on screen, even if you don't have see invisible.

21 years agoB01001 - locking/unlocking a door while in a pit
cohrs [Sun, 23 Mar 2003 20:22:00 +0000 (20:22 +0000)]
B01001 - locking/unlocking a door while in a pit
Since you can't reach a door to open it while in a pit, it makes sense you
can't lock/unlock it either.

21 years agonumkey (from <Someone>)
nethack.allison [Sun, 23 Mar 2003 19:20:22 +0000 (19:20 +0000)]
numkey (from <Someone>)
mapping the 5 and 0 to '5' and '0' respectively
when NumLock is off, to make entering numbers easier. The core will map '5' and
'0' to 'g' and 'i' respectively. This solves W341-5.

Note: I changed nhdefkey.c and mhmain.c, so both the tty and the windows
interface will show new behaviour. I deliberately did not change nh340key.dll.

Note: Maybe the same change should be made to the MSDOS port.

Note: The behaviour of getobj is a little bit strange: It doesn't use
yn_question's  facility for returning a number, but handles that itself. The
net effect of this is that if you type d55$ (to drop 55 zorkmids,) only the
first '5' is shown

21 years agoMore (from <Someone>)
nethack.allison [Sun, 23 Mar 2003 19:16:54 +0000 (19:16 +0000)]
More (from <Someone>)

21 years agoFrom Yitzhak
nethack.allison [Sun, 23 Mar 2003 19:03:08 +0000 (19:03 +0000)]
From Yitzhak
(2 troublesome bands removed
and will follow later)
Here's the new patch with the Windows improvements; this should apply to the
3.4.2 tree. Note the changed filename in the diff lines.
What's in it:
> some MessageBox tidbits:
> - Let all MessageBoxes display an icon
> - Introduced NHMessageBox to have messageboxes display a consistent title
> - Change icon in mswin_display_file from MB_ICONERROR to MB_ICONEXCLAMATION
> for non-fatal error
>
> And to solve #U355: NetHackW won't run on Win2K OS:
> - Avoid a crash when closing the main window while the splash screen is
> displayed.
> - Make sure NetHack starts normal when closed minimized
> - Center the splash screen on the screen, not on the parent window (which may
> be off-screen)
What's new in it:
- Show copyright banner in textbox in splash screen instead of over the picture
- Show news in splash screen only if iflags.news (solves W341-6)
- show complete version information in splash screen when it is used as about
box

21 years agoBorland Makefile (from Yitzhak)
nethack.allison [Sun, 23 Mar 2003 18:49:05 +0000 (18:49 +0000)]
Borland Makefile (from Yitzhak)

21 years agocarrying capacity
cohrs [Sat, 22 Mar 2003 17:25:09 +0000 (17:25 +0000)]
carrying capacity
As suggested in the newsgroup, re-factor the calculation of carrcap
so that any change in strength or constitution affects your capacity.
The integer division was rounding off the result.

21 years agosomeone finally was confused by glibc 2.2.93 before e-mailing devteam
cohrs [Fri, 21 Mar 2003 04:16:08 +0000 (04:16 +0000)]
someone finally was confused by glibc 2.2.93 before e-mailing devteam
about README.linux.  Try to clarify the confused version number.

21 years agowin32 clear registry
nethack.allison [Tue, 18 Mar 2003 10:23:10 +0000 (10:23 +0000)]
win32 clear registry
Clear the registry settings via
    nethack -clearreg

21 years agoU337 - putting gold in a shop container
cohrs [Mon, 17 Mar 2003 05:38:36 +0000 (05:38 +0000)]
U337 - putting gold in a shop container
When you drop a container in a shop, gold in that container is added to
your credit.  However, if you put gold into a container after it was already
on the shop floor, no credit was given.  Then when you picked up the bag or
tried to take out the gold, you'd be debited for it.  This change causes
in_container to handle gold the same as container dropping does.

21 years agoB20007 age of potion of oil from bones
nethack.allison [Mon, 17 Mar 2003 01:25:48 +0000 (01:25 +0000)]
B20007 age of potion of oil from bones
First From a bug report.4.1 beta 20.

21 years agoB20007 age of potion of oil from bones
nethack.allison [Mon, 17 Mar 2003 01:20:41 +0000 (01:20 +0000)]
B20007 age of potion of oil from bones
First From a bug report.4.1 beta 20.

21 years agogold and touchstones
cohrs [Sun, 16 Mar 2003 03:07:48 +0000 (03:07 +0000)]
gold and touchstones
Implement Pat's suggestion of allowing even identified touchstones
to test gold, removing the getobj hack recently added.  This actually
brings the touchstone a bit more in line with the data.base entry.

21 years agogold and touchstones
cohrs [Sat, 15 Mar 2003 21:42:34 +0000 (21:42 +0000)]
gold and touchstones
Implement Pat's suggestion of allowing even identified touchstones
to test gold, removing the getobj hack recently added.  This actually
brings the touchstone a bit more in line with the data.base entry.

21 years agocompilation bit
cohrs [Sat, 15 Mar 2003 21:34:11 +0000 (21:34 +0000)]
compilation bit
remove unused variable

21 years agoversion number adjustment in trunk
nethack.allison [Sat, 15 Mar 2003 12:33:57 +0000 (12:33 +0000)]
version number adjustment in trunk

21 years agosome release prep
nethack.allison [Sat, 15 Mar 2003 12:20:34 +0000 (12:20 +0000)]
some release prep