]> granicus.if.org Git - nethack/log
nethack
22 years agomore cmdassist
cohrs [Sun, 27 Oct 2002 16:36:30 +0000 (16:36 +0000)]
more cmdassist
Add the patch I suggested last week to show cmdassist help for the
various prefix commands.

22 years agoB14009 order of altar feeling messages
cohrs [Sun, 27 Oct 2002 16:30:35 +0000 (16:30 +0000)]
B14009 order of altar feeling messages
Special case the altar feeling messages to avoid saying you're feeling
the altar and then saying there's an altar here.

22 years agoB14008 splash when dropping things in pools
cohrs [Sun, 27 Oct 2002 16:13:17 +0000 (16:13 +0000)]
B14008 splash when dropping things in pools
Added code to flooreffects() to implement this suggestion from <Someone>.
It kicks in while blind, only affects objects of some bulk, and also only
things dropped at your location.  The map_background currently doesn't
do anything since the dropped object is remembered on top, but this will
avoid a bug if we ever add invisible objects.

22 years agoconsistent sokoban guilt for polymorphing boulders
cohrs [Thu, 24 Oct 2002 05:43:40 +0000 (05:43 +0000)]
consistent sokoban guilt for polymorphing boulders
Discussed a while back in the newsgroup.  casting Stone to Flesh on a
Sokoban boulder would affect luck, but simply polymorphing a boulder would not.

22 years agois_lminion should only match lawful minions
cohrs [Thu, 24 Oct 2002 04:13:56 +0000 (04:13 +0000)]
is_lminion should only match lawful minions
When Angels were introduced, they were always lawful.  Somewhere along the
line, non-lawful angels were added, but is_lminion and uses of it was never
updated to address this change.  Among other things, this resulted in
non-lawful angels delivering messages via #chat that are only appropriate
for lawful angels.  That is addressed simply by changing the definition of
is_lminion, which must take a struct monst, not a permonst, to return valid
results.  Also, non-lawful angels should summon appropriate monsters, not
lawful minions.

22 years agoB12010 - boulders in throw menu for giants
cohrs [Thu, 24 Oct 2002 01:40:58 +0000 (01:40 +0000)]
B12010 - boulders in throw menu for giants
When the player is poly'd to a giant, it was a bit odd that boulders
weren't listed in the throw menu, especially since the usual check for them
is throws_rocks.  Since statues are not appropriate, I added this thru yet
another ugly check in getobj.

22 years agofix B14003 - "bashing" with mounted polearms
nethack.rankin [Mon, 21 Oct 2002 10:20:29 +0000 (10:20 +0000)]
fix B14003 - "bashing" with mounted polearms

     Attacking with a polearm while mounted behaves differently than
while on foot, so make mounting and dismounting when wielding one adjust
weapon status accordingly.  Don't give a bashing message on first attack
if you mount with a polearm already wielded; do give one on your next
hand-to-hand attack if you just dismounted with one wielded.

22 years agowizard mode mapping
nethack.rankin [Mon, 21 Oct 2002 08:57:39 +0000 (08:57 +0000)]
wizard mode mapping

     Override confusion and hallucination when revealing the map with
<ctrl/F> in wizard mode.  This also renames the `#poly' extended command
to `#polyself' and adds several one-line comments.

22 years agoprayer result bits
nethack.rankin [Mon, 21 Oct 2002 08:32:57 +0000 (08:32 +0000)]
prayer result bits

     You won't be hallucinating at the end of a prayer which reveals
the Castle passtune even if you were hallucinating before hand, so
there's no point in adding joke messages in that case.  Also, you
can't pray while unconscious, so ignore the soundok flag when dealing
with that tune; otherwise the player could toggle that option off in
order to bypass the tune result in favor of the golden glow effect.

22 years agoeating mimic corpses
nethack.rankin [Mon, 21 Oct 2002 08:19:17 +0000 (08:19 +0000)]
eating mimic corpses

     Don't mimic gold if you are Unchanging at the time you eat a
mimic corpse.

22 years agoU77 - pits in drawbridges
cohrs [Sat, 19 Oct 2002 18:42:46 +0000 (18:42 +0000)]
U77 - pits in drawbridges
dighole dealt with holes in drawbridges, but digactualhole did not

22 years agofix U100 - vampire stoning buf
nethack.rankin [Fri, 18 Oct 2002 06:49:34 +0000 (06:49 +0000)]
fix U100 - vampire stoning buf

     Fix the reported bug of a vampire that is wearing gloves being
able to bite a cockatrice without becoming petrified.

22 years agofix B14002 - Stinking clouds in bonefiles
nethack.rankin [Wed, 16 Oct 2002 22:20:30 +0000 (22:20 +0000)]
fix B14002 - Stinking clouds in bonefiles

     More region fixes.  The region restore code wasn't updating monster
ID numbers for bones data, so monsters already inside stinking clouds
might or might not be affected by them depending on arbitrary mon->mid
assignments across the old and new games.

     This also flags stinking clouds in a way that lets the game keep
track of whether they were created by the player, and clears that state
for bones data so that the current player doesn't get credit or blame
for clouds left by the former one.  File compatibility with 3.4.0 is
retained; if/when that eventually changes, this code can be simplified.

     Testing with current development code has been limited but seems
to be working correctly; testing with actual 3.4.0 files has not been
attempted.

22 years agoB14001 - Stinking clouds in bonesfiles
cohrs [Wed, 16 Oct 2002 06:30:36 +0000 (06:30 +0000)]
B14001 - Stinking clouds in bonesfiles
Incorporate a fix from <Someone> that resets the timestamp on
stinking clouds left in bones files.  This does allow the cloud's ttl to
restart.  Extended it to reset the player_inside flag.

Then noticed that the only placed that called in_out_region was domove().
Added calls when changing levels (which causes player_inside to be set
correctly if the cloud covers the location where the player starts on the
bones level), teleporting, and inside hurtle_step.  There are still other
places that fail to call in_out_region, which others may choose to tackle.

I split out the remaining stinking cloud bug reported in the same e-mail
into a separate betabug.  That one probably cannot be addressed without
changing the level file format to track the creator.

22 years agoB13004 spellbook destruction
cohrs [Wed, 16 Oct 2002 05:46:20 +0000 (05:46 +0000)]
B13004 spellbook destruction
When reading a cursed or too-hard book that's covered in contact poison
(presumably in the too-hard case, reading it made the poison), and you die,
the book would not be in the bones.  remove in_use mark while assessing
damage.

On the other hand, not From a bug report, the message in the "6" case says
the book explodes, but had a 1/3 chance of not disappearing in the normal
case, and 100% chance of remaining if cursed while reading - when the
player survives.  Return a flag to allow the book to be destroyed in this
case.  No work needed for the death case; in_use is set.

22 years agoB12002 - displacing pets thru narrow openings
cohrs [Mon, 14 Oct 2002 16:08:07 +0000 (16:08 +0000)]
B12002 - displacing pets thru narrow openings
Add another check to domove to detect an attempt to displace a pet through
a narrow opening.

22 years agoRemove test code (font was wrong).
warwick [Mon, 14 Oct 2002 05:39:39 +0000 (05:39 +0000)]
Remove test code (font was wrong).

22 years agodebug commands: lightsources and monpolycontrol
cohrs [Mon, 14 Oct 2002 00:20:38 +0000 (00:20 +0000)]
debug commands: lightsources and monpolycontrol
Given no objections to Pat's suggestion, putting back in the change to make
the newest debug commands consistent with the others, removing the space
from the former and the underscore from the latter.

22 years agoB10005 fire traps under water
cohrs [Mon, 14 Oct 2002 00:10:44 +0000 (00:10 +0000)]
B10005 fire traps under water
<Someone> reported that after pushing a boulder into a pool location which
contained a fire trap on the bottom, that the trap wasn't destroyed.  Added
missing delfloortrap call.

22 years agosleep vs sounds
nethack.rankin [Sun, 13 Oct 2002 10:13:38 +0000 (10:13 +0000)]
sleep vs sounds

     Handle sleeping consistently; of the nine places fall_asleep
is being called, only one of the them actually affected sounds.
The two cases where sleep is used to penalize overexertion aren't
affected.

22 years agoB12009 invisible nymph preposition consistency
cohrs [Sun, 13 Oct 2002 06:54:01 +0000 (06:54 +0000)]
B12009 invisible nymph preposition consistency
<Someone> reported the messages "It seduces you and you take off your
robe. She stole a burnt +0 robe."  I noticed the 2 cases here only dealt
with blindness, not seeing the nymph in general.  Also, one case forced
"She", the other "It".  Now they both say "She", which is consistent with
the preposition in the 2nd message.  We'll continue to the assume the
gender of the seducer is obvious, even when unseen.

22 years agomore info on the sound option
cohrs [Sun, 13 Oct 2002 05:46:17 +0000 (05:46 +0000)]
more info on the sound option

22 years agosound option in Guidebook
cohrs [Fri, 11 Oct 2002 22:40:33 +0000 (22:40 +0000)]
sound option in Guidebook
E-mail report from <Someone>.  "sound" option wasn't document.  I also
noticed that the SOUND and SOUNDDIR config file entries were incorrectly
named in lower case, and documented as "options", which they aren't.
The Guidebook calls SOUND an entry later on, so call them that earlier as well.

22 years agointones with sound option disabled
cohrs [Fri, 11 Oct 2002 22:16:22 +0000 (22:16 +0000)]
intones with sound option disabled
E-mail report from <Someone>.  Don't display the "intones:" prefix when
!soundok since the message suffix won't be displayed in this case due to
a check within verbalize().

22 years agobones while swallowed
cohrs [Fri, 11 Oct 2002 21:30:40 +0000 (21:30 +0000)]
bones while swallowed
Michael pointed out that bones will never occur while swallowed because
makemon of the ghost will always fail.  I suggested that the outcome made
sense, since your body may be digested, torn apart, whatever.  But, there
was no explicit check for this to make it obvious this was occuring.

22 years agocreating nasty monsters on boulders
cohrs [Fri, 11 Oct 2002 15:59:14 +0000 (15:59 +0000)]
creating nasty monsters on boulders
<Someone> reported that a Titan summoning nasty monsters via a spell
resulted in various monsters being placed on locations containing boulders.
nasty() was using the summoning monster's type to decide where to place the
summoned monsters.  Note that this could theoretically also cause
inappropriate monsters to be placed in water, lava, walls, et al.
Rearranged the code to pick the monster type first.

22 years agobeta 14
nethack.allison [Fri, 11 Oct 2002 01:50:01 +0000 (01:50 +0000)]
beta 14

22 years agobuild fix
nethack.rankin [Fri, 11 Oct 2002 01:31:16 +0000 (01:31 +0000)]
build fix

     I used the wrong diff to update the files I checked in a little
while ago.

22 years ago#dipping from steed
nethack.rankin [Fri, 11 Oct 2002 00:46:37 +0000 (00:46 +0000)]
#dipping from steed

     Fix the reported bug of an unskilled rider who is unable to pick
items off the floor while mounted still being able to dip into water.
There might be other actions which need similar checking; this one only
handles the dip into pool/moat case.

22 years agodifferent extended command bit (tty)
nethack.rankin [Thu, 10 Oct 2002 23:16:02 +0000 (23:16 +0000)]
different extended command bit (tty)

     I've found myself adding a trailing space to various extend
commands from time to time, and the program fails to recognize then
when that happens.  It might be less likely once none of them has
any embedded spaces, but this wouldn't hurt anything if that becomes
the case.

22 years agoback out accidental mod
cohrs [Thu, 10 Oct 2002 21:16:33 +0000 (21:16 +0000)]
back out accidental mod
In my previous patch, I accidentally included a change to wizard mode
commands I had not indented to apply at this time.

22 years agoB13002 - negative protection
cohrs [Thu, 10 Oct 2002 21:13:05 +0000 (21:13 +0000)]
B13002 - negative protection
implement Michael's suggestion to tweak the protection message when your
protection is negative.

22 years agoluck artifact dependencies
nethack.rankin [Wed, 9 Oct 2002 07:06:08 +0000 (07:06 +0000)]
luck artifact dependencies

     Instead of adding a new artifact.h to pray.c, remove the existing
ones from attrib.c, invent.c, and mkobj.c.  This also updates the Unix
and VMS editions of Makefile.src; having stale dependencies in those
for other ports could cause unnecessary recompilation but can't break
anything in this case.

22 years agoB13005 grammar: "A scrolls burns."
nethack.allison [Tue, 8 Oct 2002 11:28:21 +0000 (11:28 +0000)]
B13005 grammar: "A scrolls burns."

This was caused by taking a copy of the name
prior to a later delobj for use in the message.
The name would always be plural if there was
more than one, so that pluralized name would
be used even if only one of the stack was
destroyed.  Sometimes the name saved
was "scrolls labeled XXXX."

This patch simply saves a pluralized  name
and a single version and uses the
appropriate one in the message, rather
than introducing splitobj() complications.

22 years agosteed fixes
nethack.rankin [Tue, 8 Oct 2002 10:54:36 +0000 (10:54 +0000)]
steed fixes

     A relatively recent change to prevent #ride letting you move in
a way you could walk (squeeze through a tight a gap or enter doorway
diagonally) resulted in crashing due to access violation or segfault
if you tried to mount toward a spot that didn't contain any monster.
Noticed while testing saddle cursing; tried to mount while stunned....

     Also, if the character had a saddle "worn" in weapon, alternate
weapon, or quiver slot, it didn't get unworn when applying the saddle
to a mount.  The next time the player tried to equip something in the
same slot there'd be a warning message; I don't know whether any more
serious symptoms could occur.

22 years agoprayer tuning; cursed saddles
nethack.rankin [Tue, 8 Oct 2002 10:27:08 +0000 (10:27 +0000)]
prayer tuning; cursed saddles

     The change to fix a typo of `max(action,2)' to `min(action,2)'
for the trouble fixing effect of prayer made it impossible to get
rid of a loadstone or welded weapon by praying at non-altar locations.
That's an awfully drastic change in game balance for a typo fix....
This boosts the 2 to a 3, allowing the worst minor trouble to be
eligible for fixing.

     That's a one line change; the rest of this is stuff that I've
been waffling over about whether to hold for the next big release or
to include in the patch release.  It cleans up the trouble handling
code a bit--particularly the two competing choices for selecting a
piece of cursed equipment--and adds fumbling and cursed saddle as new
categories of minor trouble.

22 years agofix B13008 - Mjollnir messages
nethack.rankin [Tue, 8 Oct 2002 07:19:45 +0000 (07:19 +0000)]
fix B13008 - Mjollnir messages

     Condense the two artifact hit messages a bit so that fighting
with Mjollnir isn't quite so verbose.  And make the same change for
the non-existant magic missile launching artifact(s).

22 years agoB13003 more unicorn horn dipping
nethack.allison [Sat, 5 Oct 2002 13:19:37 +0000 (13:19 +0000)]
B13003 more unicorn horn dipping
add docall()

22 years agofix B13006 - Unchanging-poly self-genocide
nethack.rankin [Sat, 5 Oct 2002 08:24:12 +0000 (08:24 +0000)]
fix B13006 - Unchanging-poly self-genocide

     <Someone> reported that killing yourself by picking your current
monster class as the target of a blessed scroll of genocide while
polymorphed and wearing an amulet of unchanging would result in
"killed by genocide" rather than "killed by a scroll of genocide".
That wasn't the only problem here; it also ended the game right away,
before genociding the rest of the class of monsters; that could affect
the contents of a resulting bones level.

     Also, the 3.3.0 race/class split resulted in getting the message
"you feel dead inside" twice if you were a human or elf character who
genocides '@' while polymorphed into some non-@ form.

22 years agofix B13007 - wrong article on hallucinogen-distorted ghost
nethack.rankin [Sat, 5 Oct 2002 06:44:00 +0000 (06:44 +0000)]
fix B13007 - wrong article on hallucinogen-distorted ghost

     "Killed by _the_ hallucination-distorted ghost of Foo."  Similar
for invisible; ordinary ghosts already had "the" instead of "a".

22 years agofix U88 - invisible hero didn't sense self via ESP
nethack.rankin [Fri, 4 Oct 2002 02:46:02 +0000 (02:46 +0000)]
fix U88 - invisible hero didn't sense self via ESP

     If the character was invisible without being able to see invisible,
his location on the map showed any object there or underlying topology
instead of the hero even when monsters could be seen with infravision,
ESP, or sustained monster detection.  The ESP case required an amulet
or helm or quest artifact to be noticeable because being blind overrides
being unable to see invisible, so the more common form of telepathy
didn't exhibit this behavior.

22 years agoB13001 mild buzz
nethack.allison [Thu, 3 Oct 2002 00:44:16 +0000 (00:44 +0000)]
B13001 mild buzz

feel a mild buzz only if energy or maxenergy increased

22 years agounicorn horn dipping
nethack.rankin [Wed, 2 Oct 2002 21:33:08 +0000 (21:33 +0000)]
unicorn horn dipping

     Implement <Someone>'s suggestion for addressing <Someone>'s
complaint about the inadequate feedback given when dipping a unicorn
horn into a potion to convert it into water.  (Mainly, if the potion
has already been given a name, you won't be prompted to give it one
when dipping transforms it; if that was the last one you had, getting
"The potion clears." isn't sufficient to let you keep track of what
type of potion was cleared.  You still have to keep track of such
stuff yourself, but now you'll get "The swirly potion clears." so you
at least don't have to start remembering or recording the type prior
to dipping.)

     The hallucination handling isn't very useful; the description is
given will full accuracy by the immediately following inventory update.

22 years agosleeping shopkeeper
nethack.rankin [Tue, 1 Oct 2002 08:51:28 +0000 (08:51 +0000)]
sleeping shopkeeper

     Fix the reported problem of a sleeping shopkeeper advising you
to be careful about digging.

22 years agotouchstone use
nethack.rankin [Tue, 1 Oct 2002 07:23:10 +0000 (07:23 +0000)]
touchstone use

     Make touchstones more convenient to use after they're identified
by only listing unknown gems as likely candidates.  This doesn't prevent
other stuff from being rubbed on them, just alters the prompt string and
the subset of inventory shown for '?'.

22 years agoremoving forgotten rings
nethack.rankin [Tue, 1 Oct 2002 06:20:36 +0000 (06:20 +0000)]
removing forgotten rings

     Removing a ring of protection/strength/constitution/charisma
which has been made unknown by amnesia might reveal what it is due
to status line changes, so relearn it when that happens.  This also
consolidates the three characteristic enhancing types into one case.

22 years agoB12008: more stoning quest nemeses
cohrs [Mon, 30 Sep 2002 17:22:10 +0000 (17:22 +0000)]
B12008: more stoning quest nemeses

22 years agoGuidebook.txt sync
cohrs [Mon, 30 Sep 2002 03:42:29 +0000 (03:42 +0000)]
Guidebook.txt sync

22 years agoBeta 13
nethack.allison [Mon, 30 Sep 2002 02:17:00 +0000 (02:17 +0000)]
Beta 13

22 years agoAllow the 'v' command to identify the beta version
nethack.allison [Mon, 30 Sep 2002 02:15:54 +0000 (02:15 +0000)]
Allow the 'v' command to identify the beta version
in a way that won't trigger a full rebuild.

22 years agoB12007 yellow light animal parts
nethack.allison [Sun, 29 Sep 2002 16:41:16 +0000 (16:41 +0000)]
B12007 yellow light animal parts

Uses "ray" for arm-related parts, "beam" for everything else.

22 years agobuild fix
nethack.rankin [Sat, 28 Sep 2002 09:35:22 +0000 (09:35 +0000)]
build fix

22 years agofix B08011 - request for "wield" change
nethack.rankin [Sat, 28 Sep 2002 06:48:25 +0000 (06:48 +0000)]
fix B08011 - request for "wield" change

     Implement's <Someone>'s suggestion that the currently wielded
weapon be included among the list of inventory candidates for the
wield command.  It affects the list of letters shown in the prompt
and the subset inventory displayed if you respond with '?'; it doesn't
change how wielding works or what item you can pick to wield.

     Do the same thing for quivering:  include any currently quivered
item among the choices.  Also include the secondary weapon as a choice
if you're not actively two-weaponing.

22 years agoanother dungeoneers update
nethack.rankin [Thu, 26 Sep 2002 07:37:12 +0000 (07:37 +0000)]
another dungeoneers update

     Add <Someone> this time.

22 years agoeucalyptus leaf whistles
nethack.rankin [Thu, 26 Sep 2002 07:26:03 +0000 (07:26 +0000)]
eucalyptus leaf whistles

     Add <Someone>'s patch that enables using the apply command
on eucalyptus leaves to produce a whistle effect.  Blessed leaves
behave like magic whistles; I added a chance for the blessing to be
used up in the process.

     The invent.c diff is almost all reformatting.

22 years ago"eye of newt"
nethack.rankin [Thu, 26 Sep 2002 07:13:10 +0000 (07:13 +0000)]
"eye of newt"

     Add <Someone>'s "eye of newt" patch, which confers energy
when eating a newt corpse.  Consumed energy is restored by up to 3
points, and if that takes the character past max energy there's a
chance to boost the latter by 1 point.  I introduced randomization
so that level 1 characters can't just kill and eat all the newts on
the first couple of levels to unconditionally boost their initial
mana (22% chance per newt to increase max energy now instead of his
original 100% chance).

22 years agotwo figurine tweaks
nethack.rankin [Thu, 26 Sep 2002 04:05:54 +0000 (04:05 +0000)]
two figurine tweaks

     Fix the reported problem of applying a figurine while swallowed
and getting a message about setting the figuring on the ground.  Rather
than coming with special messages, just prevent it would activating if
you're swallowed at the time.

     Also prevent figurines from creating the 4th erinys or 10th Nazgul.
I'm not sure whether to bother doing similar handling for stone-to-flesh
cast on statues.

22 years agoupdate dungeoneers list
nethack.rankin [Tue, 24 Sep 2002 09:42:53 +0000 (09:42 +0000)]
update dungeoneers list

22 years agofix B10003 - GOLDOBJ: BUC gold; identification
nethack.rankin [Tue, 24 Sep 2002 03:20:22 +0000 (03:20 +0000)]
fix B10003 - GOLDOBJ: BUC gold; identification

     Curse and bless status has no meaning for gold.  Likewise
for erosion and other object flags controlling whether an item is
considered to be fully identified.

22 years agocheck_leash's handling of 2nd leash
nethack.rankin [Tue, 24 Sep 2002 02:11:10 +0000 (02:11 +0000)]
check_leash's handling of 2nd leash

     Noticed by code inspection:  the inventory scan to find leashes
in use didn't reset the monster traversal loop for each leash, so
with more than one active it wouldn't necessarily find and check the
monster attached to the second one.

22 years agoB12004 polymorphing into minotaur
nethack.allison [Sun, 22 Sep 2002 15:59:46 +0000 (15:59 +0000)]
B12004 polymorphing into minotaur
Polymorphing into creature with horns such as a minotaur,
will cause your helmet to fall off if it is made of a hard material.

Only minotaurs pass the has_horns() test in include/mondata.h
because the complaint specifically referred to them, but that
should perhaps be reviewed at some point by someone who is
certain which creatures have horns growing from their
head (some demons?)

22 years agofix B12005 - polyself and gender
nethack.rankin [Sat, 21 Sep 2002 07:17:14 +0000 (07:17 +0000)]
fix B12005 - polyself and gender

      The ^X attributes were always showing "neuter" when polymorphed
into a non-humanoid creature.  This fix also suppresses the extra
"gender (base)" entry when that has the same value as the preceding
"gender" entry, it eliminates the redundant label "deity" from the
three entries in the deities section, and it capitalizes the alignment
names that nethack uses as proper nouns.

     This patch also introduces the capability of skipping the second
screen of enlightenment attributes (given for explore and wizard modes)
by terminating the first screen with ESC (or however else menus can be
explicitly cancelled for any given interface).  That has no noticeable
effect during normal play.

22 years agorunning across vibrating square
nethack.rankin [Fri, 20 Sep 2002 07:26:12 +0000 (07:26 +0000)]
running across vibrating square

     Some newsgroup discussion has reminded me something I've meant
to do for a long time.  Stop running when you get the special message
about the floor vibrating under your feet.  Also vary it when you're
not actually stepping on the ground.

22 years agosteed name handling
nethack.rankin [Fri, 20 Sep 2002 07:01:19 +0000 (07:01 +0000)]
steed name handling

     I was about to add a message referring to your steed and discovered
that the name handling for that is somewhat messy.  Simplify it by using
the pet name handling routine.

22 years agoREADME bit
nethack.rankin [Fri, 20 Sep 2002 05:14:42 +0000 (05:14 +0000)]
README bit

     The current version of VMS is V7.3-1, but V7.1 is the most
recent that I presently have access to (and that's only for Alpha
but I'm bumping the number for VAX anyway).  The "DEC" part has
been obsolete for a while but I'm not sure what to do about that.

22 years agofix B12003 - kicking a box embedded in a wall
nethack.rankin [Fri, 20 Sep 2002 05:05:46 +0000 (05:05 +0000)]
fix B12003 - kicking a box embedded in a wall

     Move a block of kicking code so that freeing items stuck inside
solid work takes precedence over breaking open containers.  Now the
box has a chance to fall out like other types of objects (and if it
fails that chance, there's just the normal message about not coming
loose--no attempt to actually kick open the box will occur).

22 years agostray files (from <Someone>)
nethack.allison [Thu, 19 Sep 2002 00:16:10 +0000 (00:16 +0000)]
stray files (from <Someone>)
winhack.h is not being used anywhere now and can safely be deleted.
There 2 instances of this file:

sys\wince\winhack.h
win\win32\winhack.h

The patch is also attached that adjusts for this.

22 years agofix B12001 - ?--More--single line menu
nethack.rankin [Tue, 17 Sep 2002 06:35:49 +0000 (06:35 +0000)]
fix B12001 - ?--More--single line menu

     From a bug report:
3.4.0 broke the ability to pick the only listed inventory letter when
user typed '?' during object selection and one candidate was listed on
the top line followed by --More--.

What do you want to throw? [b or ?*] ?
b - 7 +0 daggers (alternate weapon; not wielded).--More--b
<behaved as if user hit ESC instead of 'b' but didn't say "Never mind.">

(Dismissing --More-- the normal way and getting a new selection prompt
worked as usual.)  The problem was caused by changes in getobj's count
handling; the message_menu() routine isn't able to handle counts but
display_pickinv left the count as 0 while caller expects -1 for "count
not specified".

     This was a core bug but I put the fixes entry under "tty" since
no other interfaces are affected.

22 years ago(from <Someone>)
nethack.allison [Tue, 17 Sep 2002 03:32:07 +0000 (03:32 +0000)]
(from <Someone>)

22 years agodisclosure after sink fall
nethack.rankin [Sat, 14 Sep 2002 13:24:22 +0000 (13:24 +0000)]
disclosure after sink fall

     From the newsgroup:  if you die from the fall when losing
levitation while moving over a sink, the final attributes still
said you were levitating.

22 years agotreasure detection
nethack.rankin [Sat, 14 Sep 2002 13:00:20 +0000 (13:00 +0000)]
treasure detection

     Expert and skilled detect treasure was changed to behave like
blessed object detection in 3.3.1, but it didn't work as intended.

> Subject: [patch] skilled detect treasure doesn't detect object types
> <email deleted>
> Date: 13 Sep 2002 09:58:41 -0400
> <email deleted>
>
> It looks like the detect treasure spell when cast with skilled or expert
> ability in divination is supposed to detect the type of an object ("a
> scroll of identify" rather than "a scroll"), but this doesn't actually
> work in 3.4.0.  Here is a fix.

22 years agomore starving pets
nethack.rankin [Sat, 14 Sep 2002 05:48:40 +0000 (05:48 +0000)]
more starving pets

     The fact that a pet was starving to death got recorded with its
corpse; if that corpse was revived via undead turning, the resulting
monster would immediately starve again if it stayed tame.  Similarly,
if one got petrified while nearly starved, reanimating the statue would
produce a starving pet.  Make revival and reanimation use the same code
as life-saving, where hunger status gets reset.

22 years agopet fodder
nethack.rankin [Fri, 13 Sep 2002 05:31:54 +0000 (05:31 +0000)]
pet fodder

     Allow starving pets to consume items they wouldn't ordinarily
eat.  Carnivores will eat fruits and vegetables--such as they are--
and herbivores will eat assorted rations.  Even though eating such
rations doesn't violate vegetarian conduct for the character, horses
would never eat them.

     This change should allow players to keep mundane steeds alive
much longer.  The new behavior doesn't kick in until the pet has
been classified as starving though; it doesn't affect ones who are
merely hungry.

     This also gives the reason why a starving pet has died instead
of just saying "<pet> dies" whenever it starved with hit points left.

22 years agoDOS 16 bit Microsoft Makefile
nethack.allison [Tue, 10 Sep 2002 22:53:18 +0000 (22:53 +0000)]
DOS 16 bit Microsoft Makefile
<Someone> reports that someone on the
newsgroup tried to use the MSVC 1.52c (16 bit compiler) Makefile
with MSVC 6 (32 bit compiler). Try to make it more obvious
that the Makefile isn't for that.

22 years agofix B11001 - fruit name quibbling
nethack.rankin [Tue, 10 Sep 2002 09:10:23 +0000 (09:10 +0000)]
fix B11001 - fruit name quibbling

> OK, it's "grape juice" now, but it's still "bunch of grapes farm".

22 years agocursed levitation prayers
nethack.rankin [Tue, 10 Sep 2002 08:01:18 +0000 (08:01 +0000)]
cursed levitation prayers

     Noticed while testing something recently:  if you're wearing
a non-cursed ring of levitation but can't remove it because of
some other cursed item, you'll never get the high priority result
of TROUBLE_LEVITATION when praying.  This remedies that.

22 years agomingw (from <Someone>)
nethack.allison [Mon, 9 Sep 2002 12:22:00 +0000 (12:22 +0000)]
mingw (from <Someone>)

22 years agono message
nethack.allison [Mon, 9 Sep 2002 12:17:13 +0000 (12:17 +0000)]
no message

22 years agomore monster intrinsics
nethack.rankin [Mon, 9 Sep 2002 09:24:38 +0000 (09:24 +0000)]
more monster intrinsics

     Provide more control over message handling for monsters' use
of equipment.  This fixes the statue revival problem (inappropriate
feedback when monster puts on speed boots) mentioned in the earlier
"intrinsics of dead monsters" patch.

22 years agointrinsics of dead monsters
nethack.rankin [Mon, 9 Sep 2002 09:02:21 +0000 (09:02 +0000)]
intrinsics of dead monsters

     Monster traits that are used to revive some corpses or statues
with their old attributes were retaining intrinsics conferred by worn
items.  To prevent that, strip such attributes at time of a monster's
death before the traits are recorded.  Statue handling needs to some
more work; now that extra speed is lost, there's an out of place
message if/when a revived statue gets to put on its old speed boots.

22 years agobandaid for #U49
nethack.rankin [Mon, 9 Sep 2002 07:36:13 +0000 (07:36 +0000)]
bandaid for #U49

     Partially deal with the reported silly message combination

> Also, when unwielding a weapon using 'A', you get the messages
> "You are empty handed.  You finish disrobing."

by saying "disarming" rather than "disrobing" when manipulating
just the three weapon slots.  Handling weapons in combination
with armor or accessories or both still says "disrobing" though.
The case when dealing with just accessories should pick something
else, but the closest I've thought up so far is "divesting" and
I don't think that works very well.  Is there a better term for
taking off jewelry?  If so, would it end up being out of place
when applied to nethack's selection of eyewear?

22 years agoSpellcheck from <Someone>, with support from Google.com.
warwick [Mon, 9 Sep 2002 05:58:05 +0000 (05:58 +0000)]
Spellcheck from <Someone>, with support from Google.com.

22 years agoThe low probabilities look unintentional (multiple rn2 checks). This
warwick [Mon, 9 Sep 2002 05:47:20 +0000 (05:47 +0000)]
The low probabilities look unintentional (multiple rn2 checks). This
changes the ouch:fruit:bees probabilities from 93:7:0.4 to 75:23.5:1.5.
The 75% "ouch" case sometimes also gives you a buzz.

Explain why sometime fruit that "fell from the tree" end up stuck back
in the tree, requiring more kicking (even though this is less likely
now that scatter() is improved).

22 years agoFix scattering - the splitting code doesn't look right - it will
warwick [Mon, 9 Sep 2002 05:44:32 +0000 (05:44 +0000)]
Fix scattering - the splitting code doesn't look right - it will
leave avg 1/2 the object's quantity on the scatter point.
Return count of how many objects actually left the scatter point.

22 years agoavoid buffer overruns
nethack.rankin [Sat, 7 Sep 2002 02:38:50 +0000 (02:38 +0000)]
avoid buffer overruns

     Noticed with recent looting patch:  QBUFSZ is not big enough
to reliably hold formatted object names.  (I haven't looked through
any other source files for similar problems.)

22 years agoenlightenment refinement for increased damage
nethack.rankin [Sat, 7 Sep 2002 02:36:02 +0000 (02:36 +0000)]
enlightenment refinement for increased damage

     The recent change to include increased damage and increased
chance to hit in all enlightenment feedback instead of just at end
of game feels too specific compared to most of the other feedback.
Instead of giving exact plus/minus values, give a generalized
categorization of the amount.  The exact value is given at game end
as in existing 3.4.0 behavior, and also given when in wizard mode.

22 years ago<email deleted>
nethack.allison [Fri, 6 Sep 2002 00:12:44 +0000 (00:12 +0000)]
<email deleted>
> I'm working on a Nethack port, and one of the header files a
> library uses has a structure with a member named "red". Since
> includes/decl.h #defines red to something, this totally loses.
>
> Attached is a patch which fixes the color defines.

22 years agomenu loot follow-up bit
nethack.allison [Wed, 4 Sep 2002 01:44:25 +0000 (01:44 +0000)]
menu loot follow-up bit

22 years agomenu loot suggestion from newsgroup
nethack.allison [Wed, 4 Sep 2002 01:31:20 +0000 (01:31 +0000)]
menu loot suggestion from newsgroup

Newsgroups: rec.games.roguelike.nethack
Subject: Re: YANI - empty containers interface
<email deleted>
On Mon, 2 Sep 2002 12:13:49 +0300, <email deleted> wrote:
> I find the behaviour when trying to put something in an empty container
> quite irritating. Let's remind it:
> #loot
> "The <container> is empty. Do you want to put something in it? (y/n)"
> This means I have to read the message and to press 'y' or to cancel via
> Esc.
> For comparison, non-empty containers behave like this - please forgive
> me that I've forgotten the exact words:
> #loot
> "Do what?
>  o - take out
>  i - put in
>  b - both of the above"
> So my suggestion is to change the behaviour of empty containers to be
> the same as non-empty ones. That is:
> #loot
> "Do what?
>  i - put in"
> This way, I don't have to look at the container. If I want to put
> something in, pressing 'i' will lead to the same results in both cases.

This part of the suggestion was not implemented, however:

> If I want to take something out, then pressing 'o' or 'b' - although
> they are not in the list of choices - will display a message "This
><container> is empty" and end the #loot-ing session.

22 years agoextern.h bit
nethack.allison [Wed, 4 Sep 2002 01:28:12 +0000 (01:28 +0000)]
extern.h bit

22 years agoUSER_SOUNDS follow-up
nethack.allison [Tue, 3 Sep 2002 02:36:16 +0000 (02:36 +0000)]
USER_SOUNDS follow-up

Make the support of user sounds apparent in the
#version command.  Also add a small section on
them to the Guidebook.

(The doc/Guidebook.mn version of this section
needs testing)

22 years agowin32 USER_SOUNDS
nethack.allison [Mon, 2 Sep 2002 23:28:54 +0000 (23:28 +0000)]
win32 USER_SOUNDS

This uses pmatch() as a default pattern matcher,
and #defines USER_SOUNDS_REGEX for Qt
to enable the code for regular expressions.

This is enabled for win32tty and win32gui.

22 years agomore Borland quieting
nethack.allison [Mon, 2 Sep 2002 16:51:24 +0000 (16:51 +0000)]
more Borland quieting

22 years agoget rid of uudecode compile warning on Borland
nethack.allison [Mon, 2 Sep 2002 14:39:24 +0000 (14:39 +0000)]
get rid of uudecode compile warning on Borland

22 years agoBorland bits (from Yitzhak)
nethack.allison [Mon, 2 Sep 2002 14:29:57 +0000 (14:29 +0000)]
Borland bits (from Yitzhak)

22 years agowin32 recover; also a core bit from Yitzhak
nethack.allison [Mon, 2 Sep 2002 14:10:05 +0000 (14:10 +0000)]
win32 recover; also a core bit from Yitzhak

22 years agopurple worms affected by corpses
cohrs [Sun, 1 Sep 2002 14:57:28 +0000 (14:57 +0000)]
purple worms affected by corpses
Forwarded from the newsgroup as noting that dropping a chameleon corpse
into a purple worm did not cause polymorph nor will the digestion attack.
Added code to dropy and mdamagem to include special corpse effects like
those in dog_eat and meatobj.

22 years agoB10002 - enlightenment grammar bug
nethack.rankin [Sun, 1 Sep 2002 09:56:55 +0000 (09:56 +0000)]
B10002 - enlightenment grammar bug

>       In my final attributes;
>       "You had +1 bonus to hit."
>       Surely "You had a ..." ?

Also moves the hit and damage bonus feedback from the "troubles"
section to the "physical attributes" section and delivers it for
every enlightenment rather than just after the game is over.

22 years agomessage when trying to wear HoOA on quest
nethack.allison [Sat, 31 Aug 2002 20:47:04 +0000 (20:47 +0000)]
message when trying to wear HoOA on quest

22 years agodoomed quest
nethack.allison [Sat, 31 Aug 2002 20:14:17 +0000 (20:14 +0000)]
doomed quest
Your quest leader would tell you to return later, even after you
were converted, which would be futile, and could mislead new
players.

This patch:
1. Causes the quest leader to banish you the first time you
encounter him/her following a conversion, since you cannot ever
complete the quest anyway in the current game.
2. Adds a new general QT_BANISHED message to be delivered, in
which you are told that you won't be able to get the Amulet without
the Bell now.

This helps resolve the complaint about not knowing that your game
cannot be won.