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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

couple -> few

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

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

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

allows the following configuration options:

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

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

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

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

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

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

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

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

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

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

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

Also added: use Windows-provided TransparentBlt where available.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

22 years agomore prayer tuning
cohrs [Mon, 15 Apr 2002 14:56:39 +0000 (14:56 +0000)]
more prayer tuning
- Don't guarantee high results when you have high Luck, add Luck into
random param of rn1(), and just add 1 to the basis, keeping the guaranteed
fix of a single major trouble mentioned in the block comment

22 years agoshop credit fix
nethack.rankin [Mon, 15 Apr 2002 10:52:20 +0000 (10:52 +0000)]
shop credit fix

[ Fix a bug reported in the newsgroup; I thought I sent this last
  week, but it isn't in the current code so I must have forgotten. ]

     When I split u_left_shop() into two routines I neglected to
propagate the early return condition from the second half to the
first.  The result is that if you leave a shop with unpaid goods
but have enough credit there to cover the cost, the shopkeeper
will take that credit and be satisified, but the kops were still
getting summoned as if he had been robbed.

22 years agowaking waiting monsters after non-damaging attacks
cohrs [Mon, 15 Apr 2002 07:00:00 +0000 (07:00 +0000)]
waking waiting monsters after non-damaging attacks
- From a bug report, there are ways to, for example, steal items
from Medusa without waking her, by clever use of Conflict.
Avoid this by removing STRAT_WAITFORU when such an attack succeeds
- it was theoretically possible to use a similar approach to steal from a
STRAT_WAITFORU monster without it noticing while polymorphed and very fast,
so bulletproof this case as well.  Simpler because failed attacks wake too.

22 years agocrash fix: shopkeeper re-entering shop
cohrs [Mon, 15 Apr 2002 06:43:55 +0000 (06:43 +0000)]
crash fix: shopkeeper re-entering shop
- when a shopkeeper leaves the shop to chase the player, and the player
enters the shop, bill_p is set to an unusual value.  bill_p needs to be set
back to a valid value if the shopkeeper re-enters the shop.
- Also, the u.ushops state needs to be updated when a shop becomes tended
again if the player is in the shop.
- introduce a new after_shk_move function to handle this

22 years agostale pickup_burden message in tty after
cohrs [Sun, 14 Apr 2002 21:59:53 +0000 (21:59 +0000)]
stale pickup_burden message in tty after
- tty interface left a stale prompt on the topl, clear it

22 years agotty message loss
cohrs [Sun, 14 Apr 2002 21:45:33 +0000 (21:45 +0000)]
tty message loss
- typing ESC would lose messages if msg_window was not displayed
- incorporate <Someone>'s fix, which causes them to be tracked, just not
displayed, and thus still available for ^P viewing later on

22 years agotrapped monsters
cohrs [Sun, 14 Apr 2002 06:44:46 +0000 (06:44 +0000)]
trapped monsters
A suggestion from <Someone>
- since newsym marks physical traps that have a monster trapped as seen,
and the ^ command will tell you what it is, lookat() can tell you about the
trap too

22 years agoR772.2 - potions of acid in pools
cohrs [Sun, 14 Apr 2002 06:09:00 +0000 (06:09 +0000)]
R772.2 - potions of acid in pools
- mixing potions of acid and water result in an explosion, so water_damage
should cause a potion of acid to explode as well

22 years agoR778 - prayer bit
cohrs [Sun, 14 Apr 2002 04:46:11 +0000 (04:46 +0000)]
R778 - prayer bit
- need to use min() not max() for action choice when not on altar

22 years agoobsolete aggravation comment
arromdee [Sun, 14 Apr 2002 03:55:30 +0000 (03:55 +0000)]
obsolete aggravation comment
Get rid of the obsolete comments about summon spells also aggravating.

The effect on balance of not aggravating is negligible, because nasty() already
wakes up most of the monsters it creates.

22 years agoremove prescient travel command behavior followup
cohrs [Sat, 13 Apr 2002 16:27:58 +0000 (16:27 +0000)]
remove prescient travel command behavior followup
- applied an intermediate version of the fix which had a bug in choosing
the intermediate location

22 years agoremove prescient travel command behavior
cohrs [Sat, 13 Apr 2002 16:00:13 +0000 (16:00 +0000)]
remove prescient travel command behavior
Addresses reports R718, R772.1, <Someone> P's extra move bug
- when there is a previously seen path or a straight path, always take it
- incorporate fix to ensure no extra "." turn at the end of traveling, but
 still avoid stepping into traps/pools, et al
- include a general "G"-command (and travel) fix to avoid stepping in
 known pools/lava while blind
- when there is no such path, "guess" at a path by finding an intermediate
 location that the hero couldsee that is closest to the actual goal, the
 intermediate goal is re-determined at each step
- when Blind, don't use couldsee for determining straight paths, just direction
- do not consider doors or most boulders obstacles for picking travel
 paths, test_move has a new mode to differentiate this case from the regular
 test case
- don't include known trap locations in the travel path, avoids unnecessary
 stops along the way, and usually doesn't affect the path length
- reformatted the code a bit so I could follow it

22 years agoW340-3 menu columns
nethack.allison [Thu, 11 Apr 2002 14:08:46 +0000 (14:08 +0000)]
W340-3  menu columns
In some menus the options columns didn't line up perfectly
when very long items were present.

22 years agoATR_BOLD on spell menu header
nethack.allison [Thu, 11 Apr 2002 14:05:33 +0000 (14:05 +0000)]
ATR_BOLD on spell menu header

22 years agoWizard strategy
nethack.rankin [Thu, 11 Apr 2002 02:24:15 +0000 (02:24 +0000)]
Wizard strategy

     When the Wizard uses STRAT_MONSTR to get next to any monster
which is carrying the Amulet, he was actually displacing the other
monster to take its map location.  It was possible--and still is,
actually, although it takes a lot longer now--for the excessive
summoning by spell casting monsters to entirely fill up the temple
on the Sanctum level, so the Wizard would sometimes knock Moloch's
high priest right out of his temple.  And since that priest doesn't
turn hostile until you enter the temple, you might have needed to
kill a peaceful human in order to get the Amulet.

     Now when there's no elbow room in the temple, the Wizard will
stay outside instead of bumping the high priest out.

22 years agoquest tuning
nethack.rankin [Thu, 11 Apr 2002 00:54:11 +0000 (00:54 +0000)]
quest tuning

     Alter the starting position of the monk and priest quest
nemeses to neutralize the possibility of attacking them by
zapping directly to the left as soon as you arrive on the final
level.  And give the samurai a little variety too by varying
the arrival location, although that is just cosmetic.

22 years agoAdd fixes entry for unset tty TERM fix.
dean [Wed, 10 Apr 2002 22:32:29 +0000 (22:32 +0000)]
Add fixes entry for unset tty TERM fix.

22 years agoWhen using TTY_GRAPHICS, correctly handle an unset TERM environment variable.
dean [Wed, 10 Apr 2002 22:30:15 +0000 (22:30 +0000)]
When using TTY_GRAPHICS, correctly handle an unset TERM environment variable.

22 years agounix: install recover command by default
cohrs [Sun, 7 Apr 2002 19:05:07 +0000 (19:05 +0000)]
unix: install recover command by default
- Update Makefile.top to do the deed
- Update Install.unx and README.linux to reflect the changed install procedure

22 years agoallow vengeance against nymphs except for specific case
nethack.allison [Sun, 7 Apr 2002 13:42:18 +0000 (13:42 +0000)]
allow vengeance against nymphs except for specific case

From: "Ken Arromdee" :
> My point is that you should be allowed to take vengeance on thieving
> nymphs too.  The reasoning "a real knight wouldn't kill a nymph for stealing"
> doesn't make sense because the things a real knight would do instead (like
> arresting) aren't part of the game.

This is a compromise.  This doesn't allow vengeance when you were
told "you gladly hand over ...", but does for most other cases, and for
leprechauns.

22 years agoB/U/C Priest suggestion by Pat
nethack.allison [Sun, 7 Apr 2002 12:51:28 +0000 (12:51 +0000)]
B/U/C Priest suggestion by Pat

- also a win32 dsp file modification

22 years agomultiple iron bars fixes
nethack.rankin [Sun, 7 Apr 2002 10:43:59 +0000 (10:43 +0000)]
multiple iron bars fixes

Can't push boulders through iron bars; traps can't roll such through either;
likewise for objects thrown by monsters.
Thrown objects susceptible to breaking might do so when they hit iron bars.
Assorted monsters can pass through iron bars; ditto for polymorphed character.
Attempting to dig iron bars will wake nearby monsters instead of yielding
"you swing your pick-axe through thin air".
Autodig won't accept iron bars as candidate location.

22 years agoPriests recognize B/U/C status on items in container menus
nethack.allison [Sat, 6 Apr 2002 18:06:59 +0000 (18:06 +0000)]
Priests recognize B/U/C status on items in container menus

<email deleted>
> Since Priests' knowledge of the buc-status of an object only
> kicks in when the name is being looked at for the first time,
> they get an "X" option when taking items out of a newly-looted
> container, but B, U, and C thereafter; could their ability be
> pre-applied to the container's contents when constructing the
> menu, to avoid this anomaly?
>

22 years agoR759 - delayed were change could cause crash
cohrs [Sat, 6 Apr 2002 17:24:15 +0000 (17:24 +0000)]
R759 - delayed were change could cause crash
moveloop() sets a flag when a were/poly change should occur, but it
delays this change if the hero is Unchanging or cannot be interrupted (e.g.
praying).  However, by the time the change can be applied, the reason
may no longer be valid.  Reset the change indicator when this is the case.
Avoids possible strange polymorphs and were crashes.

22 years agomouse fix for nt tty
nethack.allison [Sat, 6 Apr 2002 16:26:38 +0000 (16:26 +0000)]
mouse fix for nt tty
No wonder we've had complaints about the mouse lately.
The port was responding to mouse movements that didn't
even involve a button click.

22 years ago<Someone>'s doppelganger entry for data.base
nethack.allison [Sat, 6 Apr 2002 16:18:19 +0000 (16:18 +0000)]
<Someone>'s doppelganger entry for data.base

22 years agocomment grammar tidbit
nethack.rankin [Sat, 6 Apr 2002 04:41:32 +0000 (04:41 +0000)]
comment grammar tidbit

     Noticed when sending the reply about the lregion type 5 bug report.

22 years agofix "couldn't place lregion type 5"
nethack.rankin [Sat, 6 Apr 2002 04:22:33 +0000 (04:22 +0000)]
fix "couldn't place lregion type 5"

     Implement a fix for the problem From a bug report:
if the destination position on the Plane of Fire has a randomly
placed trap on it, you'd get an impossibility warning of "couldn't
place lregion type 5" (and then arrive successfully at the target
spot anyway).  As his investigation indicated, the code to remove
such traps wasn't being reached because the `bad_location' check
yields true for trapped spots.

22 years agomonster spells (insects, nasties)
arromdee [Sat, 6 Apr 2002 04:00:04 +0000 (04:00 +0000)]
monster spells (insects, nasties)
This throttles insect creation through monster spell casting.  Especially
insects.  It was creating m_lev worth of insects--for a 25th level priest,
that means every batch of insects was size 25!

I also lowered the range for nasties creation for similar reasons.

22 years agoTwo new options
nethack.allison [Thu, 4 Apr 2002 03:45:03 +0000 (03:45 +0000)]
Two new options
Add "travel" boolean option to enable/disable travel command.
Add "mouse_support" wincap option to enable/disable mouse.

- When running the win32 tty version full-screen, some people
complained about the square mouse cursor.

Newsgroups: rec.games.roguelike.nethack
Subject: Re: Getting rid of the cursor?
<email deleted> <email deleted>
Followup-To:

On Thu, 04 Apr 2002 00:20:06 <email deleted> wrote:
> Ok, let me be more specific: when playing the windows non-GUI version, is
> there a way to get rid of the large rectangular white cursor?
>
> <email deleted> wrote in message
> <email deleted>
>> Can you get rid of the cursor in the windows version?  I really hate that
>> thing.
>>

<email deleted>
>Newsgroups: rec.games.roguelike.nethack
>Subject: Disabling Mouse Input
>
>I purchased an older P120 laptop to be able to play Nethack at the hotel.
>I find that I rest my thumbs on the mouse touch pad all too often and my
>@ moves unexpectedly at times. I took a peruse through defaults.nh, but
>came up empty.
>
>Anyone know if mouse input can be disabled?
>
>MRSisson

22 years agoScreens are getting bigger... make 64x64 the maximum scaled tile size.
warwick [Wed, 3 Apr 2002 08:09:47 +0000 (08:09 +0000)]
Screens are getting bigger... make 64x64 the maximum scaled tile size.

22 years agoanother pass at preserving the Burdened message
cohrs [Wed, 3 Apr 2002 07:17:55 +0000 (07:17 +0000)]
another pass at preserving the Burdened message
- this is brute force, always update the status line each time you
insert something into a container.  If you look closely, you may still
see the Burdened message disappears momentarily doe to the many possible
messages between the freeinv() call and the point where the object is
actually put into the container.

22 years agocomment spacing tid
arromdee [Wed, 3 Apr 2002 06:56:35 +0000 (06:56 +0000)]
comment spacing tid

22 years agoMPW build fixes: predefine YY_NEVER_INTERACTIVE in a more ANSI-like manner, do not...
dean [Wed, 3 Apr 2002 05:58:29 +0000 (05:58 +0000)]
MPW build fixes: predefine YY_NEVER_INTERACTIVE in a more ANSI-like manner, do not redefine unlink unless MetroWerks.

22 years agoPlace finished .lev files in the MPW build's destination directory.
dean [Wed, 3 Apr 2002 05:40:29 +0000 (05:40 +0000)]
Place finished .lev files in the MPW build's destination directory.

22 years agoThe MPW compilers use WIDENED_PROTOTYPES.
dean [Wed, 3 Apr 2002 05:38:04 +0000 (05:38 +0000)]
The MPW compilers use WIDENED_PROTOTYPES.

22 years agono wisdom bonus from random Elbereth engravings
cohrs [Tue, 2 Apr 2002 17:13:35 +0000 (17:13 +0000)]
no wisdom bonus from random Elbereth engravings
- check !in_mklev before giving credit for engraving Elbereth

22 years agoensure touch_artifact is always called via hold_another_object
cohrs [Tue, 2 Apr 2002 05:32:02 +0000 (05:32 +0000)]
ensure touch_artifact is always called via hold_another_object
- remove the touch_artifact calls just added
- put a check into hold_another_object itself, based on the complete check
removed from makewish

22 years ago#741 (from <Someone>)
nethack.allison [Tue, 2 Apr 2002 01:26:25 +0000 (01:26 +0000)]
#741 (from <Someone>)

Another fatal bug in win32 graphical interface
"Too many "dead" NHW_TEXT windows around. Repeating #? 15 times will produce
the same result."

>Wizard, wearing gray dragon scale mail and wielding Magicbane. The
>Dark One teleports next to me and I get the message "The Dark One
>casts a spell at you! A field of force surrounds you!". Then I get
>3 windows popping up: "Oops." "The dungeon collapses." "ERROR: No
>windows available..." and the game exits.

> I wish I could reproduce this reliably.  Here's the method I've been using
> to do it:
>
> - Equip character (+4 gdsm, Magicbane, unicorn horn, see invisible,
> telepathy, key, "gain ability" potions to max out, enhance dagger skill
> to max, level change to 14)
> - Teleport down to the portal entrance.  Go through the portal, get
> permission to go down to see the Dark One.
> - Go down to the Dark One's level, teleport over, open up his door, and
> basically just try to head back to the entrance and kill him.
>
> Two different things have happened while doing this so far.  (I've been
> able to get errors something like 5 times out of many tries, and I haven't
> been about to do it at all in the TTY version - only the windows
> one.)  Either I get the above message I mentioned to you, which seems to
> happen at a random time, or I get a slightly different result - "Oops,
> program initialization failed, ERROR: No windows available".  This second
> result happened once _after_ I had killed the Dark One and was trying to
> #quit.
>

22 years agodisappearing burdened message
cohrs [Tue, 2 Apr 2002 01:18:13 +0000 (01:18 +0000)]
disappearing burdened message
- the "Burdened" message could disappear from the status line if it was
updated partway thru in_container, clearing the bot flags.  Re-order
message so it comes after add_to_container, as in 3.3.1.

22 years ago(from Yitzhak)
nethack.allison [Mon, 1 Apr 2002 21:27:23 +0000 (21:27 +0000)]
(from Yitzhak)
fixes a little problem noticed in mhsplash.c while trying to
figure out my debugger problems.

22 years ago#R733 (from <Someone>)
nethack.allison [Mon, 1 Apr 2002 21:23:38 +0000 (21:23 +0000)]
#R733 (from <Someone>)

- fix a buffer overflow in the win32 graphical interface

22 years ago(from Yitzhak)
nethack.allison [Mon, 1 Apr 2002 19:55:37 +0000 (19:55 +0000)]
(from Yitzhak)

22 years agostriking ID followup part 2
cohrs [Mon, 1 Apr 2002 16:51:10 +0000 (16:51 +0000)]
striking ID followup part 2
- test WoStriking after activating statue, not before

22 years agostriking ID followup
cohrs [Mon, 1 Apr 2002 15:32:51 +0000 (15:32 +0000)]
striking ID followup
- only ID wand of striking, not spellbook of force bolt, seeing the spell
cast does not make the book known

22 years agoR739 - dead migrating monster
cohrs [Mon, 1 Apr 2002 07:03:44 +0000 (07:03 +0000)]
R739 - dead migrating monster
- It was possible for hmon_hitmon to call mhurtle to move a monster into a
hole or other trap, causing it to migrate.  Then, hmon_hitmon would
subtract hp, and could mark the monster as dead.  Later, dmonsfree would
notice the monster wasn't on the level anymore, causing the impossible.
Avoid the problem by just not hurtling the monster if it's going to die.
It's possible it will get lifesaved after not hurtling.  Technically, if it
does die, the corpse should be hurtled, but won't be.
- treat jousting similarly

22 years agoR363 - can't drown breathless monsters
cohrs [Mon, 1 Apr 2002 05:33:32 +0000 (05:33 +0000)]
R363 - can't drown breathless monsters
- if you're polymorphed into an eel, you were able to drown things like xorns
- also, fix the tombstone message when an eel drowns you, it was basing the
message on your location, not the eel's location

22 years agoiron balls/teleds
arromdee [Mon, 1 Apr 2002 05:18:28 +0000 (05:18 +0000)]
iron balls/teleds
Fixing some iron ball/teleds stuff:
-- If the player can pass through walls, ignore all checks for walls, or else
things will behave weirdly.
-- Instead of using the kludge "if the distance is >2 it must be a teleport",
pass a parameter indicating whether they crawled or teleported onto the new
space.  This fixes a special case, where the player moved one space and the
ball didn't move, but the chain moved through solid rock.  This is acceptable
if teleporting and unacceptable if dragging.
This also required some rearrangement of teleds() so that u.ux,u.uy
are set after placing the ball, not before.  I'm still not sure the pit
filling line is in the right place; anyone know?
-- add some comments so I can look at the code in a month and still know what
I did.
Most of this patch is just adding the new parameter.

22 years agono sacrificing while swallowed
cohrs [Mon, 1 Apr 2002 01:37:26 +0000 (01:37 +0000)]
no sacrificing while swallowed

22 years agoidentifying a wand of striking when it activates a statue trap
cohrs [Mon, 1 Apr 2002 01:22:39 +0000 (01:22 +0000)]
identifying a wand of striking when it activates a statue trap

22 years agotripping over objects under water
cohrs [Mon, 1 Apr 2002 00:57:22 +0000 (00:57 +0000)]
tripping over objects under water
- cannot trip over submerged objects when you're water walking

22 years agocomment bit
cohrs [Mon, 1 Apr 2002 00:20:58 +0000 (00:20 +0000)]
comment bit
- the dropx comment has been wrong for a while, time to accept that

22 years agocomment bit
cohrs [Mon, 1 Apr 2002 00:04:45 +0000 (00:04 +0000)]
comment bit
- the dropx comment has been wrong for a while, time to accept that

22 years agoFrom <Someone>.
jwalz [Sun, 31 Mar 2002 22:56:30 +0000 (22:56 +0000)]
From <Someone>.

] Attached are changes to the makefile and a small change to get dlb
] working correctly.

22 years agoI recognize that this was an attempt to force the macro to act as a normal
jwalz [Sun, 31 Mar 2002 22:42:07 +0000 (22:42 +0000)]
I recognize that this was an attempt to force the macro to act as a normal
statement that could be followed by ';' anywhere.  However, with the goto
there, my compiler complains every time it's used:
"ball.c", line 402: warning: statement not reached
"ball.c", line 434: warning: statement not reached
"ball.c", line 442: warning: statement not reached
"ball.c", line 449: warning: statement not reached
"ball.c", line 452: warning: statement not reached
"ball.c", line 457: warning: statement not reached
"ball.c", line 479: warning: statement not reached
"ball.c", line 498: warning: statement not reached
None of the current uses care about an excess statement, but is there a
way to satisfy both desires?

22 years agoX11 pop-up dialog width
cohrs [Sun, 31 Mar 2002 17:11:23 +0000 (17:11 +0000)]
X11 pop-up dialog width
- the response field of the pop-up dialog was getting smaller by a few
pixels each time it was used.  This was because the width calculation
was effectively stripping off the margins (4 pixels total) each time.
Don't do that.

22 years agoshop fix: billing for contained items
nethack.rankin [Sun, 31 Mar 2002 14:56:13 +0000 (14:56 +0000)]
shop fix:  billing for contained items

     Shopkeeper wouldn't charge for items inside containers if you
dropped one, declined to sell it, and then filled it with shop goods.

22 years agotweak dowhatis description of the "Y" monster symbol
cohrs [Sun, 31 Mar 2002 07:23:36 +0000 (07:23 +0000)]
tweak dowhatis description of the "Y" monster symbol
- "or other large beast" could be interpretted as meaning that all "Y"
monsters are large, but monkeys are not large

22 years agoclarify travel commnd documentation
cohrs [Sun, 31 Mar 2002 07:19:43 +0000 (07:19 +0000)]
clarify travel commnd documentation
- Guidebook said traval command would stop similar to the G command, but did
not say it differed from the G command in that it disables autopickup

22 years agofixes34.1
kmhugo [Sun, 31 Mar 2002 06:32:11 +0000 (06:32 +0000)]
fixes34.1

Document recent changes.

22 years agolootabc and showrace options
kmhugo [Sun, 31 Mar 2002 06:27:27 +0000 (06:27 +0000)]
lootabc and showrace options

Replace "feature_toggle" implementation with an easier-to-understand
boolean option called "lootabc".

Provide "showrace", an option to display the hero by race glyph rather
than by role glyph.

Document the above.

Remove some obsolete Mac options.

22 years agomore win32 de-MICRO
nethack.allison [Sun, 31 Mar 2002 05:36:02 +0000 (05:36 +0000)]
more win32 de-MICRO

22 years agomore win32 de-MICRO
nethack.allison [Sun, 31 Mar 2002 05:29:03 +0000 (05:29 +0000)]
more win32 de-MICRO

22 years ago#R715 -- tombstone bulletproofing
kmhugo [Sun, 31 Mar 2002 05:21:53 +0000 (05:21 +0000)]
#R715 -- tombstone bulletproofing

Prevent an end-of-game panic if the tombstone window cannot
be made.

22 years agofix more "drops to the floor" cases when there is no floor
cohrs [Sun, 31 Mar 2002 04:18:02 +0000 (04:18 +0000)]
fix more "drops to the floor" cases when there is no floor
- make the code in apply.c and zap.c consistent
- use the "drops away from you" case whenever the location type does not
lend itself to using the word "floor"

22 years agohealer quest message typo
cohrs [Sat, 30 Mar 2002 21:25:10 +0000 (21:25 +0000)]
healer quest message typo
- remove unnecessary double-quote

22 years agodiscovering statue traps while blind (YAFM)
cohrs [Sat, 30 Mar 2002 21:21:35 +0000 (21:21 +0000)]
discovering statue traps while blind (YAFM)
- use "something" not "it" for this case

22 years agobird_parts for ravens
cohrs [Sat, 30 Mar 2002 21:16:34 +0000 (21:16 +0000)]
bird_parts for ravens
- ravens need special parts, actual bats are still best handled by animal_parts

22 years agore-merge objects removed from containers when pack is full
cohrs [Sat, 30 Mar 2002 20:56:09 +0000 (20:56 +0000)]
re-merge objects removed from containers when pack is full
- affects failed removal of a partial count of objects due to a full pack

22 years agofixes34.1 updates
nethack.allison [Sat, 30 Mar 2002 20:21:53 +0000 (20:21 +0000)]
fixes34.1 updates

22 years agoremove Symantec C makefile from distribution for dos
nethack.allison [Sat, 30 Mar 2002 20:01:09 +0000 (20:01 +0000)]
remove Symantec C makefile from distribution for dos