]> granicus.if.org Git - nethack/log
nethack
22 years agosome lint cleanup
nethack.rankin [Thu, 9 Jan 2003 09:18:14 +0000 (09:18 +0000)]
some lint cleanup

     Building with an old version of gcc with various warnings enabled
generated a lot of noise.  Most of it was due to not guarding string
literals with `const', but there were a couple of actual problems too.

22 years agomore mimic follow-up bits
nethack.allison [Thu, 9 Jan 2003 02:37:03 +0000 (02:37 +0000)]
more mimic follow-up bits

Address some complaints about an earlier patch.

22 years agobuild fix
nethack.rankin [Thu, 9 Jan 2003 01:32:26 +0000 (01:32 +0000)]
build fix

     I checked in the wrong diff earlier today.

22 years agohats vs horns
nethack.rankin [Thu, 9 Jan 2003 01:20:49 +0000 (01:20 +0000)]
hats vs horns

     Some recent newsgroup discussion claiming that a pet ki-rin was
wearing a helmet (I think poster was hallucinating) caused me to look
at some of the hat handling code.  There were a couple of noticeable
problems and one latent one in code added for 3.4.1.  Polymorphing
into a minotaur pushes hard helmets off hero's head, but nothing
prevented you from putting one right back on.  Helmet wearing monsters
who polymorphed into minotaurs weren't affected at all.  And message
handling always assumed multiple horns even though we have some singled
horned monsters, but since all those have no hands they can't wear any
armor and that potential pluralization issue wasn't noticeable.

22 years agoartifacts in final score
nethack.rankin [Wed, 8 Jan 2003 22:07:06 +0000 (22:07 +0000)]
artifacts in final score

     Fix the problem From a bug report.  An earlier fix (3.3.1)
made them be listed during final disclosure, but the points shown for
them actually got left out of the total due to misplaced brackets.
Rather than just fixing the brackets, merge the two inventory scanning
loops so that both passes will always be synchronized with each other.

22 years agomimic follow-up bit
nethack.allison [Mon, 6 Jan 2003 11:51:48 +0000 (11:51 +0000)]
mimic follow-up bit

22 years agoB14004 Cloaks of invisibility
nethack.allison [Sun, 5 Jan 2003 03:57:21 +0000 (03:57 +0000)]
B14004 Cloaks of invisibility

There's no feedback message nor item discovery when you see a monster
disappear as it puts on a cloak of invisibility.

22 years agoadornment
nethack.allison [Sat, 4 Jan 2003 22:12:55 +0000 (22:12 +0000)]
adornment
<email deleted> on Saturday, January 4, 2003 at 12:16:29
comments: I just noticed that, while wearing a -1 ring of adornment, a potion
of enlightenment gave the intrinsic "You are adorned."  Shouldn't it be more
accurately, "You are unadorned." or something similar?

22 years agosilver dragon colour
nethack.allison [Sat, 4 Jan 2003 17:37:09 +0000 (17:37 +0000)]
silver dragon colour

Back in 2000 "Pat Rankin" wrote:
>      From a user (in a message which had several unrelated things):
>
> > I think the colour of silver dragon scales / scale mail should not be
> > SILVER (which is not a colour), but HI_SILVER. Of course the colour of
> > silver dragons would have to be adjusted to match this.
>
> I don't normally have access to a color display, so I hadn't noticed
> that silver dragons are CLR_BRIGHT_CYAN.  It is pure coincidence
> that material SILVER happens to have the same numeric value as that.
> Is bright cyan intentional, to make them distinguishable from gray
> dragons (since color HI_SILVER is defined to be the same as CLR_GRAY)?
> Or was it done for the monsters just because the corresponding objects
> accidentally had the wrong value?  It seems to me that they ought to
> be the same shade of silver (ie, gray) as other silver things, even
> if that makes them look identical to gray dragons.

Using the material value SILVER in the "color"
field was wrong, no matter what the reason. I
suspect it was probably a mistake originally.

This patch does not alter the displayed colour for the
bug-fix release, but does correct the misuse of the
material.

22 years agomimic orange follow-up
nethack.allison [Sat, 4 Jan 2003 16:54:48 +0000 (16:54 +0000)]
mimic orange follow-up

22 years agomimic orange follow-up
nethack.allison [Sat, 4 Jan 2003 16:28:21 +0000 (16:28 +0000)]
mimic orange follow-up

22 years agoB14005 followup - X11 rip font
cohrs [Sat, 4 Jan 2003 02:54:45 +0000 (02:54 +0000)]
B14005 followup - X11 rip font
Steve VanDevender noticed that fixing the default text window font
caused the rip window to use this font as well, due to intricacies
of X11 resource relationships.

22 years agofix B16006 - cancelled monster-monster attacks
nethack.rankin [Sat, 4 Jan 2003 02:29:35 +0000 (02:29 +0000)]
fix B16006 - cancelled monster-monster attacks

     Various damage types which wouldn't work when a cancelled monster
attacks the player were working when it attacked other monsters instead.
Besides attempting to fix that, this also makes cloaks and other magic
blocking armor ("magic cancellation factor") work for monsters similar
to the way it works for the player.

     Most types of damage appear to revert to physical damage when the
attacker is cancelled; I'm not sure that's appropriate in many of the
instances.  The leg-pricking case was clearly wrong, since it gives
messages about the attack failing yet still hurt the character.

     This really needs a lot more testing than I have energy for.  I've
tried to clean up various inconsistencies and may have made some typos
in the process.

22 years agourban legend
nethack.allison [Fri, 3 Jan 2003 05:56:45 +0000 (05:56 +0000)]
urban legend

22 years agofix B14022
nethack.allison [Fri, 3 Jan 2003 04:40:27 +0000 (04:40 +0000)]
fix B14022
> You're equally unlikely to be wishing for spellbooks by colour,
> but I note that 'grey' for 'gray' only works for dragonscale and
> stones, not the spellbook description.

22 years agofix B16001 handlessness inconsistency
nethack.allison [Fri, 3 Jan 2003 03:54:07 +0000 (03:54 +0000)]
fix B16001 handlessness inconsistency

[forwarded from newsgroup]
When polymorphed into a handless monster, you can't loot a chest
that's on the ground but you can pick it up and then apply it when
it's in your inventory.

22 years agoB14023 More shade-related japery
nethack.allison [Fri, 3 Jan 2003 02:16:05 +0000 (02:16 +0000)]
B14023 More shade-related japery

> You hit the shade with an egg.  Splat!
> The cream pie splashes over the shade's face!
> Your venom burns the shade! [But it doesn't.]
> A mirror breaking I could possibly see, since the silvering is the
> important part there.

22 years agoB14005 - fixed width font for X11 text windows
cohrs [Thu, 2 Jan 2003 21:23:40 +0000 (21:23 +0000)]
B14005 - fixed width font for X11 text windows
Change the default font for X11 text windows to be fixed by uncommenting
the existing spec in the app defaults file.

22 years agoAllow msg_window option to be silently ignored by non-tty ports.
nethack.allison [Thu, 2 Jan 2003 12:21:48 +0000 (12:21 +0000)]
Allow msg_window option to be silently ignored by non-tty ports.

22 years agorevert B14005 cmdassist font fix
nethack.allison [Thu, 2 Jan 2003 04:00:46 +0000 (04:00 +0000)]
revert B14005 cmdassist font fix

22 years agoB14005 cmdassist font
nethack.allison [Thu, 2 Jan 2003 03:07:46 +0000 (03:07 +0000)]
B14005 cmdassist font

<Someone> wrote:
I happened to be playing under X11 for a change this weekend, and I
noticed that, since the direction help of cmdassist uses (sort of)
ASCII art, it looks rather peculiar in a proportional font. Could it
be made to use the menu font instead?

22 years agonew data.base entries
nethack.rankin [Tue, 31 Dec 2002 04:31:38 +0000 (04:31 +0000)]
new data.base entries

     Add the caveman, healer, and monk data.base entries supplied by
<Someone>, plus the healer one from <Someone>'s list of outstanding bugs and
requests.  Every role now has its own entry.  I left "dwarven caveman"
and "gnomish caveman" pointing at the generic dwarf and gnome entries
respectively, because the caveman quote feels to me to be more human-
specific than the earlier role ones have been.

     I added blank lines to the monk quote to break it into paragraphs,
and made two minor tweaks to the text.  I hope we can find or invent a
separate entry for Master Kaen though.  Getting a quote that refers to
Buddhism for him seems wrong to me, but leaving the generic human one
now that there's a monk-specific one didn't feel right either.

     I've moved a few quest guardians around this time.  Deciding which
of them should yield the corresponding role entries and which shouldn't
involves judgement calls and I don't claim that the current situation
is now perfect.

22 years agognomish wizard follow-up to follow-up
nethack.allison [Tue, 31 Dec 2002 04:11:38 +0000 (04:11 +0000)]
gnomish wizard follow-up to follow-up
By request, withdraw the limitation and revert
back to preventing all player species from
polymorphing into variants of that same species.

22 years agognomish wizard follow-up
nethack.allison [Tue, 31 Dec 2002 03:48:03 +0000 (03:48 +0000)]
gnomish wizard follow-up
Limit the race restriction to gnomes  to avoid
unanticipated problems with other species.

22 years agobuglist fix: gnomish wizard
nethack.allison [Tue, 31 Dec 2002 03:30:33 +0000 (03:30 +0000)]
buglist fix: gnomish wizard
<Someone> wrote: If you polymorph into a gnomish wizard (even if you *are* a gnomish
wizard), you shrink out of your armour.

22 years agoBorland Makefile (from Yitzhak)
nethack.allison [Mon, 30 Dec 2002 12:00:29 +0000 (12:00 +0000)]
Borland Makefile (from Yitzhak)

> This patch adds a bit of help on where a win32 bison/flex port can be
> downloaded, how to set it up, and provides default settings for that
>port. It seems the homepage has been stable for at least four years.
>The bison outputs from this port are y_tab.c and such, so I changed
>the defaults in the makefile to be such.  The flex output is yy.lex.c.
>One question that was fwd'd to me after the release dealt with
>using bison and flex.

22 years agonew year
nethack.allison [Mon, 30 Dec 2002 02:08:34 +0000 (02:08 +0000)]
new year

22 years agoraceptr()
nethack.allison [Mon, 30 Dec 2002 01:42:36 +0000 (01:42 +0000)]
raceptr()
Add a routine for returning a ptr
to the correct race of monst.
Compensates for polyd and non-polyd player.

22 years agobuglist entry: hobbits and elven mithril armour
nethack.allison [Sun, 29 Dec 2002 23:55:58 +0000 (23:55 +0000)]
buglist entry: hobbits and elven mithril armour
<Someone> wrote: "Also, hobbits can't wear armour,
at least, you can't wear armour when polymorphed into a hobbit, even
though hobbits do tend to be carrying elven mithril-coats.
It's tempting to suggest adding an explicit exception in
sliparm() for elven mithril just to keep the Tolkienness."

- added a general routine for adding race-based /object
combination exceptions.
- hobbits can wear elven mithril-coats

22 years agofix buglist entry - artifact bow wielded by monsters
nethack.rankin [Fri, 27 Dec 2002 03:40:57 +0000 (03:40 +0000)]
fix buglist entry - artifact bow wielded by monsters

     The Longbow of Diana (ranger quest artifact) confers reflection
to the hero when wielded but didn't do the same for monsters when they
wielded it.

22 years agofix B15006 - breaking lances with jousting
nethack.rankin [Fri, 27 Dec 2002 03:29:46 +0000 (03:29 +0000)]
fix B15006 - breaking lances with jousting

     Post 3.4.0 bug: "Your a lance (weapon in hand) shatters on impact!"
Use xname() instead of doname() to get "lance" instead of "a lance" here.
It also wasn't giving "you start bashing with your bare/gloved hands" on
the next attack after losing the weapon.

22 years agomore beta
nethack.allison [Thu, 26 Dec 2002 17:14:34 +0000 (17:14 +0000)]
more beta
BETA_INFO was being used in win32 code but
it is only defined in version.c

22 years agobeta 16
nethack.allison [Thu, 26 Dec 2002 16:43:38 +0000 (16:43 +0000)]
beta 16
- also fix typo that Pat noticed

22 years agoMSDOS autocompletion fix
nethack.allison [Tue, 24 Dec 2002 02:20:50 +0000 (02:20 +0000)]
MSDOS autocompletion fix

22 years agofollow-up to win32 backsp() change
nethack.allison [Mon, 23 Dec 2002 13:38:26 +0000 (13:38 +0000)]
follow-up to win32 backsp() change

22 years agowin32 port update (from <Someone>)
nethack.allison [Mon, 23 Dec 2002 12:59:06 +0000 (12:59 +0000)]
win32 port update (from <Someone>)
Implemented doprev_message in windows port: scroll message
window up one line.

22 years agoBorland updates (from Yitzhak)
nethack.allison [Mon, 23 Dec 2002 12:51:57 +0000 (12:51 +0000)]
Borland updates (from Yitzhak)

22 years agoautocomplete fix for win32
nethack.allison [Mon, 23 Dec 2002 12:49:56 +0000 (12:49 +0000)]
autocomplete fix for win32

The problem with the new autocomplete was tracked down to
be the result of differences between different implementations
of backsp().  The differences go all the way back to the
early MSDOS port by the look of it, and the win32,
and Mac tty ports all seemed to pattern themselves after the
MSDOS port for that routine.  Apparently, it didn't cause any
harm until now.

The problem is that backsp() sends a character sequence
of 0x08, 0x20, 0x08 on at least those ports, where the Unix
tty code only sends 0x08.  So the characters in the new
autocomplete were all being erased from the screen.

This patch only fixes the win32 tty port, so I've left the
conditional code in getline.c for DOS and Mac. I

22 years agomake recent autocomplete changes conditional
nethack.allison [Sun, 22 Dec 2002 02:46:08 +0000 (02:46 +0000)]
make recent autocomplete changes conditional
- there are problems with the changes on
at least the win32 tty port.

22 years agoanother data.base update
nethack.rankin [Fri, 20 Dec 2002 01:49:38 +0000 (01:49 +0000)]
another data.base update

     Add <Someone>'s priest and samurai entries.

22 years agoartifact invisibility fixes
nethack.rankin [Thu, 19 Dec 2002 02:24:13 +0000 (02:24 +0000)]
artifact invisibility fixes

     Invoking the archeologist's Orb of Detection gave "you feel a surge
of power, but nothing seems to happen" if you were able to see invisible,
but various other ways of toggling invisibility give fade/unfade messages
in that situation.  Also, you would get false reports of invisibility
changes if you invoked the artifact while temporarily invisible due to
potion or spell or while wearing a mummy wrapping.

22 years agoB15004 - Master Assassin's attack
cohrs [Thu, 19 Dec 2002 02:09:35 +0000 (02:09 +0000)]
B15004 - Master Assassin's attack
hitmu was trying, and failing, to re-implement parts of x_monnam().  Changed
it to use Monnam(), which produces more detailed messages than before in
some cases, but seems better since its messages are now more consistent
with hitmsg() and prints "The" in this specific case.

22 years agoU189 - killing an engulfing monster over water allows waterwalking
cohrs [Thu, 19 Dec 2002 01:57:10 +0000 (01:57 +0000)]
U189 - killing an engulfing monster over water allows waterwalking
- The code in xkilled failed to call spoteffects after killing the monster
that was engulfing you.  Being expelled already worked correctly.
- While testing this, I discovered that removing a ring of levitation or
similar while engulfed would call spoteffects when it shouldn't.  Fixed
that too.

22 years agodata.base revision
nethack.rankin [Wed, 18 Dec 2002 20:09:33 +0000 (20:09 +0000)]
data.base revision

     Add the wizard entry submitted by <Someone>.  It doesn't fit
perfectly but seems better than getting the generic human (or other
race) entry.  It pointed out that "gnomish wizard" is ambiguous between
a type of monster and a player character race/role combination.  I had
to add a special case to the code to make that work out right.

     This also makes all the roles that have the their entry match any
race; conversely, match the race's monster for roles that don't have an
entry (caveman, healer, monk, priest, and samurai; we really should get
them their own).  Previously many of the non-human ones yielded "I don't
have any information on such things" and at least one (elven priest)
yielded the generic human entry.

22 years agofix B15003 - behavior of bribe-able demons
nethack.rankin [Wed, 18 Dec 2002 18:15:55 +0000 (18:15 +0000)]
fix B15003 - behavior of bribe-able demons

     Prevent a demon who is carrying the Amulet of Yendor from being
removed from the game when player meets his demand for a bribe since
that was effectively destroying the Amulet.  There are various ways
to accomplish this; I chose to make the bribe demand be for an amount
that the player cannot possibly satisfy in that case.

22 years agoinvisibility bit
nethack.rankin [Wed, 18 Dec 2002 17:51:02 +0000 (17:51 +0000)]
invisibility bit

     Make timeout of temporary invisibility consistent with other
forms of toggling that state:  you notice it even when you are able
to see invisible.  (Invoking the archeologist's quest artifact is
still inconsistent in this regard.)

22 years agofix U193 - digging feedback for undiggable trees
nethack.rankin [Wed, 18 Dec 2002 17:38:57 +0000 (17:38 +0000)]
fix U193 - digging feedback for undiggable trees

> Zapping a wand of digging at trees in ranger's quest gives a message
> "rock glows then fades".

     There was code to handle this, but it didn't work due to the
definition of IS_TREE making checks for STONE be sensitive to code
ordering (STONE was checked first in this case).

#define IS_TREE(typ)    ((typ) == TREE || \
                        (level.flags.arboreal && (typ) == STONE))

Why is it defined this way?  Shouldn't STONE simply be converted
into TREE when arboreal levels get created?

22 years agowince (from <Someone>)
nethack.allison [Wed, 18 Dec 2002 03:51:34 +0000 (03:51 +0000)]
wince (from <Someone>)

Added support for
Palm-size PC (Windows CE 2.11) and Smartphone 2002.
It works fine under emulation, but it still needs to be tested
on real device. There are also some minor tweaks here and there.

Removed files:
    sys/wince/recover.vcp
    sys/wince/wince.vcp

New files:
    sys/wince/winhcksp.rc
    sys/wince/defaults.nh
    sys/wince/hpc.vcp
    sys/wince/palmpc.vcp
    sys/wince/pocketpc.vcp
    sys/wince/smartphn.vcp

<Someone>

22 years agosynch Guidebook with drawing.c
nethack.allison [Tue, 17 Dec 2002 11:19:45 +0000 (11:19 +0000)]
synch Guidebook with drawing.c

22 years agoB15002 - scorpions and spiders
cohrs [Tue, 17 Dec 2002 05:24:55 +0000 (05:24 +0000)]
B15002 - scorpions and spiders
tweak the description for the 's' symbol to include all its current members

22 years agomissing altar drop messages
cohrs [Tue, 17 Dec 2002 03:36:42 +0000 (03:36 +0000)]
missing altar drop messages
Most callers of dropx did not check for altars, but should have.  Rather
than add such checks, I moved the check from drop to dropx.  I also found
several callers of dropx that could generate out-of-order messages for some
cases (not new) and fixed them. FYI - callers of dropy don't seem to want
altar checks or already do them.

22 years agofix B14021 - inconsistent menu styles
nethack.rankin [Sat, 14 Dec 2002 11:53:22 +0000 (11:53 +0000)]
fix B14021 - inconsistent menu styles

     Menu styles `partial' and `full' will let you remove any type of
item from the three weapon slots via the 'A' command, but `traditional'
and `combination' would only do that for the primary weapon slot.  For
the alternate weapon and quiver slots, the item in question had to be
one which can normally be wielded or worn, otherwise when choosing the
object class letter you'd be told that it was "Not applicable."  And
for wearable items, you needed to be really wearing one of that class
(besides the quivered one) or else you'd get "not wearing any amulet"
or similar.

22 years agofix B14020 - unquivering with 'A'
nethack.rankin [Sat, 14 Dec 2002 11:22:10 +0000 (11:22 +0000)]
fix B14020 - unquivering with 'A'

     Ahe 'A' command would not let you remove a cursed item from the
quiver or alternate weapon slot.  But other commands such as drop or
quiver would let you get rid of such things since they aren't considered
to be welded in place the way a wielded weapon is.

     This seemingly minor bug is more significant than first appears
because it opens a loophole to allow you determine whether any held item
is cursed:  quiver it, try to remove it with 'A' and possibly be told
that it's cursed, really remove it with 'Q' if so.

22 years agomonsters and lava follow-up bit
nethack.allison [Thu, 12 Dec 2002 11:30:04 +0000 (11:30 +0000)]
monsters and lava follow-up bit
"aways" is not a word.

22 years agotty autocomplete
cohrs [Thu, 12 Dec 2002 06:16:39 +0000 (06:16 +0000)]
tty autocomplete
Change tty extended command autocomplete, based loosely on <Someone>'s
patch, to allow you to type autocompleted characters.  That is, you can type
characters the autocompleter inserted without invalidating the command.
I haven't looked closely, but at least some other windowport extended
command readers seem to already behave similarly.

22 years agoB14006 - monsters and lava
cohrs [Thu, 12 Dec 2002 04:28:28 +0000 (04:28 +0000)]
B14006 - monsters and lava
- water elementals now get a special message when they land in lava
- rather than track down all places where non-moving monsters can end up in
lava (or water, not that it currently matters), add a check to mcalcdistress
to catch all such cases, once per turn.

22 years agono renaming of unique monsters with proper names
cohrs [Thu, 12 Dec 2002 02:41:05 +0000 (02:41 +0000)]
no renaming of unique monsters with proper names
Not all leaders and nemeses have M2_PNAME set, so they require an extra
check to result in the expected behavior.

22 years agovarious message cleanups
cohrs [Thu, 12 Dec 2002 02:35:44 +0000 (02:35 +0000)]
various message cleanups
As From a bug report.
- tengu is plural, some true rumors spelled it "tengus"
- Caveman quest messages shouldn't contain the word "human" since not all
cavemen are human, changed such messages in various ways
- fix a typo in a Wizard quest message

22 years agowin32 IDE fix
nethack.allison [Wed, 11 Dec 2002 03:52:06 +0000 (03:52 +0000)]
win32 IDE fix
A recent change described as:
"changed the IDE files to build NetHackW.exe instead of
nethackw.exe. This is only cosmetic, but consistent with the
other executable."

was not just cosmetic. The changes prevented the
executable from being copied to the target binary
directory at all, due to the removal of the necessary
trailing tab.

22 years agobeta15
nethack.allison [Wed, 11 Dec 2002 03:22:38 +0000 (03:22 +0000)]
beta15

22 years agomore win32 build updates (from <Someone>)
nethack.allison [Wed, 11 Dec 2002 03:12:44 +0000 (03:12 +0000)]
more win32 build updates (from <Someone>)

22 years agofire attack messages
nethack.rankin [Tue, 10 Dec 2002 10:21:28 +0000 (10:21 +0000)]
fire attack messages

     Make sure the three instances of special fire effects stay
synchronized in the future by moving the relevant code into its own
routine.

     Shouldn't fire vortices and fire elementals also yield "already
on fire"?  How about ice vortices "melting"?

22 years agoB14016 - monster detection of mimics
cohrs [Tue, 10 Dec 2002 06:22:22 +0000 (06:22 +0000)]
B14016 - monster detection of mimics
When display_monster was changed in 3.4.0 to take multiple sightflags, the
mimic case was not updated completely.

22 years agoB14019 - pyrolisk vs flaming sphere
cohrs [Tue, 10 Dec 2002 05:07:09 +0000 (05:07 +0000)]
B14019 - pyrolisk vs flaming sphere
A 3.4.0 report, currently only the mdamagem gaze case caused the strange
"on fire" message for flaming spheres, but other attacks seemed like they
might result in a similar message, so I updated the damageum and hitmu
cases as well.

22 years agobuild fix
nethack.rankin [Mon, 9 Dec 2002 07:03:22 +0000 (07:03 +0000)]
build fix

22 years agowin32 updates (from <Someone>)
nethack.allison [Mon, 9 Dec 2002 03:12:47 +0000 (03:12 +0000)]
win32 updates (from <Someone>)

- restructured Install.nt quite a bit. It now contains instructions
to build a graphical nethack using NMAKE, too. I merged
the instructions for command line builds, and separated the IDE
build; that made more sense to me. It is shorter, too.
- added some lines to all Makefiles so they now build
NetHackW.exe when GRAPHICAL is "Y", and NetHack.exe
otherwise. I espacially did not test this on Borland.
Previously, the makefiles would always build NetHack.exe.
- changed the IDE files to build NetHackW.exe instead of
nethackw.exe. This is only cosmetic, but consistent with the
other executable.
- made a small change to pcmain.c, as the MinGW linker
cannot decide between main() and WinMain() when both are
present, as explained in <Someone>'s original
message. (I used a #ifndef instead of comments ;-)
The MinGW graphical build indeed seems to work.

22 years agobouncing zaps
cohrs [Mon, 9 Dec 2002 02:07:29 +0000 (02:07 +0000)]
bouncing zaps
As From a bug report, don't let bounces go past the edge of closed
doors.  His suggested patch included some redundancy, which I've removed.

22 years agoAnother switch to get_adjacent_loc()
nethack.allison [Mon, 9 Dec 2002 02:06:40 +0000 (02:06 +0000)]
Another switch to get_adjacent_loc()

22 years agoB14017 - skeletons and initial armor
cohrs [Mon, 9 Dec 2002 01:29:04 +0000 (01:29 +0000)]
B14017 - skeletons and initial armor
Add another check to m_dowear to allow skeletons to wear the leather armor
they're created with.

22 years agoB14018 healing mimics
cohrs [Sun, 8 Dec 2002 21:02:27 +0000 (21:02 +0000)]
B14018 healing mimics
Add missing newsym
Also fixed up some inconsistent indentation

22 years agojousting
nethack.rankin [Thu, 5 Dec 2002 02:07:20 +0000 (02:07 +0000)]
jousting

     Part I:  it's possible to use two-weapon combat while wielding a
lance (which seems odd to me); the second weapon would hit even if the
the first delivered a lance jousting blow that knocked the target away.

     Part II:  always getting the joust knockback effect when hitting
with a lance while mounted was too powerful; implement a suggestion
from the newsgroup that it be a random chance based on skill level.

     Related:  it's now possible to break your lance when hitting; when
adding that, I noticed that it was theoretically possible (didn't try
to reproduce) for a shattered boomerang or mirror to yield the stagger
bonus sometimes given for unarmed attacks.

22 years agofix up several death messages
cohrs [Thu, 28 Nov 2002 20:44:54 +0000 (20:44 +0000)]
fix up several death messages
<Someone> reported several incorrect death messages
1) "petrified by deliberately gazing at Medusa's hideous countenance" is
too long and won't fit on the tombstone.  I reworded it, which also better
reflects that Medusa's gaze is really an active attack.
2) "killed by war hammer named Mjollnir" for partly identified Mjollnir now
says "killed by a war hammer named Mjollnir".
3) "using a magical horn on himself" was missing the "killed by" prefix
4) there were supposedly cases the the a/an article was missing after being
killed by a monster.  I didn't see where this was occuring (eg AoLS resets
killer_format before it returns), but now done_in_by always resets
killer_format, which should address any such cases.

22 years agocomment bit
cohrs [Thu, 28 Nov 2002 19:13:01 +0000 (19:13 +0000)]
comment bit
mtrapped comment didn't mention webs

22 years agoDescribe new Qt Mac OS X files.
warwick [Thu, 28 Nov 2002 00:42:51 +0000 (00:42 +0000)]
Describe new Qt Mac OS X files.

22 years agoBuild rules for files needed by MacOSX
warwick [Wed, 27 Nov 2002 07:27:28 +0000 (07:27 +0000)]
Build rules for files needed by MacOSX
(actual files checked into win/Qt/ accidentally already)

22 years ago<email deleted>
warwick [Wed, 27 Nov 2002 04:37:12 +0000 (04:37 +0000)]
<email deleted>
If race is set to random and role is set to something
specific, the Qt interface sometimes hangs trying to
determine an appropriate race/role.

This patch that fixes the problem, and makes 'random'
work more appropriately.

22 years agoeffect of webs while mounted
cohrs [Sat, 23 Nov 2002 18:36:54 +0000 (18:36 +0000)]
effect of webs while mounted
Prompted by a message to the list from <Someone> which noted that your
strength controls the traps effect, not the steed's strength, although the
messages say otherwise.  Changed this case to use mintrap to determine what
happens.

22 years agoU154 - crash on teleport from engulfing mon
cohrs [Fri, 22 Nov 2002 03:55:48 +0000 (03:55 +0000)]
U154 - crash on teleport from engulfing mon
teleds now needs to handle the case where an uncarried ball starts out
inactive, but becomes active as a result of teleporting out of a monster
while engulfed.

22 years agoB14014: soft hats and piercers
cohrs [Thu, 21 Nov 2002 18:05:48 +0000 (18:05 +0000)]
B14014: soft hats and piercers
Soft "helmets" don't protect against falling rocks, but did protect against
piercers.  Update the checks so only hard (metallic) helmets provide this
protection.  The same report quibbled about using the word "helmet" for
soft head coverings.  This patch does not address that quibble.

22 years agostealing heaven
nethack.rankin [Thu, 21 Nov 2002 00:47:12 +0000 (00:47 +0000)]
stealing heaven

     Fix the reported problem of getting impossible warnings for unpaid
inventory items during final disclosure if you level teleport out of
the dungeon while holding shop goods.  The fix makes you trigger a shop
robbery first; that required a minor end of game change to prevent the
shopkeeper from seeming to tag along (shk would take your possessions
as if you'd died on the shop level).

22 years agofix B14013 - experience calculation
nethack.rankin [Wed, 20 Nov 2002 22:44:15 +0000 (22:44 +0000)]
fix B14013 - experience calculation

     Put in the missing parentheses that <Someone> reported; I don't know
how much that's going to impact experience calculations.  Also, update
some related code that didn't reflect the increase in default speed
from 10 to 12 back in 3.3.0.

22 years agorolling boulder hits an unmoving boulder
cohrs [Mon, 18 Nov 2002 22:37:38 +0000 (22:37 +0000)]
rolling boulder hits an unmoving boulder

22 years agoget_adjacent_loc()
nethack.allison [Sun, 17 Nov 2002 18:43:45 +0000 (18:43 +0000)]
get_adjacent_loc()

use get_adjacent_loc() rather than getdir() directly for some things where
you want to ensure valid adjacent coordinates are returned

<email deleted> wrote:
>>> [...]
>>> I've noticed that the loot adjacent spot code doesn't have any
>>> isok(x,y) test, so will risk crashing if used at the edge of
>>> the screen (whether deliberately, or accidentally due to being
>>> confused or stunned when picking the direction).

>> Would this not be a problem elsewhere, such as use_leash() too?

> Yes, that looks like the same risk. getdir() doesn't validate
> that the <u.ux+u.dx, u.uy,u.dy> is safe and neither does m_at(),
> so their callers need to.
>
> I did manage to provoke a crash with #loot on the plane of earth,
> although an accidental case would be a lot less likely to happen.

22 years agoWand of digging in a shop crash
cohrs [Sat, 16 Nov 2002 05:31:23 +0000 (05:31 +0000)]
Wand of digging in a shop crash
From a bug report.  I haven't looked closely, but I think this bug is just
in the development code.  If you dig in a shop with a wand while carrying
unpaid stuff, the shopkeeper would grab your pack, including the wand but
w/o clearing current_wand.  It seems the right thing is to just not grab
the current_wand, since it's not in your pack while you're zapping it.
In 3.4.0, you lost the wand too.

22 years agoshopkeeper falling thru a hole left unpaid objects unpaid
cohrs [Fri, 15 Nov 2002 07:32:52 +0000 (07:32 +0000)]
shopkeeper falling thru a hole left unpaid objects unpaid
Reported to the list.  Player breaks a wand of digging causing the
shopkeeper to fall.  This didn't clear unpaid items.  For now, this can
only occur due to player action, so added a call to make_angry_shk to
handle this situation.

22 years agolevel teleport and sleeping steed
cohrs [Fri, 15 Nov 2002 04:58:28 +0000 (04:58 +0000)]
level teleport and sleeping steed
If you level teleported while on a sleeping steed, a panic and possibly a
crash would occur.  I believe the same would occur by digging a hole.  This
was due to keepdogs avoiding keeping sleeping pets.  In these cases, it
seems there's no reason for the sleeping steed to _not_ accompany you.
Since other ways of changing level (eg stairs) don't allow this, just added
a check to keepdogs to allow the steed to go with you.

22 years agode-sparkling explosions
nethack.rankin [Wed, 13 Nov 2002 23:08:04 +0000 (23:08 +0000)]
de-sparkling explosions

     From the newsgroup:  explosions handle their own shield effect
display for resisting monsters and it was ignoring user's negation
of the sparkle option to suppress shield effect.

22 years agomore unused code tweaking
nethack.rankin [Sun, 10 Nov 2002 09:32:55 +0000 (09:32 +0000)]
more unused code tweaking

22 years agofix up some unused code
nethack.rankin [Sat, 9 Nov 2002 05:36:13 +0000 (05:36 +0000)]
fix up some unused code

22 years agofix B14012 - polymorph of monster possessions
nethack.rankin [Fri, 8 Nov 2002 12:45:58 +0000 (12:45 +0000)]
fix B14012 - polymorph of monster possessions

     Forwarded from the newsgroup:  when a monster gets hit by wand or
spell of polymorph, any armor that fell off was protected from being
hit by that same zap, but a dropped weapon wasn't.  Nor was the whole
dropped inventory in the case where the monster is killed by system
shock rather than transformed.  Protect its entire inventory.

22 years agoteleport control, confusion and stunned
cohrs [Thu, 7 Nov 2002 18:52:00 +0000 (18:52 +0000)]
teleport control, confusion and stunned
Being Stunned now disallows teleport control.  Confusion may affect ability
to control level teleports, but only after asking for the destination.
Made confused level teleport failures based on luck too.

22 years agosalamanders have no legs
cohrs [Thu, 7 Nov 2002 18:24:31 +0000 (18:24 +0000)]
salamanders have no legs
However, they could ride.  Marilith is similar, but since it's MZ_LARGE,
that check disallowed riding.  Added a check for slithy(), like
canwearobj() already has.

22 years agoremove curse tweak
nethack.rankin [Thu, 7 Nov 2002 03:55:51 +0000 (03:55 +0000)]
remove curse tweak

     When reading an uncursed scroll of remove curse, don't uncurse
an item "worn" in the quiver slot unless it is actually ammo or other
missile weapon.

22 years agohigh temple entry
nethack.rankin [Thu, 7 Nov 2002 03:27:37 +0000 (03:27 +0000)]
high temple entry

     From the newsgroup:  temples attended by high priests on the Astral
Plane (also in Moloch's Sanctum, although that one doesn't really matter)
give a different entry greeting than usual in order to conceal the altar's
alignment, but they were including the patron deity in the priest name
given as presenter of the message ("The high priest of Offler intones:").

22 years agofix B14011: vault wall repair
nethack.rankin [Thu, 7 Nov 2002 02:56:19 +0000 (02:56 +0000)]
fix B14011: vault wall repair

     From the newsgroup:  traps created on the location of dug out vault
walls would be left in place when/if the vault guard repaired the walls.
Since known traps get precedence over walls when drawing the map, this
produced a display oddity in addition to the topological one.

     It also appears that monsters in affected spots wouldn't be handled
correctly if they happened to be in a direct horizontal or vertical line
with the guard.  I don't know whether that matches any of the assorted
unresolved old vault bugs.

     This eliminates a chunk of redundant code by merging two loops.

22 years agoB13009 - Teleport Control and confusion
cohrs [Mon, 4 Nov 2002 22:11:35 +0000 (22:11 +0000)]
B13009 - Teleport Control and confusion
Only allow level teleports to be controlled when not confused, just like
regular teleports.

22 years agoB14010 - nausia and reading spellbooks
cohrs [Mon, 4 Nov 2002 22:07:23 +0000 (22:07 +0000)]
B14010 - nausia and reading spellbooks
Pulled out the code that handles reading spellbooks while confused into a
new function that can be called from learn() to handle the timed onset of
confusion starting while you're reading.

22 years agocancelled yellow lights
arromdee [Mon, 4 Nov 2002 06:55:55 +0000 (06:55 +0000)]
cancelled yellow lights
Someone reported this one to us.

22 years agoB08003 (from <Someone>)
nethack.allison [Mon, 4 Nov 2002 03:26:59 +0000 (03:26 +0000)]
B08003 (from <Someone>)

22 years agobold titles on Options menu (from <Someone>)
nethack.allison [Sun, 3 Nov 2002 15:41:48 +0000 (15:41 +0000)]
bold titles on Options menu (from <Someone>)