]> granicus.if.org Git - nethack/log
nethack
22 years agobuilding under MinGW (from <Someone>)
nethack.allison [Wed, 19 Feb 2003 13:53:08 +0000 (13:53 +0000)]
building under MinGW (from <Someone>)
didn't work. Makefile.gcc had a space instead of a tab somewhere.

22 years agoconfuse monster bit
nethack.rankin [Wed, 19 Feb 2003 12:26:03 +0000 (12:26 +0000)]
confuse monster bit

     '+' is not a valid argument to resist(), although it still works
since the default case catches it.  Make the spell class explicit,
although I don't think having the effectiveness of scrolls of confuse
monster depend on the character's level makes much sense.

22 years agoruntime port identification
nethack.allison [Wed, 19 Feb 2003 11:44:14 +0000 (11:44 +0000)]
runtime port identification
The CE ports use makedefs hosted on another platform,
so the version string generated at build time isn't really
appropriate.

Add a way to add information to the version string
at runtime for such ports.

22 years agoensure that shade_aware is only set for shades.
nethack.allison [Wed, 19 Feb 2003 11:19:30 +0000 (11:19 +0000)]
ensure that shade_aware is only set for shades.

22 years agoteleporting monster strategy
nethack.rankin [Wed, 19 Feb 2003 09:55:17 +0000 (09:55 +0000)]
teleporting monster strategy

     Reported last spring and again last week:  monsters who teleport to
your location (named demons, master liches, and so forth) continue to do
that even if they've just used a scroll or wand of teleportation to get
away from you.  This doesn't prevent that situation but does make it be
much less likely to occur.

22 years agowizkit revisited
nethack.rankin [Wed, 19 Feb 2003 08:35:51 +0000 (08:35 +0000)]
wizkit revisited

     The previous changed ended up discarding the begining portion of
excessively long lines and keeping the end.  It's unlikely that either
part is going to be valid, but reporting the ending portion as a failed
wish would make tracking down and fixing the situation trickier.

22 years agowizkit fgets() buffer size
nethack.allison [Wed, 19 Feb 2003 06:14:47 +0000 (06:14 +0000)]
wizkit fgets() buffer size
also ignore lines where we didn't read a newline within BUFSZ characters

22 years agolint follow up
nethack.allison [Wed, 19 Feb 2003 05:12:31 +0000 (05:12 +0000)]
lint follow up
Janet wrote:
>There is one more new complaint that might cause problems:
>explode.c(545): warning: conversion from long may lose accuracy

22 years agoundead turning of ghost on bones level
nethack.allison [Wed, 19 Feb 2003 04:31:46 +0000 (04:31 +0000)]
undead turning of ghost on bones level

<email deleted>
Newsgroups: rec.games.roguelike.nethack
Subject: Re: Other ways to destroy the Amulet

<Someone> wrote:
>>> Zapped undead turning at his _corpse_, which brought the corpse
>>> back to life and also destroyed the ghost. The revived
>>> character was not carrying anything.
>>
>> Hmm, didn't the Amulet fall to the floor like when you genocide
>> something that's carrying something?
>
> Nope.
>
> That's because undead turning does mongone(ghost). The mongone
> function destroys the inventory of the monster:
> discard_minvent(mdef); /* release monster's inventory */
>
> Whereas genocided monsters are removed with mondead, which calls
> m_detach, which calls relobj, which drops the monster's inventory
> on the floor.

22 years agoLint cleanup, nothing significant.
jwalz [Wed, 19 Feb 2003 03:18:49 +0000 (03:18 +0000)]
Lint cleanup, nothing significant.

There is one more new complaint that might cause problems:
explode.c(545): warning: conversion from long may lose accuracy

22 years agowindows PORT_SUB_ID
nethack.allison [Wed, 19 Feb 2003 03:14:21 +0000 (03:14 +0000)]
windows PORT_SUB_ID

allow PORT_SUB_ID to be defined in ntconf.h or ceconf.h

22 years agoUpdate against what's in the directories.
jwalz [Wed, 19 Feb 2003 00:06:39 +0000 (00:06 +0000)]
Update against what's in the directories.

22 years agoAllow use of old compiler.
jwalz [Tue, 18 Feb 2003 22:31:12 +0000 (22:31 +0000)]
Allow use of old compiler.

22 years agoB20001 - shopkeeper angry at unnamed customer
cohrs [Tue, 18 Feb 2003 17:08:04 +0000 (17:08 +0000)]
B20001 - shopkeeper angry at unnamed customer
The "following" flag could get set in several places where it was not
obvious that the customer name would be remembered.  Since the shopkeeper
should always get angry at the current player, set the name at the same
place that the flag is set.

22 years agofix warning without STEED defined
nethack.allison [Tue, 18 Feb 2003 12:28:35 +0000 (12:28 +0000)]
fix warning without STEED defined

22 years agowin32 and msdos recover
nethack.allison [Tue, 18 Feb 2003 00:21:19 +0000 (00:21 +0000)]
win32 and msdos recover

Since the ports have SELF_RECOVER defined,
remove the build of recover.exe from the default steps.
You must explicitly use 'make recover' now.

22 years agowin32 and msdos recover
nethack.allison [Mon, 17 Feb 2003 23:56:40 +0000 (23:56 +0000)]
win32 and msdos recover

Since the ports have SELF_RECOVER defined,
remove the build of recover.exe from the default steps.
You must explicitly use 'make recover' now.

22 years agoCEmore prompt (from <Someone>)
nethack.allison [Mon, 17 Feb 2003 23:19:01 +0000 (23:19 +0000)]
CEmore prompt (from <Someone>)

Prevent "--more--" prompt from appearing when several
questions being asked in the same loop (like selling
something in the shop

22 years agomore MSDOS build
nethack.allison [Mon, 17 Feb 2003 02:55:46 +0000 (02:55 +0000)]
more MSDOS build

22 years agoOS/2 patch (from <Someone>)
nethack.allison [Mon, 17 Feb 2003 01:47:13 +0000 (01:47 +0000)]
OS/2 patch (from <Someone>)

22 years agomacro arrangement bit
nethack.allison [Sat, 15 Feb 2003 23:34:37 +0000 (23:34 +0000)]
macro arrangement bit

22 years agowin32 bits
nethack.allison [Sat, 15 Feb 2003 22:46:10 +0000 (22:46 +0000)]
win32 bits

22 years agowin32 error message glitch noticed
nethack.allison [Sat, 15 Feb 2003 15:46:58 +0000 (15:46 +0000)]
win32 error message glitch noticed

22 years agofixes update SELF_RECOVER on winCE
nethack.allison [Sat, 15 Feb 2003 13:53:24 +0000 (13:53 +0000)]
fixes update SELF_RECOVER on winCE

22 years agofix djgpp Makefile
nethack.allison [Sat, 15 Feb 2003 13:18:39 +0000 (13:18 +0000)]
fix djgpp Makefile

22 years agobeta 20
nethack.allison [Sat, 15 Feb 2003 02:45:37 +0000 (02:45 +0000)]
beta 20

22 years agotypo fix on recent Makefile.gcc patch
nethack.allison [Fri, 14 Feb 2003 11:25:24 +0000 (11:25 +0000)]
typo fix on recent Makefile.gcc patch

22 years agomore CE (from <Someone>)
nethack.allison [Fri, 14 Feb 2003 03:42:52 +0000 (03:42 +0000)]
more CE (from <Someone>)

22 years agowin32 and DOS dependency update for 3.4.1
nethack.allison [Fri, 14 Feb 2003 03:38:50 +0000 (03:38 +0000)]
win32 and DOS dependency update for 3.4.1

22 years agofix B18012 - Werebane
nethack.rankin [Fri, 14 Feb 2003 01:06:08 +0000 (01:06 +0000)]
fix B18012 - Werebane

     Make wielding Werebane confer defense against catching lychanthropy
from monster bites.  It doesn't protect against catching that from eating
lycanthrope corpses and might blast the character if wielded at such time.

     Also fix artifact handling to recognize the character as lycanthrope
while in normal human/elf/whatever form--rather than only when in beast
form--just like it does for monsters.

22 years agofix U206 - cursed leash/pacifist conduct
nethack.rankin [Thu, 13 Feb 2003 23:32:48 +0000 (23:32 +0000)]
fix U206 - cursed leash/pacifist conduct

      Treat strangling a pet with a cursed leash like a regular monster
kill; you'll get experience, lose pacifism conduct, and suffer various
pet-killer effects.  Also do some minor damage and reduce tameness for
the case where the pet is described as being choked but isn't killed.

22 years agovms Makefile
nethack.rankin [Thu, 13 Feb 2003 23:30:38 +0000 (23:30 +0000)]
vms Makefile

22 years agonote buffer overflow fix
cohrs [Thu, 13 Feb 2003 16:22:06 +0000 (16:22 +0000)]
note buffer overflow fix

22 years agoREADME update
nethack.allison [Thu, 13 Feb 2003 12:36:01 +0000 (12:36 +0000)]
README update

22 years agono message
nethack.allison [Thu, 13 Feb 2003 12:35:27 +0000 (12:35 +0000)]
no message

22 years agotombstone engraving with fingers
nethack.allison [Thu, 13 Feb 2003 11:04:56 +0000 (11:04 +0000)]
tombstone engraving with fingers
<email deleted> wrote:
> comments: When I try to write in the dust, with my finger, on a
> tombstone, it works the first time, but after that I'm getting a
> message that I can not erase what's written here.  Is that an
> intentional way of preventing us gaining a bunch of levels fighting

5 days, no objections to proposed code change.

22 years agoU162 - killing shopkeeper with unpaid thrown objects
cohrs [Thu, 13 Feb 2003 07:52:49 +0000 (07:52 +0000)]
U162 - killing shopkeeper with unpaid thrown objects
While an object is being thrown, it isn't on any list.  This means that
killing a shopkeeper with an unpaid object wouldn't be able to clear the
unpaid bit.  By the time the object lands, the shopkeeper is gone, and then
it's too late.  Added a new global to track a thrown object, set it and later
clear it in throwit(), also clear it as needed in dealloc_obj(), and check
it in setpaid().  It should be possible to use this global to avoid losing
thrown objects during hangup saves as well.  But that can wait.

22 years agosteeds don't remember traps
cohrs [Thu, 13 Feb 2003 05:23:46 +0000 (05:23 +0000)]
steeds don't remember traps
<Someone> reported to the list that steeds didn't remember traps
encountered while mounted.  When not mounted, a monster will remember
traps, even when they don't damage the monster.  To that end, added code to
set the steed's mtrapseen mask.

22 years agoCE patch (from <Someone>)
nethack.allison [Thu, 13 Feb 2003 05:10:21 +0000 (05:10 +0000)]
CE patch (from <Someone>)

22 years agoB17007 - ctrl/p documentation
cohrs [Thu, 13 Feb 2003 04:55:29 +0000 (04:55 +0000)]
B17007 - ctrl/p documentation
mention msg_window in the Guidebook and long online help.  I didn't update
hh since that only has one-liners.  Also made the msg_window default clear
in the Guidebook and opthelp.  Plus, an update to Guidebook.txt in hopes
that it won't need another before release.

22 years agopline bits
cohrs [Wed, 12 Feb 2003 06:30:06 +0000 (06:30 +0000)]
pline bits
a few plines that were without punctuation.  There may be more non-DEBUG
pline or pline-like things that are still missing punctuation.  They are
almost impossible to find after the fact, since they could be anywhere,
including in various dat files and functions that pass strings and formats
into other functions that call pline.

22 years agoline length bit
cohrs [Wed, 12 Feb 2003 03:57:41 +0000 (03:57 +0000)]
line length bit

22 years agounix dependency update for 3.4.1
cohrs [Wed, 12 Feb 2003 03:37:58 +0000 (03:37 +0000)]
unix dependency update for 3.4.1
should now be up to date unless someone makes a material change to includes

22 years agoU260 - waiting times out for no reason while in were form
cohrs [Wed, 12 Feb 2003 02:07:22 +0000 (02:07 +0000)]
U260 - waiting times out for no reason while in were form
The initial report thought this was related to summoning help.  It's not.
moveloop would attempt to call you_were() even when you_were() would not
actually change your form.  Certainly there's a layering problem here, but
for now, just put in the same check peffects() uses to avoid calling
you_were() unnecessarily.

22 years agofalling into water while asleep
nethack.rankin [Tue, 11 Feb 2003 11:57:14 +0000 (11:57 +0000)]
falling into water while asleep

     Try to fix the reported bug of not waking up if sleeping on ice
that gets melted out from under you.  This fixes the straightforward
case but I suspect there are other permutations that it doesn't cover.
Teleporting out of water is now blocked if asleep; waking up occurs
after the chance for that has passed.

22 years agovms update
nethack.rankin [Tue, 11 Feb 2003 10:45:42 +0000 (10:45 +0000)]
vms update

22 years agomagicbane tweaks
nethack.rankin [Tue, 11 Feb 2003 10:10:17 +0000 (10:10 +0000)]
magicbane tweaks

     Update the comments to [try to] more accurately describe the behavior.
Also add hallucination handling and make the probe effect be more likely
to occur (or to put it another way, make the stun effect be less likely
since one or the other always takes place--except when stun is superseded
by something more severe).

22 years agonethack -s buffer overflow fix
cohrs [Mon, 10 Feb 2003 19:01:58 +0000 (19:01 +0000)]
nethack -s buffer overflow fix
When printing invalid player names in -s mode, it was possible to overflow
the output buffer due to a missing buffer size check.  On shared Unix-like
systems with executable stacks, this could be used as a security exploit,
eg to obtain a shell running as user or group games.
While I was at it, removed a dead block of "#if 0" code

22 years agomagicbane fixes
nethack.rankin [Mon, 10 Feb 2003 11:08:29 +0000 (11:08 +0000)]
magicbane fixes

     Revamp the Magicbane code so that it won't result in "<monster>
turns to flee" followed by "the magic-absorbing blade scares <monster>".
In the process I noticed that resistance checks for its scare and purge
effects were based on the character's experience level regardless of who
was wielding it or who its target was.

     I didn't try to retain the exact behavior it had before, but the
new behavior is pretty close.  The main differences are that the "purge"
effect is now called "cancel" and that the stun effect will be less
common now and always gives feedback when it occurs.  It used to combine
stun with scare and/or purge in some cases, now it won't; and it used to
always scare when purging, now it will pick one or the other.

22 years agomagicbane groundwork
nethack.rankin [Mon, 10 Feb 2003 10:23:01 +0000 (10:23 +0000)]
magicbane groundwork

     To fix Magicbane's message sequencing, its code needs to be redone
substantially.  These changes make that easier.

cancel_monst()  let caller know whether cancellation succeeds
resist()  give artifact weapons a resistance attack rating
vtense()  handle monster names and "you" as subjects; checking against
          object names and descriptions pointed out a couple of other
          words that would have ended up being miscategorized.

22 years agogrammar bit
nethack.allison [Sun, 9 Feb 2003 15:42:42 +0000 (15:42 +0000)]
grammar bit

<email deleted> wrote:
> On Sun, 12 Jan 2003 15:40:33 +0100, <Someone>
> <email deleted> wrote:
>
> >You begin praying to Anu. You are surrounded by a shimmering light.
> >You finish your prayer. You feel that Anu is well-pleased.
> >Your stomach feels content.
> >You are feeling mildly nauseous.
>
> Huh.
>
> sh-2.03$ grep nauseous *.c
> pline.c:        if (Vomiting)           Strcat(info, ", nauseated"); /*
> !"nauseous" */
> potion.c:           if(talk) You_feel("much less nauseous now.");
> timeout.c:      "are feeling mildly nauseous.",         /* 14 */
>
> Well, pline.c has it right.  Nauseated means feeling sick.  Nauseous
> means sickening to contemplate.

Second opinion (dictionary.com):
> Usage Note: Traditional critics have insisted that nauseous is
> properly used only to mean causing nausea and that it is
> incorrect to use it to mean affected with nausea, as in Roller
> coasters make me nauseous. In this example, nauseated is
> preferred by 72 percent of the Usage Panel. Curiously, though, 88
> percent of the Panelists prefer using nauseating in the sentence
> The children looked a little green from too many candy apples and
> nauseating (not nauseous) rides. Since there is a lot of evidence
> to show that nauseous is widely used to mean feeling sick, it
> appears that people use nauseous mainly in the sense in which it
> is considered incorrect. In its correct sense it is being
> supplanted by nauseating.

22 years agowin32tty fixes34.1 catch up
nethack.allison [Sun, 9 Feb 2003 11:35:38 +0000 (11:35 +0000)]
win32tty  fixes34.1 catch up

22 years agobeta 19
nethack.allison [Sun, 9 Feb 2003 06:02:42 +0000 (06:02 +0000)]
beta 19

22 years agoB18009 animate figurine over water
nethack.allison [Sun, 9 Feb 2003 05:39:32 +0000 (05:39 +0000)]
B18009 animate figurine over water

>More worrying is the fact that applying a figurine over water lets
>the monster wait until its next move before it drowns (giving
>you time to teleport it to safety, or whatever) [...]
>Should there be a minliquid() check as part of make_familiar()?

Applying at the water location next to you was easy. But
applying it at your own location (triggering BY_YOU)  could
end up placing the figurine at the far side of the level if
there was lots of water.

Correcting that required the ability to pass a flag from
make_familiar to makemon() telling it to not rule out
water locations as good positions.  The flag had to
be passed on down to goodpos() and enexto().

The bulk of this patch is just adding an additional
argument to goodpos() in all of the callers.

22 years agoCloning monsters doesn't count for extinction as comments imply
nethack.allison [Sun, 9 Feb 2003 02:25:02 +0000 (02:25 +0000)]
Cloning monsters doesn't count for extinction as comments imply
Another from <Someone>'s list.

Adjust the comment.

22 years agoxorns sink follow-up
nethack.allison [Sun, 9 Feb 2003 02:10:55 +0000 (02:10 +0000)]
xorns sink follow-up
|

22 years agoxorns sink when drawbridge is raised
nethack.allison [Sun, 9 Feb 2003 02:05:02 +0000 (02:05 +0000)]
xorns sink when drawbridge is raised
From <Someone>'s list: Xorns don't sink if the drawbridge they're standing on is
raised.

22 years agofix B18011 warning loss
nethack.allison [Sun, 9 Feb 2003 00:36:33 +0000 (00:36 +0000)]
fix B18011 warning loss

> If you remove a ring of warning, see_monsters() is called to make
> sure that the numbers get removed from the display. However, if
> your only source of warning is experience level and you get
> drained and feel "less sensitive", it isn't, and they're not.

22 years agofix B18010 fatal exploding chest at ball & chain
nethack.allison [Sat, 8 Feb 2003 22:00:58 +0000 (22:00 +0000)]
fix B18010 fatal exploding chest at ball & chain

22 years agofix B18007 - travel cmd forces extra keystroke
nethack.rankin [Fri, 7 Feb 2003 10:04:27 +0000 (10:04 +0000)]
fix B18007 - travel cmd forces extra keystroke

     I don't know whether there were any other odd situations besides moving
onto known traps being caused by the out of date value in flags.run; several
places do check to see whether it's 8.

22 years agoport-specific debug-mode command
nethack.allison [Thu, 6 Feb 2003 03:07:43 +0000 (03:07 +0000)]
port-specific debug-mode command

Provide a way to have a port-specific debug-mode commands
if PORT_DEBUG is defined at build time.

Add a win32 keystroke checking routine to assist debugging
of international keyboards.

Fix a problem with the way NetHack was handling
international keyboards by letting ToAscii() come
up with an input character based on the virtual key,
and the shift and caps lock state.

22 years agofreezing sphere and amulet of lifesaving
nethack.allison [Tue, 4 Feb 2003 00:56:03 +0000 (00:56 +0000)]
freezing sphere and amulet of lifesaving

<Someone> wrote:
> "The freezing sphere explodes!  You seem unaffected by it.  But wait...
>   The freezing sphere's medallion begins to glow!
>   The freezing sphere looks much better!
>   The medallion crumbles to dust!"
> How can sphere wear a medaillon?
> How can an exploded creature start to look better, if it leaves no corpse?

This addresses the part about looking better, it does not
address spheres wearing medallions (which is not a bug
in my opinion, but other opinions may differ)

22 years agoCrunched to crunched
nethack.allison [Tue, 4 Feb 2003 00:14:08 +0000 (00:14 +0000)]
Crunched to crunched
<email deleted>
> comments: When dieing from an iron ball landing on your head, the death is
> listed as: "Crunched in the head by an iron ball"
> However no other deaths start with a capital letter.

22 years agofix other way to get "silly thing to wear"
nethack.allison [Fri, 31 Jan 2003 13:19:09 +0000 (13:19 +0000)]
fix other way to get "silly thing to wear"

It was possible for the code to end up in do_wear.c
to put out the "silly thing to wear" message.

22 years agofix U242 - bug with monks
nethack.rankin [Fri, 31 Jan 2003 06:41:56 +0000 (06:41 +0000)]
fix U242 - bug with monks

     Monks get a big penalty to hit when wearing a suit; otherwise they
get a bonus when not wielding a weapon.  But as reported, that lets them
have their martial arts bonus even while wearing a shield which does seem
rather unexpected.  This change makes them only get their to-hit bonus
while shieldless as well as weaponless.  Impact on play balance is likely
to be quite small; late game characters hardly ever miss due to high luck
bonus and very early game ones won't have found a shield yet.

     Shouldn't the "your armor is cumbersome" message be ``if (verbose)''?

22 years agofix "Scorpius egg"
nethack.rankin [Thu, 30 Jan 2003 11:35:03 +0000 (11:35 +0000)]
fix "Scorpius egg"

     From the newsgroup:  wishing for a "Scorpius egg" succeeds;
fortunately the resulting egg will never hatch.  Turn such eggs into
normal scorpion eggs instead.

22 years agofix B18002 and B18003 - #rub worn blindfold and wield_tool() feedback
nethack.rankin [Thu, 30 Jan 2003 11:31:12 +0000 (11:31 +0000)]
fix B18002 and B18003 - #rub worn blindfold and wield_tool() feedback

     Prevent #rub from wielding an item that is already being worn
(which should narrow things down to the various types of eyewear;
other tools and weapons that go through wield_tool() can't be worn).
Fix up the wield_tool message spacing in the process.

     This moves wield_tool() from apply.c to wield.c.  Some plural
handling for messages is included; it is feasible to try to #rub a
"pair of lenses" or a stack of N candles.

22 years agofix B18001 strange pluralization
nethack.allison [Tue, 28 Jan 2003 03:00:43 +0000 (03:00 +0000)]
fix B18001 strange pluralization

22 years agoBeta 18
nethack.allison [Sun, 26 Jan 2003 04:18:39 +0000 (04:18 +0000)]
Beta 18

22 years agoB17003 Asmodeus can't use intended wands
nethack.allison [Sun, 26 Jan 2003 04:11:49 +0000 (04:11 +0000)]
B17003 Asmodeus can't use intended wands

m_initweap() was trying to give him wands of fire and cold; since
he had no weapon attacks, he wasn't is_armed(), so this code never
got called.

This moves the code to m_initinv().

22 years agofix B17002 horns
nethack.allison [Sun, 26 Jan 2003 03:25:27 +0000 (03:25 +0000)]
fix B17002 horns
Asmodeus ought to be in num_horns().
[devteam] balrog as depicted in LotR movie has horns too.

22 years agoUsing 'P' to put on armour or 'W' to wear a ring
nethack.allison [Sat, 25 Jan 2003 18:41:25 +0000 (18:41 +0000)]
Using 'P' to put on armour or 'W' to wear a ring
resulted in "That is a silly thing to [put on | wear]".

But those two cases really aren't so "silly", so adjust
the messages to better explain why the game objected
to the action and point new players at the appropriate
command.

Also adds a cmdassist message for the case where
'R' or 'T' have no appropriate items to point
new players to the correct command. (That can be
turned off with !cmdassist, of course.)

Also adds a const to a recent shade patch by request.

22 years agofix b17004
nethack.allison [Sat, 25 Jan 2003 12:23:45 +0000 (12:23 +0000)]
fix b17004
<Someone>:
Baby shimmering dragons have been made DRAGON_SILVER. Adults are still
cyan, as are their scales. Not that it matters while they're still
commented out, but why the discrepancy?

22 years agofix B17006 - stacked boomerang handling
nethack.rankin [Sat, 25 Jan 2003 07:33:06 +0000 (07:33 +0000)]
fix B17006 - stacked boomerang handling

     Breaking a boomerang while bashing with it didn't work right when
there was a stack of more than one involved.  The message given had a
grammar buglet and the remaining boomerangs became unwielded.  (This
issue wasn't present in 3.4.0 because the boomerang bashing code never
got called there.)

22 years agofix B17005 - autoquiver bug
nethack.rankin [Sat, 25 Jan 2003 04:46:11 +0000 (04:46 +0000)]
fix B17005 - autoquiver bug

     hold_another_object() will try to quiver the object being held if
it's a weapon (or gem/rock ammo) and the autoquiver option is enabled and
the quiver is empty.  It was doing that even if the object had just merged
with primary or secondary weapon, resulting in it being equipped in two
slots at once.  (Easiest way to reproduce it is via wish+wield+wish for
similar item, but it could also occur when stealing while in nymph form.)

     This also addresses one of the old items on <Someone>'s list:  if you
carry a sling equipped in the alternate weapon slot, include gems and
rocks as likely candidates for quivering same as when wielding a sling.
This extends that to autoquivering; ammo appropriate for your alternate
is now given preference over arbitrary weapons (ammo for your wielded
weapon and arbitrary missiles still take precedence over alternate ammo).

     Bug?  pickup_object() is not autoquiver aware, hence autopickup isn't
either.

     Bug too (perhaps moot if the above is changed)?  Snagging a monster's
weapon with a bullwhip uses hold_another_object() so possibly autoquivers;
snagging an object off the floor with a grappling hook uses pickup_object()
so doesn't.

22 years agofix a shade grammar bit
nethack.allison [Tue, 21 Jan 2003 13:06:41 +0000 (13:06 +0000)]
fix a shade grammar bit

22 years agoprevent "Your corpse passes harmlessly through the shade."
nethack.allison [Tue, 21 Jan 2003 12:38:25 +0000 (12:38 +0000)]
prevent "Your corpse passes harmlessly through the shade."

22 years agotypo fix
nethack.allison [Tue, 21 Jan 2003 11:30:42 +0000 (11:30 +0000)]
typo fix

22 years agoforgotten spell tuning
nethack.rankin [Sat, 18 Jan 2003 03:11:13 +0000 (03:11 +0000)]
forgotten spell tuning

      Attempting to cast a forgotten spell might cause stunning instead
of or in addition to causing confusion.

22 years agoTest cvs script patch mailer
nethack.allison [Fri, 17 Jan 2003 03:40:47 +0000 (03:40 +0000)]
Test cvs script patch mailer
Move an is_elven_* macro definition to the same spot as the other ones
so future elven equipment changes can be done in one place.

22 years agofix B17001 - Still no "the guard disappears" message
nethack.rankin [Wed, 15 Jan 2003 21:25:02 +0000 (21:25 +0000)]
fix B17001 - Still no "the guard disappears" message

     A change I made last August broke this; it was checking whether you
could see the guard after having removed him from the map.

22 years agomore on_fire handling
nethack.rankin [Wed, 15 Jan 2003 09:06:57 +0000 (09:06 +0000)]
more on_fire handling

     Add several more monsters to the special case handling for fire
attacks.

22 years agofix B16003 - Oracle only renamable named unique monster
nethack.rankin [Wed, 15 Jan 2003 08:59:04 +0000 (08:59 +0000)]
fix B16003 - Oracle only renamable named unique monster

     This makes all unique monsters resist being given a name.  Aside
from the Oracle, the four high priests are the only monsters affected
that weren't already being covered by the old tests.  They might as well
decline to receive names too.

     This also fixes a longstanding quirk that prevented you from
calling a type of object something if the representative sample of it
had been picked up while blind and you hadn't explicitly examined your
inventory since regaining sight.  There's not much point in requiring
an extra 'i' command or use of '?' or '*' at the "what do you want to
call?" prompt, particularly since that makes gameplay be slightly
different depending on whether perm_invent is available and in use.

22 years agoflaming attacks
nethack.allison [Mon, 13 Jan 2003 11:48:47 +0000 (11:48 +0000)]
flaming attacks
> Bug with flaming attacks...? These monsters should be unaffected,
> IMO.
>
> The fire elemental hits the stone golem. The stone golem is on
> fire!

fixed in patch

> The pyrolisk gazes at the flaming sphere... The flaming sphere is
> on fire!

This was already corrected in CVS.

22 years agobeta 17
nethack.allison [Sat, 11 Jan 2003 18:05:29 +0000 (18:05 +0000)]
beta 17

22 years agofix B16005 engraving headstone with weapon
nethack.allison [Sat, 11 Jan 2003 17:53:26 +0000 (17:53 +0000)]
fix B16005 engraving headstone with weapon

>If you're engraving one with a weapon, shouldn't it dull that
> weapon?

22 years agofix buglist entry: menu upon request
nethack.allison [Sat, 11 Jan 2003 17:28:31 +0000 (17:28 +0000)]
fix buglist entry: menu upon request

For "traditional" menu style, pickup and #loot/apply can't accept an 'm'
response to bring up a menu upon request when all items involved are of
the same class, because the prompt where that response is allowed only
gets issued when multiple classes are present.

Also allow 'm' prefix for pickup.

22 years agofix buglist entry: menu upon request
nethack.allison [Sat, 11 Jan 2003 17:22:58 +0000 (17:22 +0000)]
fix buglist entry: menu upon request

For "traditional" menu style, pickup and #loot/apply can't accept an 'm'
response to bring up a menu upon request when all items involved are of
the same class, because the prompt where that response is allowed only
gets issued when multiple classes are present.

22 years agofixes34.1 catch up
nethack.allison [Sat, 11 Jan 2003 14:33:13 +0000 (14:33 +0000)]
fixes34.1 catch up

22 years agogrammar bit
nethack.rankin [Sat, 11 Jan 2003 06:48:24 +0000 (06:48 +0000)]
grammar bit

     From the newsgroup recently:  cause of death on tombstone and in
log file was "slipped while mounting a saddled Stockholm" (with horse
named after city).  This fix will produce "slipped while mounting a
saddled horse called Stockholm" in that case.

22 years agoB15005 narrow openings and hurtling
nethack.allison [Sat, 11 Jan 2003 03:46:56 +0000 (03:46 +0000)]
B15005 narrow openings and hurtling

Narrow openings are currently not checked for by hurtle_step() or
mhurtle_step. This has the consequence that you can jump or use
Newton's 3rd to get through somewhere you can't get through on the
ground, and monsters can stagger or be jousted through somewhere
they wouldn't attempt under their own steam.

This patch fixes hurtle_step().  It does not address mhurtle_step.

22 years agomore ^G
nethack.rankin [Sat, 11 Jan 2003 00:44:26 +0000 (00:44 +0000)]
more ^G

     Move the "tame <monster>", "peaceful <monster>", "hostile <monster>"
handling for <ctrl/G> so that it works when <monster> is a class letter as
well as when it names a monster type.

22 years ago^G control
nethack.rankin [Fri, 10 Jan 2003 10:44:31 +0000 (10:44 +0000)]
^G control

     Wizard mode monster creation underwent several changes for 3.4.0
(explicitly create "tame <monster>", create a monster by class letter,
repeat the creation for N monsters) and one of them rendered the check
to prevent creating orphaned shopkeepers, temple priests, vault guards,
and worm tails inoperative.  Put that back, and extend the control to
allow you to specify "peaceful <monster>" and "hostile <monster>" too.

22 years agofix B16004 - more demon bribing
nethack.rankin [Fri, 10 Jan 2003 09:22:08 +0000 (09:22 +0000)]
fix B16004 - more demon bribing

     For the bribery check that lets you get away with offering a little
bit less than what was demanded, never treat an offer of 0 as acceptible.
Also, add some missing set_malign() calls.

22 years agoB16002
nethack.allison [Fri, 10 Jan 2003 04:46:21 +0000 (04:46 +0000)]
B16002

This patch ensures that two-weaping stops if uswapwep gets cursed
while two-weaponing.  I think this means the 'A' command will never
encounter the situation now in the complaint now.
See rules at top of wield.c.

22 years agoanother pre-ANSI bit
nethack.rankin [Fri, 10 Jan 2003 04:18:32 +0000 (04:18 +0000)]
another pre-ANSI bit

     Another vintage compiler (not as old as the previous one...) didn't
like the assignment `nlp = shkgeneral;' when nlp had been declared using
array syntax.  It didn't used to mind that, until an extra `const' was
inserted by the "move stuff to read-only area" patch submitted by someone
a while back.  The prototype is already using pointer syntax here.

22 years agoB16002
nethack.allison [Fri, 10 Jan 2003 04:00:37 +0000 (04:00 +0000)]
B16002
The complaint states:
It still won't let you unwield a cursed secondary weapon while
two-weaponing, even though you can drop such a weapon without problem.

You aren't supposed to be able to two-weapon
with a cursed alternate weapon at all.  It appears that there are some
checks to prevent twoweaponing if uswapwep is cursed when you try.
This patch ensures that two-weaping stops if uswapwep gets cursed
while two-weaponing.  I think this means the 'A' command will never
encounter the situation now in the complaint now.

The rules in wield.c state
 The secondary weapon (uswapwep):
 1.  Is filled by the x command, which swaps this slot
     with the main weapon.  If the "pushweapon" option is set,
     the w command will also store the old weapon in the
     secondary slot.
 2.  Can be field with anything that will fit in the main weapon
     slot; that is, any type of item.
 3.  Is usually NOT considered to be carried in the hands.
     That would force too many checks among the main weapon,
    second weapon, shield, gloves, and rings; and it would
     further be complicated by bimanual weapons.  A special
     exception is made for two-weapon combat.
 4.  Is used as the second weapon for two-weapon combat, and as
     a convenience to swap with the main weapon.
 5.  Never conveys intrinsics.
 6.  Cursed items never weld (see number 3 for reasons), but they also
     prevent two-weapon combat.

22 years agoanother lint bit
nethack.rankin [Fri, 10 Jan 2003 03:44:09 +0000 (03:44 +0000)]
another lint bit

     The heros_fault() macro added to region.h relatively recently causes
a K&R vintage compiler to choke on the heros_fault variable in dothrow.c.
Although the latter has been around longer, changing it was a little bit
simpler.

22 years agofix B15007 - boomerangs used hand-to-hand
nethack.rankin [Fri, 10 Jan 2003 03:33:03 +0000 (03:33 +0000)]
fix B15007 - boomerangs used hand-to-hand

     Hitting with a wielded boomerang was supposed to have a chance to
break it, but the code was located in a spot that would never be reached
when bashing with a missile weapon.  Also, its rnl() usage would have
made the bad effect--losing your weapon--be more likely to occur when
you had good luck and less likely when you had bad luck.  And it wasn't
setting `unweapon', so you wouldn't have gotten a bashing with barehands
message on the next attack after the weapon had been destroyed.

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.