]> granicus.if.org Git - nethack/log
nethack
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.

22 years agospeed of petrified monsters
nethack.rankin [Sat, 31 Aug 2002 09:24:08 +0000 (09:24 +0000)]
speed of petrified monsters

     Someone posted in the newsgroup about using stone-to-flesh
to reanimate a petrified pet and having it come back to life with
boosted speed intact.  When the character gets petrified, stripping
speed is one of the first things which happens, so now do that for
monsters too.  I decided not to make monsters who have normal speed
become slow; there isn't any analogous case for the player.

     Possible bug:  while testing this, I zapped a wand of probing
at a hill orc which had just eaten a lizard corpse to save itself
from stoning.  The feedback said "eating" but the orc immediately
hit and killed me as if it wasn't affected by any movement delay.

22 years agoU29 - mounting steed gets thru tight spots
cohrs [Fri, 30 Aug 2002 06:17:41 +0000 (06:17 +0000)]
U29 - mounting steed gets thru tight spots
Mounting a steed would work even when done diagonally at a doorway,
such as a shop door.  Use test_move to check for all such moves and disallow
the mount in this case.

22 years agoshort int
cohrs [Fri, 30 Aug 2002 03:11:22 +0000 (03:11 +0000)]
short int
A fix from <Someone>: "this code only claims to inform the leader if mshort
is set i.E. sizeof(int)<=16."

22 years agobees from trees
nethack.allison [Fri, 30 Aug 2002 02:55:21 +0000 (02:55 +0000)]
bees from trees

<email deleted> wrote in the newsgroup:
> "You've attracted the tree's former occupants!"
> (nothing happens)
>
> Yes, it's _zero_ to four bees, depending on your luck.  I think it's meant
> to be one to five, though.
>

22 years agotake_gold() crash with GOLDOBJ
nethack.allison [Thu, 29 Aug 2002 02:23:47 +0000 (02:23 +0000)]
take_gold() crash with GOLDOBJ
Possible fix for B10001.
When the code went into case 3 in cursed_book(),
the game hung in an endless loop in take_gold().
The call stack was:
    take_gold() line 22 + 10 bytes
    cursed_book(int 2) line 124
    study_book(obj * 0x00968860) line 421 + 19 bytes
    doread() line 130 + 9 bytes
    rhack(char * 0x005b8eac in_line) line 1813 + 3 bytes
    moveloop() line 405 + 7 bytes
    main(int 3, char * * 0x00962ac0) line 93

22 years agowin32 suggestion from <Someone>
nethack.allison [Thu, 29 Aug 2002 00:17:08 +0000 (00:17 +0000)]
win32 suggestion from <Someone>

22 years agowin32 (from <Someone>)
nethack.allison [Wed, 28 Aug 2002 04:53:50 +0000 (04:53 +0000)]
win32 (from <Someone>)
This patch is an improvement for menu/text dialogs.
This is a code carried over from Windows CE port. It changes
text and menu windows from "system popup" to plain "child"
windows of the main nethack window. Nethack main window can
now be resized/moved/minimized when menu/text window is up.
Menu/text windows will always stay inside the main window and
move along with it.

<Someone>

22 years agoimproperly terminated quest message
cohrs [Tue, 27 Aug 2002 03:56:28 +0000 (03:56 +0000)]
improperly terminated quest message
Add a missing check to makedefs so it prints a warning about misplaced %Es.
Fix a couple places in quest.txt pointed out by the new warning.
There's no visible effect on play, since the code that actually reads the
message keeps reading until the next %C.

22 years agoB09002 - killing monsters seen by infravision
cohrs [Mon, 26 Aug 2002 15:31:51 +0000 (15:31 +0000)]
B09002 - killing monsters seen by infravision
ohitmon was incorrectly using location visibility in a couple places where
monster visibility was more appropriate.  I'm still not sure about the
canspotmon check for destroy vs killed.  Similar checks do no appear
elsewhere in the code.  But at least now the 'destroyed' won't be shown
for a seen, living monster.

22 years agocancelling compound option change
cohrs [Mon, 26 Aug 2002 15:23:06 +0000 (15:23 +0000)]
cancelling compound option change
Patch from <Someone>.  Accept escape when setting complex option as a cancel,
like most other prompts.

22 years ago(from <Someone>)
nethack.allison [Sun, 25 Aug 2002 12:29:35 +0000 (12:29 +0000)]
(from <Someone>)
> Questions are being appended in the message window, some showing
> up on the same line. This is really noticeable with the
> end-of-game disclosure questions. Questions should always be
> presented on a new line.

At end of game is probably the only place, since then more than one
question is asked in the same turn. Anyhow, here's the patch, in
mswproc.c  [...]

- No checkboxes in menu if menu is PICK_NONE. mhmenu.c

- About box changed to splash screen. This last thing is open
for discussion, as the splash screen currently does not give
exactly the ame information as the about box (or the v command).
Maybe the splash should be enhanced? Anyway, it looks better than
the About-box. I didn't remove the About-box code and resource yet
until this discussion is had. mhmain.c

<Someone>

22 years agobones file diagnostics
nethack.allison [Sat, 24 Aug 2002 23:25:40 +0000 (23:25 +0000)]
bones file diagnostics

Pat added some error information to create_levelfile.
This does the same for create_bonesfile, but the
only place it is logged is in the paniclog, unless
you're in wizard mode.  If bones file creation is
silently failing for someone and they aren't getting
bones files, this provides a way to diagnose why.

22 years agomisc bits: options, also win32 follow-up from <Someone>
nethack.allison [Sat, 24 Aug 2002 15:33:00 +0000 (15:33 +0000)]
misc bits: options, also win32 follow-up from <Someone>

(from <Someone>):
I guess that this:
      mcam += iflags.wc_scroll_amount;
should be his:
      mcam += iflags.wc_scroll_amount - 1;
In words: If scroll amount is 1, the behaviour should be as it was
before the option existed, which means: no addition to mcam.

22 years agowin32tty ALT+CTRL entry for fixes34.1
nethack.allison [Sat, 24 Aug 2002 15:24:09 +0000 (15:24 +0000)]
win32tty ALT+CTRL entry for fixes34.1

22 years agomore trickery - build fix
nethack.rankin [Sat, 24 Aug 2002 05:52:22 +0000 (05:52 +0000)]
more trickery - build fix

     Update the other trickery situation.  I don't know how I managed
to miss this.  The disadvantage of suppressing extern.h from normal
dependencies I guess.

22 years agowin32tty follow-up, Makefile change
nethack.allison [Fri, 23 Aug 2002 19:25:17 +0000 (19:25 +0000)]
win32tty follow-up, Makefile change

22 years agoB08014 win32tty: hanging when ctrl+alt pressed
nethack.allison [Fri, 23 Aug 2002 18:40:08 +0000 (18:40 +0000)]
B08014 win32tty: hanging when ctrl+alt pressed

CTRL+ALT was being treated as a valid ALT-sequence,
 so the meta bit was being set on it, letting it slip past this
 check in wintty.c "if (!i) i = '\033';"

This overhauls the ALT processing in nttty.c, some of
which was using scancode mappings from the DOS port
needlessly.

22 years agowindow.doc update
nethack.allison [Fri, 23 Aug 2002 18:30:01 +0000 (18:30 +0000)]
window.doc update
Nethack doesn't like zero,
or zero with the meta bit set.

22 years agolevel file handling and trickery feedback
nethack.rankin [Fri, 23 Aug 2002 14:52:25 +0000 (14:52 +0000)]
level file handling and trickery feedback

1) consolidate all core usage of `errno' in files.c;
2) give more feedback for any failure by create_levelfile or open_levelfile,
   similar to what was being done for problems during level change;
3) include trickery info in paniclog (many instances of "trickery" seem to
   be due to disk or quota problems rather than user misbehavior...).

The create_levelfile call in pcmain probably ought to be changed to use
error feedback, but in the meantime this should continue working.

Perhaps error() should be modified to update paniclog too, but I didn't
want to go through all its port-specific incarnations making changes.

22 years agohitting and mhurtle
cohrs [Fri, 23 Aug 2002 05:47:54 +0000 (05:47 +0000)]
hitting and mhurtle
Fix part of the buglist entry regarding hitting and mhurtle.  Flag if
mhurtle already killed the monster, and don't call killed again in this case.
One of the new checks for this already_killed flag is just futureproofing.

22 years agoB08021 scroll_amount wincap option
nethack.allison [Fri, 23 Aug 2002 01:03:59 +0000 (01:03 +0000)]
B08021 scroll_amount wincap option
> - I'd like to see another option added: scroll_amount. In
>   combination with scroll_margin, this would control the amount
>   of squares the screen is scrolled when the scroll_margin is
>   reached (currently, this amount is 1, but if I recall
>   correctly, it used to be more). For example, if both were 5,
>   when you came within 5 spaces of the left screen border, the
>   screen would shift 5 spaces to the right).

22 years agoconst and char* to char[]
nethack.allison [Thu, 22 Aug 2002 07:31:44 +0000 (07:31 +0000)]
const and char* to char[]
contributed by <Someone>

22 years agoUnhide the "click-to-the-left-to-set-count" feature, since it's a FAQ.
warwick [Thu, 22 Aug 2002 05:10:29 +0000 (05:10 +0000)]
Unhide the "click-to-the-left-to-set-count" feature, since it's a FAQ.

22 years agotrickery bulletproofing
nethack.rankin [Thu, 22 Aug 2002 03:05:18 +0000 (03:05 +0000)]
trickery bulletproofing

     Prevent the pardoning of trickery in wizard mode from attempting
to continue when there's no longer any current level.  Also prevent
the ZEROCOMP configuration from trying to read from file descriptor -1
in case there're any other places which still let that slip through.
And fix an oddity in the VMS port's error() routine which has gone
unnoticed for years.

22 years agoB09001 - mhp > mhpmax after life drain
nethack.rankin [Thu, 22 Aug 2002 01:44:24 +0000 (01:44 +0000)]
B09001 - mhp > mhpmax after life drain

     A monster hit by Stormbringer could take less damage to current
HP than it took to max HP if attacker had sufficient penalties, so
end up being healthier than its new maximum.  This only applies to
attacks by the player; attacks by monsters don't include the sorts of
modifiers that can trigger it.

22 years agobad "cad" message
nethack.rankin [Thu, 22 Aug 2002 01:23:31 +0000 (01:23 +0000)]
bad "cad" message

     From the newsgroup:  taking a shop-owned pick-axe out of a
container inside a shop gave a misleading message telling the
player to take the pick-axe out of the shop.  It was caused by
using the object's `unpaid' field before addtobill() had set it.

22 years agoB04006 - Grayswandir and unicorn horns
cohrs [Thu, 22 Aug 2002 00:13:03 +0000 (00:13 +0000)]
B04006 - Grayswandir and unicorn horns
Implement a check in make_hallucinated similar to the check in make_blinded
to handle the case where your hallucination is cured but Grayswandir is
suppressing its effects anyway.

22 years agoR1049 followup
cohrs [Wed, 21 Aug 2002 23:36:47 +0000 (23:36 +0000)]
R1049 followup
This patch handles the case of angering the town watch when breaking a wand
of digging damages walls or doors.

22 years agoB08002 - win32gui: message window sizing (from <Someone>)
nethack.allison [Wed, 21 Aug 2002 23:14:27 +0000 (23:14 +0000)]
B08002 - win32gui: message window sizing (from <Someone>)
>>>  - When I set font and font size of the message window, the
>>>  message window size doesn't calculate correctly to show the
>>>  number of message lines specified. For example, I set the font
>>>  size to 6, and the number of messages to display to 8. Now
>>>  there is whitespace at the top of my message window. When I
>>>  set the font size to 14 now, I see only 5.5 message lines.
>>>  This is unintuitive: the interface should recalculate the
>>>  window size needed to display the correct number of lines.
>>>
>>  I agree, especially since the message window size is
>>  recalculated correctly if you save and restore. An easy way out
>>  would be to set those options to DISP_IN_GAME.
>
>  That seems like a good work-around until the proper fix is done.

The patch is attached. I moved the code that was computing the font
size to mswin_message_window_size(). This will cause the message
window to resize properly if the message font size changes. There
are also 2 minor bits in mswproc.c to invalidate the message window
when the font changes.

22 years agoR1049 - various wand of digging bugs
cohrs [Wed, 21 Aug 2002 23:06:58 +0000 (23:06 +0000)]
R1049 - various wand of digging bugs
- Breaking wand of digging dug through rock which should be undiggable.
Checks assumed pits would never show up in solid rock.
- Breaking wand of digging near shop walls wouldn't anger the shopkeeper
Checks assumed pits would never show up in walls, also, added a special
case to pay_for_damage to handle the case where you're falling thru and
can't be asked to pay.
- Shop walls wouldn't be restored if there are pits in the way.
Checks assumed pits would never show up in walls.
- If there was a hole outside the shop, you could kick stuff out of the
door into the hole without shopkeeper noticing.  Added the missing check.

22 years agoB08020 - partial fix for D<count>$ behavior
cohrs [Wed, 21 Aug 2002 16:57:21 +0000 (16:57 +0000)]
B08020 - partial fix for D<count>$ behavior
When GOLDOBJ is defined, dropping partial amounts of gold using the D
command would not work because gold currently has the same inventory letter
as the coin group accelerator.  In this case, the group accelerator should
not be used, since it confuses counts.  tty and X11 ports are fixed.  The
tty change should fix the Windows console version as well (untested).

22 years agotearing spellbooks while confused
cohrs [Wed, 21 Aug 2002 16:43:48 +0000 (16:43 +0000)]
tearing spellbooks while confused
Reported to the newsgroup, the code in study_book for the effect of
confusion on studying a book was never reached.  The study_book code
didn't completely handle continuing to read a book when you got confused
after getting interrupted.

22 years agotearing spellbooks while confused
cohrs [Wed, 21 Aug 2002 16:42:10 +0000 (16:42 +0000)]
tearing spellbooks while confused
Reported to the newsgroup, the code in study_book for the effect of
confusion on studying a book was never reached.  Removed the deprecated
check from read.c

22 years agowin32: hold .0 file open exclusively
nethack.allison [Wed, 21 Aug 2002 15:21:56 +0000 (15:21 +0000)]
win32: hold .0 file open exclusively
-prevents problems with internal recover
if second copy of game is started up with
the same player name.

22 years agowin32 problem on NT4
nethack.allison [Wed, 21 Aug 2002 11:53:44 +0000 (11:53 +0000)]
win32 problem on NT4
> Oops:
>
> "NetHack.exe - Entry Point Not Found
>
> The procedure entry point Process32Next could not be located in the dynamic link
> library KERNEL32.dll."
>
> And the program refuses to run. Same goes for NetHackW.exe.
>
> Windows NT 4 (to be precise: 4.00.1381, SP6)
> IE 5.0 (to be precise: 5.00.2919.6307)
>
> The Help for Process32Next shows the following compatibility list:
> QuickInfo
>   Windows NT: Requires version 5.0 or later.
>   Windows: Requires Windows 95 or later.
>   Windows CE: Unsupported.
>   Header: Declared in tlhelp32.h.
>   Import Library: Use kernel32.lib.

22 years agosuggestions from <Someone>
nethack.allison [Wed, 21 Aug 2002 11:02:56 +0000 (11:02 +0000)]
suggestions from <Someone>

22 years agoB08019 - growup followup
cohrs [Wed, 21 Aug 2002 05:14:10 +0000 (05:14 +0000)]
B08019 - growup followup
growup entries for all the orc types as <Someone> suggested, since generic orcs
almost never occur.

22 years agoB08018 - vision when breaking closed doors
cohrs [Wed, 21 Aug 2002 04:48:17 +0000 (04:48 +0000)]
B08018 - vision when breaking closed doors
Do vision_recalc immediately when blasting a door so that all the
subsequent messages for the same blast hitting other things are all
evaluated with the same vision in effect.

22 years agofixes34.1: SELF_RECOVER for win32, chdir
nethack.allison [Wed, 21 Aug 2002 03:42:36 +0000 (03:42 +0000)]
fixes34.1: SELF_RECOVER for win32, chdir

22 years agoSELF_RECOVER for win32
nethack.allison [Wed, 21 Aug 2002 03:30:19 +0000 (03:30 +0000)]
SELF_RECOVER for win32

- define SELF_RECOVER for win32
- add code to perform a recover operation from
  within NetHack itself when SELF_RECOVER is defined

22 years agoDon't chdir with NOCWD_ASSUMPTIONS
nethack.allison [Wed, 21 Aug 2002 03:26:25 +0000 (03:26 +0000)]
Don't chdir with NOCWD_ASSUMPTIONS