]> granicus.if.org Git - nethack/log
nethack
22 years agocursed daggers thrown by monsters can go thru closed doors
cohrs [Wed, 3 Jul 2002 06:35:35 +0000 (06:35 +0000)]
cursed daggers thrown by monsters can go thru closed doors
based on a bugfix forwarded by <Someone>, check for closed doors and drop
the missle before it.  I re-arranged the pre checks a bit so m_throw no
longer needs to trust the caller to ensure everything is OK beforehand.

22 years agoB01012 involuntary dismount crash
nethack.allison [Wed, 3 Jul 2002 02:22:50 +0000 (02:22 +0000)]
B01012 involuntary dismount crash

Nethack crashes when you are riding a flying monster over a
pool/moat and some engulfing monster plucks you off your saddle.
After falling into the water you'll get the normal message
sequence (sink like rock ... phew, that was close; you also get
chance to teleport if you can).  After the last message the game
will crash with a segmentation fault.
- reproducible; null pointer dereference in swallowed()

The crash results because dismount_steed() calls float_down(), which
calls drown(), which calls teleds(), which clears u.ustuck.  So when
gulpmu calls swallowed after dismount_steed(), this line attempts to
derefernce a null pointer:
    swallower = monsndx(u.ustuck->data);

This patch bypasses the float_down() in dismount steed() altogether.
That routine is meant to return the hero to the floor, and that
isn't appropriate if a purple worm just plucked you off the steed
anyway.

While this fixes the crash, a problem still exists. The
way swallowing works, the swallowing monster's location
switches to that of the hero.  Since that location is
over water, the purple worm ends up drowning almost
immediately after you are swallowed, while you are
swallowed.  The purple worm's death is not revealed
to you since the "The purple worm drowns." message is
conditional. This patch also adds a message when
the purple worm dies, but should this guaranteed
drowing take place?

22 years agoB01001
nethack.allison [Wed, 3 Jul 2002 00:11:22 +0000 (00:11 +0000)]
B01001
<Someone> reported this bug (B01001):
"Tower of flame" as cause of death _still_ lacks "killed by"
prefix.

22 years agodropping gold on an altar
cohrs [Tue, 2 Jul 2002 05:55:23 +0000 (05:55 +0000)]
dropping gold on an altar
<Someone> reported that dropping gold on an altar prints no message.
As a side effect, gnostic conduct was never affected, which seemed odd;
dropping other known objects would still affect your gnostic conduct.
While fixing this, I noticed a GOLDOBJ-related bug when dropping gold while
levitating.

22 years agoR975 - message for charging for items lost in a cursed magic bag
cohrs [Tue, 2 Jul 2002 04:14:59 +0000 (04:14 +0000)]
R975 - message for charging for items lost in a cursed magic bag
The loss message was not always printed due to testing the wrong variable
before printing the message.

22 years agocomment tidbit
nethack.rankin [Tue, 2 Jul 2002 02:47:28 +0000 (02:47 +0000)]
comment tidbit

22 years agogrammar of food warnings
nethack.rankin [Tue, 2 Jul 2002 02:39:27 +0000 (02:39 +0000)]
grammar of food warnings

Change "The corpses smell like it could be tainted! Eat it anyway?"
to be "The corpses smell like they could be tainted! Eat one anyway?"
when eating one of multiple stacked food objects.

22 years agopaniclog: log correct string
cohrs [Mon, 1 Jul 2002 23:06:01 +0000 (23:06 +0000)]
paniclog: log correct string

22 years agoearly directory validation follow-up
nethack.allison [Mon, 1 Jul 2002 22:53:30 +0000 (22:53 +0000)]
early directory validation follow-up
Don't test file creation on the read-only areas: dataprefix, configprefix

22 years agoearly directory validation
nethack.allison [Mon, 1 Jul 2002 22:42:57 +0000 (22:42 +0000)]
early directory validation
Allow early prefix directory validation to help prevent
failed games and lost save files due to incorrect config
file settings.

22 years agoClean up win32 emergency exit handling a little
nethack.allison [Mon, 1 Jul 2002 12:32:57 +0000 (12:32 +0000)]
Clean up win32 emergency exit handling a little

22 years agoIt was possible to terminate the win32 ports late in the user
nethack.allison [Mon, 1 Jul 2002 12:28:14 +0000 (12:28 +0000)]
It was possible to terminate the win32 ports late in the user
save process, after the save file had already been written by
forcing execution of an interrupt handler at one of the
termination prompts.  This resulted in "You were not healthy
enough to survive restoration" and worse.

This clears program_state.something_worth_saving immediately
after the save has been completed.

22 years agoaxing boulder/statue follow-up
nethack.allison [Mon, 1 Jul 2002 06:41:08 +0000 (06:41 +0000)]
axing boulder/statue follow-up
<email deleted>
Sent: Sunday, June 30, 2002 6:30 PM
Subject: Sparks from statue-axing
> First, the message given when your axe-handle vibrates is a little
> ambiguous; I'd be explicit and include the name of obj.
>
> More seriously, potions of oil catching light from the sparks are a) a
> great idea, but b) slightly broken. They catch light fine, but
> snuffing them produces a "del_light_source: not found"
> impossible(). (This probably means the same applies to being lit by
> fire_damage(), but that's rare enough this hasn't been caught before.)
>
> (Also, a)pplying a potion of oil to light one identifies its object
> type, so lighting one by this means probably ought to as well. And
> oughtn't it to be charged for if you don't own it, as light_cocktail()
> does?)

22 years agoMake problem of zero-sized .moc file less likely.
warwick [Mon, 1 Jul 2002 05:35:02 +0000 (05:35 +0000)]
Make problem of zero-sized .moc file less likely.
(<Someone> reported problem that was obscured by an empty .moc file
being created in a failed build)

22 years agoHow to make nhtiles.bmp
warwick [Mon, 1 Jul 2002 05:26:57 +0000 (05:26 +0000)]
How to make nhtiles.bmp
(and also my little tileedit utility)

22 years agonhtiles.bmp may be needed (eg. Qt windowport)
warwick [Mon, 1 Jul 2002 05:23:47 +0000 (05:23 +0000)]
nhtiles.bmp may be needed (eg. Qt windowport)

22 years agoFix focus order for playerselection.
warwick [Mon, 1 Jul 2002 05:06:56 +0000 (05:06 +0000)]
Fix focus order for playerselection.

22 years agoAvoid some key handling problems on Mac.
warwick [Mon, 1 Jul 2002 05:05:04 +0000 (05:05 +0000)]
Avoid some key handling problems on Mac.
(will also be fixed another way in Qt/Mac, but I like to
be thorough :-)

22 years agoyet another missing FOUNTAIN spec
cohrs [Mon, 1 Jul 2002 04:21:45 +0000 (04:21 +0000)]
yet another missing FOUNTAIN spec
<Someone> just reported this.

22 years agograteful frozen monsters
cohrs [Mon, 1 Jul 2002 02:44:26 +0000 (02:44 +0000)]
grateful frozen monsters
a frozen (possibly sleeping) monster cannot be grateful unless it wakes up.
From a bug report.  The pit case can only happen if mfrozen is
non-zero, but other traps may leave msleeping set as well.

22 years agofix a typo, then -> than
cohrs [Mon, 1 Jul 2002 02:27:19 +0000 (02:27 +0000)]
fix a typo, then -> than

22 years agofeeling monsters while blind and levitating
cohrs [Sun, 30 Jun 2002 22:29:58 +0000 (22:29 +0000)]
feeling monsters while blind and levitating
<Someone> reported this during 3.4.0 beta.  If you are blind and levitating,
unseen monsters are shown as "I", just like when not levitating, but they
are never erased after they move, unlike not levitating.  Display this
case correctly as well.

22 years agoB01011 can't #untrap container on trap
nethack.allison [Sun, 30 Jun 2002 21:02:55 +0000 (21:02 +0000)]
B01011 can't #untrap container on trap

A chest on a [known] trapped square cannot be untrapped--game
will always attempt to disarm the trap on the square.

22 years agoInclude reference to new paniclog in README
nethack.allison [Sun, 30 Jun 2002 13:37:25 +0000 (13:37 +0000)]
Include reference to new paniclog in README

22 years agofinal attributes say riding when you die while dismounting
cohrs [Sun, 30 Jun 2002 07:11:26 +0000 (07:11 +0000)]
final attributes say riding when you die while dismounting
Reported to the mailing list on 5/23.  To fix this, u.usteed cannot simply
be unset earlier, so I put a check for this special case into enlightenment().

22 years agoGuidebook synch with monexplain[]
nethack.allison [Sun, 30 Jun 2002 01:10:54 +0000 (01:10 +0000)]
Guidebook synch with monexplain[]

<email deleted>
Sent: Thursday, June 13, 2002 12:03 PM
Subject: Beta 1 comments
 > The description of Y monsters will be updated in the Guidebook
> 'monsters' option list to match mon_explain[], I assume? (Yes, yes,
> documentation :-)

22 years agotypos from <Someone>
nethack.allison [Sun, 30 Jun 2002 00:59:41 +0000 (00:59 +0000)]
typos from <Someone>

22 years agolookat() trapped detail
nethack.allison [Sun, 30 Jun 2002 00:52:49 +0000 (00:52 +0000)]
lookat() trapped detail

<email deleted>
Sent: Thursday, June 13, 2002 12:03 PM
Subject: Beta 1 comments
>A minor thing, but it'd be nice if the "trapped" now in lookat()
>had a defsyms[trap_to_defsym(tt)].explanation to tell you _how_
>the monster's trapped.

22 years agoheadstone engraving with wand of digging
nethack.allison [Sun, 30 Jun 2002 00:40:30 +0000 (00:40 +0000)]
headstone engraving with wand of digging

<email deleted>
Sent: Thursday, June 13, 2002 12:03 PM
Subject: Beta 1 comments
> Headstone writing still uses the adjective "weird" when engraving with
> a wand of digging.

22 years agoaxes and boulders
nethack.allison [Sun, 30 Jun 2002 00:22:04 +0000 (00:22 +0000)]
axes and boulders

<email deleted>
Subject: Beta 1 comments
> Is "You swing your axe through thin air" the right message to give
> when you try to use it to chop through a statue or boulder? Relatedly,
> this line in dig() looks as if it needs updating to the new dig_typ
> indices:

22 years agoGOLDOBJ zero payment in money2mon
cohrs [Sat, 29 Jun 2002 18:04:30 +0000 (18:04 +0000)]
GOLDOBJ zero payment in money2mon
backport of fix to slashem-Bugs-566538 from <Someone>.  money2mon
only makes sense if called with a non-zero amount.

22 years agoWIN32: File Save still enabled during #quit disclosure processing
nethack.allison [Sat, 29 Jun 2002 17:43:01 +0000 (17:43 +0000)]
WIN32: File Save still enabled during #quit disclosure processing
> Below is the result of your feedback form.  It was submitted by
> <email deleted> on Tuesday, June 4, 2002 at 21:04:54
> After alt-Q or F)ile, Q)uitting, it is still possible to F)ile, S)ave your
> game.  By doing this after you are shown your inventory [fully identified] and
> attributes (It must be done before the last "Do you want to view your %1"
> dialog is answered--usually conduct), which means you can know what you are
> holding-- although it won't be officially identified.  But you can use it to
> avoid putting on, say, an amulet of strangulation by mistake.

22 years agospellcasting level 0 monsters
cohrs [Sat, 29 Jun 2002 17:05:18 +0000 (17:05 +0000)]
spellcasting level 0 monsters
Based on a report from <Someone>, avoid calling rn2(ml) when ml == 0.
Since level 0 monster always fail in their spells, just skip the whole
loop looking for a good spell.

22 years agoNOCWD_ASSUMPTIONS followup
cohrs [Sat, 29 Jun 2002 15:12:15 +0000 (15:12 +0000)]
NOCWD_ASSUMPTIONS followup
Michael's VAR_PLAYGROUND update

22 years agomore NOCWD_ASSUMPTIONS
nethack.allison [Sat, 29 Jun 2002 12:44:54 +0000 (12:44 +0000)]
more NOCWD_ASSUMPTIONS
The NOCWD_ASSUMPTIONS conditional code allows readonly
parts of NetHack to be separated from areas that require write-access.
This allows the recent panic log needed a prefix.

22 years agoR920: Weird message when stoning quest nemesis
cohrs [Wed, 26 Jun 2002 15:19:05 +0000 (15:19 +0000)]
R920: Weird message when stoning quest nemesis
Make all the quest nemesis monsters resist stoning so their death messages
make sense.  Some already did resist.  Stoning seems like such a trivial
way to overcome a quest nemesis anyway.  If it were to be allowed, multiple
death messages would be needed in the quests.

22 years agonaming wielded weapons
nethack.rankin [Wed, 26 Jun 2002 05:54:50 +0000 (05:54 +0000)]
naming wielded weapons

     I'm surprised that no one has noticed this one yet.  When
wielding two weapons, naming either of them caused two-weapon
combat mode to stop (unless the weapon already had another name
which was long enough to be overwritten by the new name without
allocating a replacement object).

22 years agoSting's anti-orc warning
nethack.rankin [Tue, 25 Jun 2002 08:27:31 +0000 (08:27 +0000)]
Sting's anti-orc warning

     From the newsgroup:  creating Sting via naming didn't produce
intrinsic warning (orc detection) if it was already wielded at the
time.  (Un- and re-wielding it sufficed as a workaround.)

22 years ago#levelchange fix
nethack.rankin [Mon, 24 Jun 2002 10:30:23 +0000 (10:30 +0000)]
#levelchange fix

     Using #levelchange to reduce experience level would put nethack
into an infinite loop if the character had life-drain resistance.

22 years agopolymorphed two-weaponing
nethack.rankin [Mon, 24 Jun 2002 09:59:40 +0000 (09:59 +0000)]
polymorphed two-weaponing

     Cease two-weapon combat if you're using it in polymorphed form
and revert to normal form for any of the roles which can't use it.

22 years agofix crash when using ';' to look at I monsters
cohrs [Mon, 24 Jun 2002 05:10:44 +0000 (05:10 +0000)]
fix crash when using ';' to look at I monsters
Reported to the mailing list.  If you set your monster symbol options, and
use ';' and select a known invisible monster by screen, a crash would occur
accessing a null pointer.

22 years ago<Someone> passed on some OS/2 changes:
jwalz [Fri, 7 Jun 2002 22:10:21 +0000 (22:10 +0000)]
<Someone> passed on some OS/2 changes:
> <Someone> made several recommendations and has greatly improved the
> OS/2 makefile.

22 years agoentering discover mode while restoring a game
cohrs [Fri, 7 Jun 2002 21:24:52 +0000 (21:24 +0000)]
entering discover mode while restoring a game
Reported directly to the list.  If you are not the wizard and start nethack
on the command line with the -D flag (or -X), the game reports that you're
entering discover mode but does not actually do it.  The flags.explore in
the save file overwrote the new value.  Save the flag while reading flags
if discover mode was requested.

22 years agothe panic log
cohrs [Sun, 2 Jun 2002 18:49:18 +0000 (18:49 +0000)]
the panic log
Add an optional paniclog file, controlled by a new PANICLOG macro that can
be used to log all panic and impossible messages.  Helpful when people
forget to send, or didn't see, the message.

22 years agofixes catch up
nethack.allison [Sun, 2 Jun 2002 14:36:26 +0000 (14:36 +0000)]
fixes catch up

22 years agofrom <Someone>
nethack.allison [Sat, 1 Jun 2002 23:55:07 +0000 (23:55 +0000)]
from <Someone>

In item-selection menus, as you know one can press "=" to select all
rings, say.  This doesn't work if the letters run out before you get to
the rings, however (because there are so many items).

Menu code did not check group accelerators on items without assigned letters
(if the letters run out). Fixed.

22 years agoplatform-specific options moved in Guidebook
nethack.allison [Sat, 1 Jun 2002 23:53:14 +0000 (23:53 +0000)]
platform-specific options moved in Guidebook

Moves the remaining platform-specific options
to their own section of the Guidebook and documents
the "video:autodetect" option required for tiles on MSDOS.

22 years agowizard mode riding
nethack.rankin [Sat, 1 Jun 2002 10:40:59 +0000 (10:40 +0000)]
wizard mode riding

     "Force the mount to succeed?" doesn't necessarily do so;
it's worse than useless to suppress the message which indicates
why a mount attempt is failing when a failure occurs.

22 years ago Fix the "remove_object: obj not on floor" panic I encountered
nethack.rankin [Sat, 1 Jun 2002 10:32:55 +0000 (10:32 +0000)]
 Fix the "remove_object:  obj not on floor" panic I encountered
when investigating the report of death due to falling off steed leaving
"you were riding" in the final attributes.  (This doesn't fix that bug.)
Dismounting calls teleds() to put the character on the map and teleds()
does various iron ball manipulations, but during level change the ball
is removed from the map and those manipulations won't work as intended.

22 years agosingularization of irregularly pluralized monster types
nethack.rankin [Fri, 31 May 2002 03:39:00 +0000 (03:39 +0000)]
singularization of irregularly pluralized monster types

     Fix makesingular() to handle "vortices", "liches", and "fungi"
as suggested by <Someone> a while back; also "fungus".

22 years agoStaff of Aesculapius didn't always cure sliming
cohrs [Tue, 21 May 2002 16:14:36 +0000 (16:14 +0000)]
Staff of Aesculapius didn't always cure sliming
- incorporated <Someone>'s 1-line fix to the precheck

22 years agono unfinished stone in minetn-5
cohrs [Tue, 21 May 2002 16:02:03 +0000 (16:02 +0000)]
no unfinished stone in minetn-5
- based on a "bug" report, change an unfinished stone to a regular wall

22 years agohangups with temp gold in inventory
cohrs [Tue, 21 May 2002 05:04:09 +0000 (05:04 +0000)]
hangups with temp gold in inventory
- Implement Michael's suggestion of marking temp gold put in inventory
so it can be cleaned up during restore.

22 years agoadd Paul's scimitar quote
nethack.rankin [Tue, 21 May 2002 04:55:19 +0000 (04:55 +0000)]
add Paul's scimitar quote

22 years agoR883 - disappearing thrown money
cohrs [Mon, 20 May 2002 05:03:13 +0000 (05:03 +0000)]
R883 - disappearing thrown money
this is a !GOLDOBJ bug, the money was not put back into ugold in this
case when it was not thrown

22 years agochange appearance if polymorphing while mimicing
cohrs [Thu, 16 May 2002 04:02:52 +0000 (04:02 +0000)]
change appearance if polymorphing while mimicing
As per <Someone>:
> I had a game today where I was polymorphed (by a sink) into a mimic, and
> #monster-ed (hid).  The symbol on the map for me was ].  Then, I polymorphed
> again, this time into a kobold lord -- but the symbol remained ].  This
> seems wrong.
Handle this similar to the polyman code.

22 years agoR868 - don't kill paper/straw golems twice
cohrs [Thu, 16 May 2002 03:13:34 +0000 (03:13 +0000)]
R868 - don't kill paper/straw golems twice
longtime bug in damageum, if hero is poly'd to something with fire damage,
and hits a paper or straw golem, mondead will get called twice for the
monster.  Fix this, by working like AD_CURS does no clay golem.  Also, make
sure no scrolls, et al, get dropped by disallowing a corpse.

22 years ago#loot in shop
nethack.rankin [Wed, 15 May 2002 23:15:39 +0000 (23:15 +0000)]
#loot in shop

     Fix the reported bug of being double-billed for a bag of
holding destroyed if #loot is used to put a wand of cancellation
into it while it's on a shop floor.  (The bug report neglected
to mention a second aspect of the situation:  you wouldn't get
billed for the wand if you used an unpaid one to trigger this.)

22 years agotwoweapon feedback
nethack.rankin [Wed, 15 May 2002 06:48:46 +0000 (06:48 +0000)]
twoweapon feedback

     When #twoweapon fails, the message referring to "your current form"
sounds pretty odd when you're not polymorphed.

22 years agolooting containers and monsters
cohrs [Wed, 15 May 2002 05:10:06 +0000 (05:10 +0000)]
looting containers and monsters
There's a check in doloot that's supposed to disallow looting nearby
monsters if you loot a container at the current location.  But, it only
worked if you looted the last container.  Make the behavior consistent.

22 years agoR870 - shopkeeper grabbing backpack panic fix
cohrs [Tue, 14 May 2002 07:02:50 +0000 (07:02 +0000)]
R870 - shopkeeper grabbing backpack panic fix
The worn bits, et al, were not all cleared when the shopkeeper grabbed your
pack.  This currently affects only alternate (non-twoweap) and quivered
objects.  This could lead to a panic or a crash.

22 years agoredundant petrification message
nethack.rankin [Fri, 10 May 2002 02:07:45 +0000 (02:07 +0000)]
redundant petrification message

[I've lost the #Rxxx number for this bug report....]

     When attacking a non-stone golem with a cockatrice corpse,
suppress the redundant "<monster> turns to stone" message which
preceeded the "<monster> solidifies.  It's now a stone golem."
messages.

22 years agomonster strategy fix
nethack.rankin [Fri, 10 May 2002 01:59:25 +0000 (01:59 +0000)]
monster strategy fix

     From the newsgroup:  using #chat to talk to a "meditating"
monster like quest nemesis or Medusa could elicilit responses
without waking it up (at least if you moved fast enough enough
to probe it before it got its next turn).

22 years ago#ride workaround
nethack.rankin [Fri, 10 May 2002 01:50:22 +0000 (01:50 +0000)]
#ride workaround

From the newsgroup:
> Apparent bug or weird-seeming feature:
> If you try to mount a horse that is already in a pit,
> you get the message "You lead the poor <foo> into a pit!"

     I checked into fixing this properly (you mount the steed and
then shared its trapped status without actively retriggering the
trap in the process), but the trap code is too convoluted to do
that cleanly.  So this "fix" just makes mounting attempts fail if
the steed is trapped.

     (This diff is mostly whitespace cleanup.)

22 years ago3.4.1 beta marked
kmhugo [Thu, 9 May 2002 04:04:16 +0000 (04:04 +0000)]
3.4.1 beta marked

A tarball and binaries are forthcoming.

22 years agospecial level fountain fix
nethack.rankin [Fri, 3 May 2002 08:05:56 +0000 (08:05 +0000)]
special level fountain fix

     Add FOUNTAIN directives to the maps that just had '{' symbols.
Without them, the special level loader sets up those maps in a way
that prevents nethack from keeping the fountain counter accurately,
resulting in lack of fountain noises when they haven't been touched
yet and persistent noises after at least one of them has been dried
up.  (It would be better to fix lev_comp's map handling code to do
this automatically.)

22 years agoworm display bug
arromdee [Fri, 3 May 2002 03:47:39 +0000 (03:47 +0000)]
worm display bug
This fixes a long worm display bug.  The bug wasn't really in the worm code, it
was in goodpos().  goodpos() could place worm segments on top of one another.
If you split a worm when the tail was located on top of the head, the tail
would be removed from the screen, making the head seem to vanish.

22 years agostatue traps
arromdee [Fri, 3 May 2002 01:59:39 +0000 (01:59 +0000)]
statue traps
From the newsgroup (a little while back): if a statue comes to life and the
monster is invisible, you can't see it.

22 years agogrammar tidbit (fixes #R835)
nethack.rankin [Wed, 1 May 2002 01:26:32 +0000 (01:26 +0000)]
grammar tidbit (fixes #R835)

     Add special case to an() to produce "a one-eyed one-horned
flying purple people eater" instead of "an one-eyed ...".

22 years agoboulder display bug
cohrs [Sat, 27 Apr 2002 23:22:35 +0000 (23:22 +0000)]
boulder display bug
If you first pushed an undiscovered boulder while blind with ESP and
there's a monster behind it, you'd get a message referring to the boulder
but the boulder wasn't displayed.  Move the feel_location test.
Also, improved the grammar of the message a bit.

22 years agoR788 - bones corpses shouldn't all be human
cohrs [Wed, 24 Apr 2002 05:21:20 +0000 (05:21 +0000)]
R788 - bones corpses shouldn't all be human
u.umonnum was used to create the corpse in a bones file.  However, unless
you're polymorphed and manage to actually die in that form, u.umonnum
refers to a role monster, which all have M2_HUMAN set, so they're all
human.  Even if the role monsters were mutated dynamically when the game
starts, the problem would still exist, just in a different form.
Use urace to determine the corpse type instead.

22 years agoR765 - minetn-6 could have cut-off downstairs
cohrs [Wed, 24 Apr 2002 03:53:10 +0000 (03:53 +0000)]
R765 - minetn-6 could have cut-off downstairs
minetn-6 includes a MAP along with the flags that cause it to be cavernous.
However, the caverns get generated before the MAP is adde the level.  Other
similar MAPs have open space on their edges, but there were walls on the
lower right edge of minetn-6.  Added another column of mostly open space.
This level can still get cut-off areas, but the stairs won't be located there.

22 years agoR809 - newcham message reorganization
cohrs [Tue, 23 Apr 2002 06:15:52 +0000 (06:15 +0000)]
R809 - newcham message reorganization
Add a param to newcham() to let it print "The oldmon turns into a newmon!"
rather than always printing this externally.  Should ensure a good ordering
of the messages.  Also put some special name handling in one place and
catch a couple cases where "saddled" was printed, resulting in funny messages.

22 years agofix diggable luckstone location in minend-3
cohrs [Mon, 22 Apr 2002 04:39:18 +0000 (04:39 +0000)]
fix diggable luckstone location in minend-3
<Someone> reported that one of the 3 random luckstone rooms in
minend-3 was diggable, while the other 2 were non-diggable.  Fixed bounds.

22 years agoR792 - crocodile kicking
cohrs [Mon, 22 Apr 2002 03:58:41 +0000 (03:58 +0000)]
R792 - crocodile kicking
Based on the limited research I've done, it does not appear that crocodiles
of any size have legs that can effectively kick doors, chests, et al.  They
could kick objects, but kicking a monster would be more of a claw attack.
It's simpler to just print a message in all cases.

22 years agomore portable Gnome uid workaround
cohrs [Sun, 21 Apr 2002 23:59:52 +0000 (23:59 +0000)]
more portable Gnome uid workaround
- incorporate a more portable way of calling the real getres*id() functions
on Linux platforms that uses the glibc interface rather than calling
the system call directly.  The previous version didn't work on ia64 linux.

22 years agoR806 - monsters using teleportation on noteleport levels
cohrs [Sun, 21 Apr 2002 23:25:21 +0000 (23:25 +0000)]
R806 - monsters using teleportation on noteleport levels
Bug reported was that Vlad the Impaler never figured out that a wand of
teleportation was useless.
1) Rather than change the monst struct, overload the use of the mtrapseen
TELEP_TRAP bit to be set when a monster uses teleportation on a noteleport
level.  This has the side effect of causing the monster to know about
teleport traps if they manage to leave the level.
2) reduce chance for monsters to get teleport wands on noteleport levels,
since they will otherwise simply be left mostly charged for the player.

22 years agoKeep README and patchlevel updated with new info
nethack.allison [Sun, 21 Apr 2002 21:24:43 +0000 (21:24 +0000)]
Keep README and patchlevel updated with new info

22 years agoR812 - tty color/inverse video interaction
cohrs [Sun, 21 Apr 2002 19:01:57 +0000 (19:01 +0000)]
R812 - tty color/inverse video interaction
With some TERMs, disabling inverse video also disables color.
Work around: explicitly turn off color when turning off inverse video.

22 years agocompilation bits
cohrs [Sun, 21 Apr 2002 17:43:17 +0000 (17:43 +0000)]
compilation bits
- remove an unused variable in use_pick_axe2
- wiz_debug_cmd needs to return an int like other extended commands

22 years agoGnome updates (from <Someone> <Someone> Simon)
cohrs [Sun, 21 Apr 2002 17:09:34 +0000 (17:09 +0000)]
Gnome updates (from <Someone> <Someone> Simon)
- fix destruction of primary game windows
- One, it makes the color of the cursor box dynamic (these are the gnmap.c
changes), based on hp/hpmax (continuous colors white -> yellow -> red ->
magenta rather than discrete like in Qt).
- Two, it adds a new window, NHW_WORN (all the other changes and new files
gnworn.[ch]), placed at the end of the first row, to the right of the status,
with tiles of all the items currently equiped.  I had to change the spacing of
the first row (no longer homogeneous) to accomodate this, but I think it still
looks okay.  It's mostly like the Qt version but the equiped items are in
slightly different places, and a bit more compactly (added quiver, ball/chain,
monster skin armor; see the definition in gnworn.c for the layout).

22 years agodebug-mode extended cmd - panic
nethack.allison [Sun, 21 Apr 2002 13:51:10 +0000 (13:51 +0000)]
debug-mode extended cmd - panic

Add a debug-mode extended command #panic to call
panic().  Useful for testing panic-savefile generation.

22 years agoprevmsg followup
nethack.allison [Sun, 21 Apr 2002 13:36:38 +0000 (13:36 +0000)]
prevmsg followup
The patch by <Someone> assumed TTY_GRAPHICS was defined.
That broke environments where it wasn't, such as win32 graphics.

22 years ago(from <Someone>)
nethack.allison [Sun, 21 Apr 2002 13:22:57 +0000 (13:22 +0000)]
(from <Someone>)
Allow someone to resume their game by clicking on a saved game, if they
have an association set up.

22 years agopatchlevel follow-up bit
nethack.allison [Sat, 20 Apr 2002 14:28:24 +0000 (14:28 +0000)]
patchlevel follow-up bit

couple -> few

22 years agoMessage recall window extensions
nethack.allison [Sat, 20 Apr 2002 14:16:23 +0000 (14:16 +0000)]
Message recall window extensions
by <Someone>

(the following text accompanies the patch at <Someone>'s web page)

add more configurability to the new msg_window option of [..]3.4.0.
It allows the configuration option to take an optional parameter to
specify the style of message history display to use.

allows the following configuration options:

msg_window:s - single message (as was the default in 3.3.0)
msg_window:c - combination; two messages in 'single', then as 'full'
msg_window:f - full window; oldest message first
msg_window:r - full window reversed; newest message first

In the event of no parameter being provided,
the patch is compatible with the current 3.4.0 behaviour:
msg_window = 'full'
!msg_window = 'single'
msg_window can be configured for these options in the
Options menu (Shift-O)
msg_window stores the current window type in the non-persistent
iflags structure, which means that savefile/bones files should be
100% compatible with Vanilla, but at the disadvantage that your
customisations to msg_window will be replaced with your
defaults.nh (or ~/.nethackrc) value every time you restart a saved game.
Credits:

The patch draws inspiration (and code snippets) extensively
from <Someone>'s original msg_window patch, [...] as well as <Someone>'s code for reverse ordering implemented until recently in
Slash'em.

22 years agovault guard behavior
nethack.rankin [Fri, 19 Apr 2002 06:03:01 +0000 (06:03 +0000)]
vault guard behavior

     From the newsgroup:  vault guards would ask your name--and you'd
be able to respond--even when you were unconscious (for any reason
besides fainting from lack of food) or paralyzed.  (The code already
made the guard be forgiving when you failed to promptly follow him
out due to that situation, but it would repeatedly say "move along!"
even though you were unable to move.)

22 years agogrammar tidbit
nethack.rankin [Fri, 19 Apr 2002 05:50:02 +0000 (05:50 +0000)]
grammar tidbit

     From the newsgroup:  if the Candelabrum of Invocation already
has six candles attached and you apply another one to add the seventh,
the message said it "now has seven candle attached."

22 years agoR804 - fix crash caused by looking at a unique boulder symbol
cohrs [Fri, 19 Apr 2002 02:28:20 +0000 (02:28 +0000)]
R804 - fix crash caused by looking at a unique boulder symbol
The code only handled the case where the boulder symbol was non-unique.
Add code to handle the case where the boulder sym is the first match.

22 years ago(from <Someone>)
nethack.allison [Thu, 18 Apr 2002 22:21:05 +0000 (22:21 +0000)]
(from <Someone>)

W340-6 fix
fixed: mswin_menu_size incremented width of the actual menu window
each time being called. This only happens if "show window content
while dragging" option is set in Windows desktop settings.

22 years ago(from <Someone>)
nethack.allison [Thu, 18 Apr 2002 22:11:34 +0000 (22:11 +0000)]
(from <Someone>)
The pet image was garbled because it was reduced to the size of the pet mark
bitmap
in the function that draws pet mark transparently over the pet tile (32x32
image was reduced to 16x16 and then stretched again)

Also added: use Windows-provided TransparentBlt where available.

22 years agodiscovery of enchant weapon scrolls
nethack.rankin [Thu, 18 Apr 2002 02:26:09 +0000 (02:26 +0000)]
discovery of enchant weapon scrolls

     Eliminate or at least reduce one of the idiosyncratic differences
between enchant weapon and enchant armor:  make reading enchant weapon
discover that scroll if the effect is adequately discernible, instead
of always asking the player to supply a name for it.  If your weapon
is identified and its +/- enchantment value goes up, or you're wielding
a worm tooth and it transforms into a crysknife, you learn the scroll.
However for the negative effect of a cursed one, that's only applicable
when the scroll is already known to be cursed.

22 years agonaga hatchlings growing up
arromdee [Wed, 17 Apr 2002 00:12:02 +0000 (00:12 +0000)]
naga hatchlings growing up
This was reported on the newsgroup.

22 years agoGet rid of some win32 warnings from recent patches
nethack.allison [Tue, 16 Apr 2002 21:40:55 +0000 (21:40 +0000)]
Get rid of some win32 warnings from recent patches
mhmenu.c(798) : warning C4101: 'dtp' : unreferenced local variable
mhmenu.c(1273) : warning C4101: 'wbuf' : unreferenced local variable
mhmenu.c(1290) : warning C4101: 'drawRect' : unreferenced local variable
mhmenu.c(1289) : warning C4101: 'dtp' : unreferenced local variable

22 years agofixes34.1
kmhugo [Tue, 16 Apr 2002 17:27:57 +0000 (17:27 +0000)]
fixes34.1

Add entries for recent pick, axe, and grappling hook changes.

22 years agoGrappling hook aiming
kmhugo [Tue, 16 Apr 2002 17:24:33 +0000 (17:24 +0000)]
Grappling hook aiming

Characters skilled or better with a grappling hook have a chance of
aiming for an object, monster, or the floor.

22 years agopre-known Fake Amulet of Yendor
cohrs [Tue, 16 Apr 2002 04:57:51 +0000 (04:57 +0000)]
pre-known Fake Amulet of Yendor
the change to xname to lazily reset known on objects after DRIN attacks,
need not change the FAoY.  the_unique_obj already handles this

22 years agodigging rock vs. chopping wood
kmhugo [Tue, 16 Apr 2002 01:37:57 +0000 (01:37 +0000)]
digging rock vs. chopping wood

Refinement of the digging code:
* Picks should not chop down trees, but axes should.
* Picks should break walls, rock, statues, and boulders; axes shouldn't.
* Either picks or axes should chop down doors.

22 years agotidbit
kmhugo [Mon, 15 Apr 2002 19:25:18 +0000 (19:25 +0000)]
tidbit

A nice little quote I saw in the newsgroup a while ago...

22 years agopolymorph engulfing monster display bit
cohrs [Mon, 15 Apr 2002 15:33:44 +0000 (15:33 +0000)]
polymorph engulfing monster display bit
- <Someone> reported that the swallowed display did not update immediately if
you managed to polymorph the monster that was engulfing you into another
engulfing monster