]> granicus.if.org Git - nethack/log
nethack
21 years agowin32gui: missing but for UI tweaks (from <Someone>)
nethack.allison [Tue, 30 Sep 2003 03:44:34 +0000 (03:44 +0000)]
win32gui: missing but for UI tweaks (from <Someone>)

"Count: XXXX" was getting cut-off in the menu

21 years agoSAFERHANGUP win32gui (from <Someone>)
nethack.allison [Tue, 30 Sep 2003 03:42:01 +0000 (03:42 +0000)]
SAFERHANGUP win32gui (from <Someone>)

21 years agoSAFERHANGUP win ce (from <Someone>)
nethack.allison [Tue, 30 Sep 2003 03:41:02 +0000 (03:41 +0000)]
SAFERHANGUP win ce (from <Someone>)

21 years agoconflicting delayed killers
cohrs [Mon, 29 Sep 2003 21:33:51 +0000 (21:33 +0000)]
conflicting delayed killers
fixes entry for the delayed killers change

21 years agoconflicting delayed killers
cohrs [Mon, 29 Sep 2003 19:24:20 +0000 (19:24 +0000)]
conflicting delayed killers
Introduce a new set of functions to manage delayed killers in the trunk, used
in addressing the various reports of delayed killer confusion.  Since existing
delayed killers are related to player properties, the delayed killers are
keyed by uprop indexes.  I did this to avoid adding yet another set of
similar identifiers.
- the new delayed_killer() is used for stoning, sliming, sickness, and
delayed self-genocide while polymorphed.  Some other timed events don't
use it (and didn't use the old delayed_killer variable) because they
use a fixed message when the timeout occurs.
- A new data structure, struct kinfo, is used to track both delayed and
immediate killers.  This encapsulates all the info involved with
identifying a killer.  The structure contains a buffer, which subsumes the
old killer_buf and several other buffers that didn't/couldn't use killer_buf.
- the killer list is saved and restored as part of the game state.
- the special case of usick_cause was removed and a delayed killer list
entry is now used in its place
- common code dealing with (un)sliming is moved to a new make_slimed function
- attempted to update all make dependencies for new end.c -> lev.h
dependency, sorry if I messed any up

21 years agoU678 - message ordering
cohrs [Mon, 29 Sep 2003 16:22:11 +0000 (16:22 +0000)]
U678 - message ordering

21 years agoU675 fix
nethack.allison [Mon, 29 Sep 2003 02:20:18 +0000 (02:20 +0000)]
U675 fix

if the monster that a statue represents is not made of flesh then don't
allow stone_to_flesh to animate it, make a meatball instead

21 years agosound cleanup
kmhugo [Sun, 28 Sep 2003 03:42:50 +0000 (03:42 +0000)]
sound cleanup

+ Separate the two uses of flags.soundok.
+ Player-settable option is now called "acoustics".
+ Deafness is now handled as a full-fledged attribute.
+ Check for deafness in You_hear(), rather than caller.
+ Check for deafness in caller, rather than verbalize(),
  because gods can speak to characters in spite of deafness.
+ Since changes are being made to prop.h, reorder it to the
  same order as youprop.h and enlightenment.

There are still some extraneous checks and missing checks
for deafness, which will be followed up in a future patch.

Because of the size of this patch and its savefile incompatibilities,
it is only being applied to the trunk code.  Portions of this patch
were written by Michael Allison.

21 years agolint tidbit
kmhugo [Sun, 28 Sep 2003 00:10:23 +0000 (00:10 +0000)]
lint tidbit

21 years ago^X tabbed field support
nethack.allison [Sat, 27 Sep 2003 22:37:52 +0000 (22:37 +0000)]
^X tabbed field support

21 years agoguidebook grammar bit
cohrs [Sat, 27 Sep 2003 15:55:35 +0000 (15:55 +0000)]
guidebook grammar bit

21 years agowin32gui (from <Someone>)
nethack.allison [Sat, 27 Sep 2003 12:30:28 +0000 (12:30 +0000)]
win32gui (from <Someone>)

trunk and branch:
Do not limit role selection list by race/gender/alignment. The default.nh
selection will still be honored but the list itself will include every
possible role.

Some interface tweaks for main trunk:
- improved calculation of the size of the menu window
- made auto-arrange windows on/off option (it was reset automatically
  which was unintuitive and in some cases annoying, IMO)

21 years agoanimation of wielded statue
nethack.rankin [Fri, 26 Sep 2003 10:27:36 +0000 (10:27 +0000)]
animation of wielded statue

     Fix the reported bug of problems after casting stone-to-flesh spell
on self while wielding a statue.  Pointers for worn items weren't kept in
sync and various potential symptoms could occur (most easily visible one
being that ')' falsely reported the no longer existing statue as still
wielded; report stated that one crash was observed).  This bug predates
3.4.2 and was probably present ever since stone-to-flesh got introduced.

21 years agovms catchup (context)
nethack.rankin [Fri, 26 Sep 2003 09:56:38 +0000 (09:56 +0000)]
vms catchup (context)

21 years agodismounting next to a boulder
cohrs [Fri, 26 Sep 2003 03:31:09 +0000 (03:31 +0000)]
dismounting next to a boulder
It makes sense that if you cannot normally move to a location containing a
boulder, dismounting there should be avoided if possible.  It seems
that it should be possible to land there if there's no other choice.
Perhaps doing so should result in damage, but that's not in this patch.

21 years agofog cloud and aquatic monsters
cohrs [Fri, 26 Sep 2003 01:03:46 +0000 (01:03 +0000)]
fog cloud and aquatic monsters
<Someone> pointed out the inappropriate appearance of the 3.4.2 message when
fog clouds have you engulfed if you happen to be polymorphed into an aquatic
creature.  It does seem that a fog cloud should not cause added damage to
amphibious creatures, which includes breathless (but non-flaming) monsters.
I also thought another message was more appropriate for flaming creatures
(see on_fire()), and added a special case for that.
gulpum was missing symmetric code and I added it there too.

21 years agovarious tests of flaming monsters
cohrs [Fri, 26 Sep 2003 00:37:24 +0000 (00:37 +0000)]
various tests of flaming monsters
This change adds a new flaming() macro and uses it in several places
where the list of flaming monsters was tested.  on_fire() didn't list
salamanders as already being on fire, but should have.  A couple other
cases were not updated to include flaming sphere.

21 years agoU673 - hooks and grappling hook working thru walls
cohrs [Thu, 25 Sep 2003 22:44:27 +0000 (22:44 +0000)]
U673 - hooks and grappling hook working thru walls
While wearing the Eyes of the Overworld, one could use a hook or pole thru
walls.  The bug report thought they should work past a boulder, but I
disagree, given a pole or hook's rigid nature, and did not special case that.
couldsee() is not affected by the Eyes, so use that after checking cansee().

21 years agokiller messages
cohrs [Thu, 25 Sep 2003 16:56:56 +0000 (16:56 +0000)]
killer messages
Incorporate various killer message grammar fixes suggested by <Someone>.
Mostly these deal with using the proper killer_format and prefix ("the" or
no "the") for unique and type_is_pname monsters, or death to to eating
their corpses.
One case is handled by a general fix to name_to_mon to allow it to deal
with "Croesus' corpse".
The pre-3.4.1 topten behavior for "starved to death" messages is also restored.

21 years agoU651 - avoid declaring errno unnecessarily
cohrs [Wed, 24 Sep 2003 02:12:22 +0000 (02:12 +0000)]
U651 - avoid declaring errno unnecessarily
Some changes for standard C platforms, to avoid declaring errno explictly.
Such platforms should declare errno in errno.h, which is already included
in the files in question.

21 years agoU659 - "destroy" manes
cohrs [Wed, 24 Sep 2003 01:29:54 +0000 (01:29 +0000)]
U659 - "destroy" manes
Nethack's manes are based on AD&D manes which are in turn based on the
manes of Roman legend.  They are supposed to be spirits of the dead.
To that end, added them to the nonliving() macro.  The biggest behavioral
change is that death spells no longer effect them, which does technically
make them a bit tougher but also makes sense.  Also, they're so wimpy, it's
hard to believe anyone would use a death/disintegration on them anyway.

21 years agoU665: gold and unpaid containers
cohrs [Tue, 23 Sep 2003 22:01:14 +0000 (22:01 +0000)]
U665: gold and unpaid containers
The choice was to avoid one of the two sellobj() calls in in_container.
Since I liked the message ordering "put gold into... credit" better than
"credit... put gold into", the code now avoids the 1st sellobj call for coins.

21 years agocontext build changes for Unix
cohrs [Mon, 22 Sep 2003 05:21:53 +0000 (05:21 +0000)]
context build changes for Unix
- removed an extraneous space from Makefile.src that confused GNU make
- unixmain.c still had a couple uses of flags.move

21 years agofix cvs macro
nethack.allison [Sun, 21 Sep 2003 13:34:52 +0000 (13:34 +0000)]
fix cvs macro

21 years agocommit new file context.h
nethack.allison [Sun, 21 Sep 2003 13:32:36 +0000 (13:32 +0000)]
commit new file context.h

21 years agovictual follow-up
nethack.allison [Sun, 21 Sep 2003 13:25:56 +0000 (13:25 +0000)]
victual follow-up

Since context is saved prior to inventory
ensure that the o_id is valid immediately.

21 years agotrunk only: preserving context (remaining files)
nethack.allison [Sun, 21 Sep 2003 11:57:26 +0000 (11:57 +0000)]
trunk only: preserving context (remaining files)

Pat Rankin wrote:
> collect them all into some new struct and
> save that separately rather than jamming more non-option stuff
> into struct flags.

This patch:
- collects all context/tracking related fields from flags
  into a new structure called "context."
It also adds the following to the new structure:
- stethoscope turn support
- victual support
- tin support

21 years agotrunk only: preserving context (sys files)
nethack.allison [Sun, 21 Sep 2003 11:56:11 +0000 (11:56 +0000)]
trunk only: preserving context (sys files)

Pat Rankin wrote:
> collect them all into some new struct and
> save that separately rather than jamming more non-option stuff
> into struct flags.

This patch:
- collects all context/tracking related fields from flags
  into a new structure called "context."
It also adds the following to the new structure:
- stethoscope turn support
- victual support
- tin support

21 years agotrunk only: preserving context (src files)
nethack.allison [Sun, 21 Sep 2003 11:52:54 +0000 (11:52 +0000)]
trunk only: preserving context (src files)

Pat Rankin wrote:
> collect them all into some new struct and
> save that separately rather than jamming more non-option stuff
> into struct flags.

This patch:
- collects all context/tracking related fields from flags
  into a new structure called "context."
It also adds the following to the new structure:
- stethoscope turn support
- victual support
- tin support

21 years agotrunk only: preserving context (include files)
nethack.allison [Sun, 21 Sep 2003 11:46:53 +0000 (11:46 +0000)]
trunk only: preserving context (include files)

Pat Rankin wrote:
> collect them all into some new struct and
> save that separately rather than jamming more non-option stuff
> into struct flags.

This patch:
- collects all context/tracking related fields from flags
  into a new structure called "context."
It also adds the following to the new structure:
- stethoscope turn support
- victual support
- tin support

21 years agoSAFERHANGUP followup
jwalz [Fri, 19 Sep 2003 16:32:41 +0000 (16:32 +0000)]
SAFERHANGUP followup

We've previously been supporting R4+ for X11, but signals weren't added
until R6.  This at least lets it compile under R5.

21 years agoSAFERHANGUP support for win32tty
nethack.allison [Fri, 19 Sep 2003 11:22:00 +0000 (11:22 +0000)]
SAFERHANGUP support for win32tty

win32gui support still needs to be developed.

21 years agoSAFERHANGUP support for win/Qt.
cohrs [Fri, 19 Sep 2003 04:08:37 +0000 (04:08 +0000)]
SAFERHANGUP support for win/Qt.
Now all the current Unix window-ports support it.

21 years agomore SAFERHANGUP
cohrs [Fri, 19 Sep 2003 03:55:33 +0000 (03:55 +0000)]
more SAFERHANGUP
make "done_hup" volatile on platforms where this matters, since hangup()
now returns when it didn't used to.

21 years agoSAFERHANGUP
cohrs [Fri, 19 Sep 2003 03:15:49 +0000 (03:15 +0000)]
SAFERHANGUP
This is an initial round of SAFERHANGUP hangup changes.  It introduces
SAFERHANGUP, provides the core framework, and enables it for UNIX.

Window-port changes are provided for win/tty, win/X11 and win/gnome.  Qt
changes should be forthcoming after having Warwick look at them.
window.doc is updated so windowport maintainers have an clue what needs to
be done to support SAFERHANGUP.

21 years agooracles/rumors for offerings
cohrs [Thu, 18 Sep 2003 03:03:12 +0000 (03:03 +0000)]
oracles/rumors for offerings
As suggested in a message from <Someone>, add a rumor and an oracle
regarding priestly donations.  Keni's suggested wording was incorporated.
A spelling error in another oracle is also fixed.

21 years ago"your" artifacts
cohrs [Thu, 18 Sep 2003 02:52:40 +0000 (02:52 +0000)]
"your" artifacts
This patch introduces a change to yname() and Yname2() that avoids the
possessive "your" for the hero's normal, fully identified artifacts.
Quest artifacts still get the possessive, as do all other objects and all
objects not in the hero's possession.  shk_your()/Shk_Your() are used in
many places with a specific, generalized name for the object, so I didn't
introduce the artifact behavior there, although I did change them to append
a space, which simplified some other code.  Through added use of yname(),
there may be some places that used to just say "corpse" that will now be more
descriptive via yname()'s use of cxname().  I'm sure <Someone> will point
out any such places that are too onerous, although nothing obviously is.

I took the opportunity to inspect many uses of "your" and even Your().  Two
new functions are also introduced, yobjnam() and Yobjnam2(), which work
like aobjnam() and yname() combined, because I found that many uses of
aobjnam() were preceeded by "your" and I couldn't generally provide the
desired behavior for artifacts (or future artifacts) without a combined
function.  In some cases, this change allowed better sharing of code.

rust_dmg() still takes a string as input which is sometimes initialized
from xname() and often prepends "your" to it.  Currently, this isn't a
problem since there currently are no normal, armor artifacts.  If/when any
are introduced, rust_dmg() will need to be addressed.

The patch is for the trunk only.  A lot of research was required and I
didn't feel the upside was there for repeating it in the 3.4.3 branch.

21 years agoDon't use regex by default - that way player can share/transport
warwick [Tue, 16 Sep 2003 03:45:58 +0000 (03:45 +0000)]
Don't use regex by default - that way player can share/transport
their nethack.cnf between platforms bettery. Wildcards suffice anyway.

21 years agoUse __BIG_ENDIAN__ rather than __ppc__ (more portable, more meaningful).
warwick [Tue, 16 Sep 2003 00:20:18 +0000 (00:20 +0000)]
Use __BIG_ENDIAN__ rather than __ppc__ (more portable, more meaningful).

21 years agoredundant comparison bit
cohrs [Mon, 15 Sep 2003 16:20:38 +0000 (16:20 +0000)]
redundant comparison bit

21 years agowish bit
nethack.allison [Mon, 15 Sep 2003 10:47:30 +0000 (10:47 +0000)]
wish bit

<Someone> wrote:
>> You're equally unlikely to be wishing for spellbooks by colour,
>> but I note that 'grey' for 'gray' only works for dragonscale and
>> stones, not the spellbook description.
>>
> I've just noticed that the fix for this only works for 'grey
> spellbook', not 'grey spell book'; 'spell book' works for wishing
> in other contexts, so it probably ought to here :-)

21 years agobuglist: autodig
nethack.allison [Mon, 15 Sep 2003 03:49:28 +0000 (03:49 +0000)]
buglist: autodig

> Would it be possible to make autodig also dig downward
> when I press '>' while wielding an pick-axe? When digging for gold,
> after casting detect objects, this would be convenient for getting
> to buried gold and gems.
> [<Someone>]

21 years agobuglist: desacrated temples and blindness.
nethack.allison [Mon, 15 Sep 2003 03:08:56 +0000 (03:08 +0000)]
buglist: desacrated temples and blindness.

> When I enter a desacrated temple, sometimes an enormous ghost
> appears next to me:
> You have an eerie feeling... An enormous ghost appears next to
>     you!
> You are frightened to death, and unable to move.
> You regain your composure. When I don't have telepathy, and don a
>     blindfold first, I get the same messages:
> You are now wearing a blindfold. You can't see any more.
> You have an eerie feeling... An enormous ghost appears next to
>     you!
> You are frightened to death, and unable to move.
> You regain your composure. Why does the ghost scare me if I
>     cannot even see it? How do I notice it appear?
>  [<Someone>]

21 years agoavoid the_your[] duplication
nethack.allison [Mon, 15 Sep 2003 02:04:00 +0000 (02:04 +0000)]
avoid the_your[] duplication

get rid of a duplication of the_your[] strings (do.c, trap.c) by
moving it to c_common_strings.

21 years agoquivering coins
cohrs [Sun, 14 Sep 2003 00:01:35 +0000 (00:01 +0000)]
quivering coins
A while back, I delayed applying this patch after a discussion about
quivering coins, because I didn't want to change the behavior of GOLDOBJ
vs non-GOLDOBJ games.  I'm tired of seeing this diff in my tree, and I
recall there was some sentiment that I should have checked it in, so I'm
adding the feature in the trunk.

21 years agogcc compilation warnings
cohrs [Sat, 13 Sep 2003 22:55:45 +0000 (22:55 +0000)]
gcc compilation warnings

21 years agoshow errno not result
nethack.allison [Sat, 13 Sep 2003 17:11:20 +0000 (17:11 +0000)]
show errno not result

open_levelfile_exclusively() was showing the return value -1 in a panic message, even though that was the only possible value; show errno instead

21 years agobuglist - full level triggers impossible() from migrating mons
nethack.allison [Sat, 13 Sep 2003 05:30:43 +0000 (05:30 +0000)]
buglist - full level triggers impossible() from migrating mons

<email deleted> wrote:
> If more monsters fall through a trap door than can fit on the
> level below, when you go down the stairs, you get the following
> message:
>  "Program in disorder - perhaps you'd better #quit.
>  rloc(): couldn't relocate monster"
> This message seems to appear once for every monster-too-many that
> fell through the hole. I originally found this while
> intentionally completely filling a level with black puddings
> (there was a trap door I didn't know about). I also confirmed it
> in a wiz-mode test using gremlins and water.

[confirmed: moveloop -> deferred_goto -> goto_level ->
 losedogs -> mon_arrive -> rloc -> impossible]

This patch:
- causes rloc() to return TRUE if successful,
  or FALSE if it wasn't.
- adds code to mon_arrive() in dog.c to deal with
  the failed rloc()
- allows the x,y parameters to mkcorpstat() to
  be 0,0 in order to trigger random placement of the
  corpse on the level
- if you define DEBUG_MIGRATING_MONS when you build cmd.c
  then you'll have a debug-mode command #migratemons to
  store the number of random monsters that you specify
  on the migrating monsters chain.

21 years agobuglist followup to pacifying a shopkeeper
cohrs [Fri, 12 Sep 2003 20:08:44 +0000 (20:08 +0000)]
buglist followup to pacifying a shopkeeper
Quoting the buglist: "If shk.c does get modified, I'd
like to see a call to rouse_shk() added at the start of rob_shop().
If the shk wakes up for buying and selling, he ought to wake up for
robbery--even when it's covered by the customer's credit--too."

21 years agoinappropriate pacification of shopkeepers
cohrs [Fri, 12 Sep 2003 17:23:04 +0000 (17:23 +0000)]
inappropriate pacification of shopkeepers
A recent report noted that if you are invisible, teleport into a shop,
steal something, teleport out, and then return, the shopkeeper will become
pacified.  This is because the pacification code occurred even if the
shopkeeper already knew your name, as long as the "Welcome" message had not
yet occurred.  Implement <Someone>'s proposed fix: Before pacifying, either
the visitct must be zero (as per old code) or the customer name must
already be known.  And, of course, the customer name must differ from the
current setting.  This skips the pacification code in those situations
where the shopkeeper learned your name but was not happy about it (which is
what visitct > 0 implies, at least initially).

This also deals with an older bug report where you attack a shopkeeper
while outside the shop and then later enter the shop while the shopkeeper
is in it.  hot_pursuit() sets the customer name, and the new check avoids
pacifying the shopkeeper for the same reason as noted above.

21 years agoMissing FOUNTAIN in minend-3
cohrs [Fri, 12 Sep 2003 16:50:09 +0000 (16:50 +0000)]
Missing FOUNTAIN in minend-3
<Someone> reported a missing FOUNTAIN tag the minend-3 to correspond to one
of the fountains in the map.

21 years agoU614 - Master Kaen death message
cohrs [Fri, 12 Sep 2003 16:20:50 +0000 (16:20 +0000)]
U614 - Master Kaen death message
rewrote the message so it doesn't talk about his body dissolving into gas,
since there's a possibility that he'll leave a corpse.  It now doesn't
mention a body at all, so it's not so bad when he doesn't leave a corpse
either.  The contents are completely changed, and I think it's more in line
with the sort of thing you'd expect from Master Kaen.

21 years agoSolve a number of MacOSX problems.
warwick [Thu, 11 Sep 2003 04:25:52 +0000 (04:25 +0000)]
Solve a number of MacOSX problems.

21 years agoMacOSX can handle >14 character names.
warwick [Thu, 11 Sep 2003 04:23:52 +0000 (04:23 +0000)]
MacOSX can handle >14 character names.
I think the #if is inverted really - what DOES have that limit?

21 years agoAvoid unixisms. On MacOSX, we cannot assume that the user will use
warwick [Thu, 11 Sep 2003 04:22:55 +0000 (04:22 +0000)]
Avoid unixisms. On MacOSX, we cannot assume that the user will use
a command-line option to set their name. Normally they will type
a name if asked - but they won't be asked if we pull their username
as a name.

21 years agoRule for tile2cmp.o needed.
warwick [Thu, 11 Sep 2003 04:21:12 +0000 (04:21 +0000)]
Rule for tile2cmp.o needed.

21 years ago*** empty log message ***
warwick [Thu, 11 Sep 2003 04:19:43 +0000 (04:19 +0000)]
*** empty log message ***

21 years agoA .txt file is easier for the end user.
warwick [Thu, 11 Sep 2003 04:19:02 +0000 (04:19 +0000)]
A .txt file is easier for the end user.

21 years agoWork on BigEndian systems too. Only __ppc__ detected for now (Mac OS X).
warwick [Thu, 11 Sep 2003 04:00:21 +0000 (04:00 +0000)]
Work on BigEndian systems too. Only __ppc__ detected for now (Mac OS X).

21 years agofixes typo
nethack.rankin [Thu, 11 Sep 2003 03:02:54 +0000 (03:02 +0000)]
fixes typo

     Plus a correction for an earlier entry.

21 years agofix U640 - Medusa bug
nethack.rankin [Thu, 11 Sep 2003 02:45:55 +0000 (02:45 +0000)]
fix U640 - Medusa bug

     Described in the newsgroup a while back and recently reported:  if
you had reflection and were invisible and had esp and were blind, Medusa
would turn herself to stone by looking at you.  When you're invisible,
she shouldn't be able to see your source of reflection so shouldn't be
affected by the gaze; that's how things work when you aren't blind but
the relevant code was being skipped when you are.

     Now esp is irrelevant for this and she'll see her reflected gaze
only when she can see you, regardless of whether you see it happen.

21 years agoshopkeeper messages outside the shop
cohrs [Wed, 10 Sep 2003 21:11:21 +0000 (21:11 +0000)]
shopkeeper messages outside the shop
remove_rooms() was trying to be clever and truncate the maximum room bounds
in partially overlapping rooms.  In the process, it would truncate the
bounds of L shaped rooms incorrectly, leaving some locations outside the
bounds with the roomno field set.  Since the maximum bounds really do not
have to actually match the largest extent of the room in the case of
irregular rooms, it was easiest to just remove the code that was performing
the incorrect truncation.  Due to the way remove_room() is coded, this
could result in shopkeeper messages (or, less likely, priest messages,
although that has not been reported yet) occuring for locations to the
right (or the upper/lower right corner) of the MAP on the Bustling Town level.

21 years agoU638 Juiblex's "moat"
nethack.allison [Wed, 10 Sep 2003 01:16:23 +0000 (01:16 +0000)]
U638 Juiblex's "moat"
> NetHack feedback form submitted by
> <email deleted>
> on Tuesday, September 9, 2003 at 06:41:34
> Hi, Just thought I'd point out a sort of inappropriate word
> choice or typo that I came across in Juiblex's Swamp. I got this
> message, after pushing a boulder into the swamp: There is a large
> splash as the boulder falls into the moat. Obviously it's a swamp
> and not a moat so that sounds a bit wrong. It says the same sort
> of thing when I #dip a scroll in the swamp as well.

21 years agocompilation bit
jwalz [Mon, 8 Sep 2003 00:48:37 +0000 (00:48 +0000)]
compilation bit

21 years agosave/bones compatibility info followup
nethack.allison [Sun, 7 Sep 2003 18:19:24 +0000 (18:19 +0000)]
save/bones compatibility info followup

21 years agosave/bones compatibility info followup
nethack.allison [Sun, 7 Sep 2003 18:17:05 +0000 (18:17 +0000)]
save/bones compatibility info followup

21 years ago#U632: Objects in Pits (game behavior)
nethack.allison [Sun, 7 Sep 2003 17:25:50 +0000 (17:25 +0000)]
#U632: Objects in Pits (game behavior)

<Someone> submitted the following bug report:
> An object and a pit are occupying the same square. I try to kick
> the object out of the square, but "You can't kick something
> that's in a pit!"
>
> I step into the square and escape the pit, but I can pick up the
> object, so maybe it's not in the pit after all.
>

This patch does *not* address this part of the bug report:
> If it's in the pit and it's a cockatrice corpse, should I die
> from landing on it when I fall into the pit?

21 years agoruntime bones compatibility info
nethack.allison [Sun, 7 Sep 2003 11:48:43 +0000 (11:48 +0000)]
runtime bones compatibility info

Put the accepted bones file range on the options menu display.
Also adds a missing "if (wizard)" in bones.c

21 years agomissing band
nethack.allison [Sat, 6 Sep 2003 21:33:31 +0000 (21:33 +0000)]
missing band
<Someone> pointed out that I didn't check in the
updated include/extern.h

21 years agomonster birth limits followup
nethack.allison [Sat, 6 Sep 2003 11:01:05 +0000 (11:01 +0000)]
monster birth limits followup

21 years agomonster birth limits exceeded by bones load
nethack.allison [Fri, 5 Sep 2003 20:39:35 +0000 (20:39 +0000)]
monster birth limits exceeded by bones load

Bones loading was only checking to see if a
monster was marked extinct, it wasn't adding
up the born count of a species in the current
game with the number of that species on the
bones level being loaded. That made it possible
to exceed the correct number of nazgul and
erinys via bones.

This adds a common routine called propagate()
that makemon() and restmonchn(ghostly) share,
for incrementing the born count and checking for
extinction, etc.

When a bones level is loaded, restmonchn()
will flag an illegal monster (duplicated unique,
or too many of a species) by setting the
individual monster's mhpmax to the cookie
value DEFUNCT_MONSTER. Before getbones() finishes
loading the bones level, it will purge those
monsters from the chain.

21 years agomore overlay bits
nethack.allison [Fri, 5 Sep 2003 14:59:53 +0000 (14:59 +0000)]
more overlay bits

Although the overlay stuff is destined to be
removed someday, this patch just makes the
use of STATIC_DCL, STATIC_OVL consistent
in the trunk.

[As a side pointless experiment, I was able
 to build a working  8086 port of 3.4.2 after
 this change that worked correctly in limited
 testing right up until it came time to enter
 Ft. Ludios., where it couldn't allocated the
required amount of memory.]

21 years agoRemove vestiges of old overlay source split
nethack.allison [Fri, 5 Sep 2003 13:55:24 +0000 (13:55 +0000)]
Remove vestiges of old overlay source split
[trunk only]

21 years agoRemove vestiges of old overlay source split
nethack.allison [Fri, 5 Sep 2003 02:45:18 +0000 (02:45 +0000)]
Remove vestiges of old overlay source split
[trunk only]

21 years agoU631 - bustling town down stairs
cohrs [Thu, 4 Sep 2003 15:24:15 +0000 (15:24 +0000)]
U631 - bustling town down stairs
correct the region where the down stairs can be placed so they don't show up
in a cut off cave.  If/when the level generator is improved to avoid generating
such caves, the down stairs region could potentially be changed back.

21 years agoU614 student statues were converted to valkyries
nethack.allison [Thu, 4 Sep 2003 10:26:19 +0000 (10:26 +0000)]
U614 student statues were converted to valkyries

21 years agoU613 specifying alignment in win32 and CE (from Yitzhak)
nethack.allison [Wed, 3 Sep 2003 03:57:32 +0000 (03:57 +0000)]
U613 specifying alignment in win32 and CE (from Yitzhak)
> The bug involved using the initalign (and related) indexes into
> the array of alignments as indexes into the respective combo box,
> and these are (apparently) not equivalent. To fix, the combo box
> is queried one by one for the item with the index that produces
> that proper alignment value, and then uses that index found. I
> did not find an API that does this in one step, but this only
> happens once, at dialog initialization.

21 years agoU624 (also in U614) - monk quest grammar
cohrs [Wed, 3 Sep 2003 01:29:13 +0000 (01:29 +0000)]
U624 (also in U614) - monk quest grammar
The first reported 3.4.2 grammar bug.  This one has been there a while.

21 years agoREADME.linux sync
cohrs [Wed, 3 Sep 2003 01:22:09 +0000 (01:22 +0000)]
README.linux sync
update the README.linux to correspond to the version that was included
in the 3.4.2 binary distro.

21 years agoQt/MacOS X tidbit
kmhugo [Wed, 3 Sep 2003 00:16:51 +0000 (00:16 +0000)]
Qt/MacOS X tidbit

The Info.plist file contains vital information about a given
application package.  Rename the file from .pli to .plist (note
that other files in this directory use long extensions).
Also correct and add to some of the information in this file.

21 years agoMac Terminal port tuneup
kmhugo [Tue, 2 Sep 2003 16:06:53 +0000 (16:06 +0000)]
Mac Terminal port tuneup

Submit the last of the changes that were needed to compile the
MacOS X Terminal port.

21 years agoflaming sphere and sliming
cohrs [Tue, 2 Sep 2003 03:58:33 +0000 (03:58 +0000)]
flaming sphere and sliming
Reported to rgrn vs 3.4.1, polymorphing into other flaming monsters cures
sliming, but polymorphing to a flaming sphere did not.

21 years agomonster hp loss with Stormbringer
cohrs [Tue, 2 Sep 2003 03:48:34 +0000 (03:48 +0000)]
monster hp loss with Stormbringer
<Someone> forwarded from rgrn that a monster using Stormbringer would
lose hp when hitting the player.  The sign of the "gain" was reversed due
to subtracting the difference in the wrong order.

21 years agoUnix on MacOSX tidbit
kmhugo [Mon, 1 Sep 2003 02:23:50 +0000 (02:23 +0000)]
Unix on MacOSX tidbit

This old conditional was targeted for Apple compilers in a Unix
environment (probably A/UX, which hasn't been sold in over 10
years).  It now interferes with installations under MacOS X.

21 years agowin32tty: fix lockfile error message
nethack.allison [Mon, 1 Sep 2003 02:03:11 +0000 (02:03 +0000)]
win32tty: fix lockfile error message

21 years agoAdd fixes34.3
nethack.allison [Mon, 1 Sep 2003 01:21:26 +0000 (01:21 +0000)]
Add fixes34.3

21 years agoSynch recent 3.4.2 changes to main trunk
kmhugo [Sat, 30 Aug 2003 00:45:58 +0000 (00:45 +0000)]
Synch recent 3.4.2 changes to main trunk

This is merely a synchronization of recent changes for the
Macintosh Carbon port, which were committed to the 3.4.2
branch, to the main trunk.

21 years agolint removal -- nothing of import
jwalz [Fri, 29 Aug 2003 17:23:19 +0000 (17:23 +0000)]
lint removal -- nothing of import

21 years agostrerror() is ANSI
jwalz [Fri, 29 Aug 2003 16:09:13 +0000 (16:09 +0000)]
strerror() is ANSI
(and not found by default on e.g. SUNOS4 and SVR2)

21 years agobits (from <Someone>)
nethack.allison [Thu, 28 Aug 2003 11:19:08 +0000 (11:19 +0000)]
bits (from <Someone>)

- Guidebook typo
- wizard mode prompt

[...]
> 2/3) In Guidebook* the lines subkeyval (Win32 tty NetHackonly).
> May be used to alter the value of should read subkeyval (Win32
> tty NetHack only). May be used to alter the value of
>
> 3/3) I miss a hint for the new wizmode feature levelteleport by
> menu. Neither wizhelp nor the dialog tell you about it. Maybe if
> (++trycnt == 2) Strcat(qbuf, " [type a number or ?]"); in
> teleport.c:589 could provide a hint.
>
> <Someone>

21 years ago(from <Someone>)
nethack.allison [Thu, 28 Aug 2003 05:52:02 +0000 (05:52 +0000)]
(from <Someone>)

21 years agoversion info (from Yitzhak)
nethack.allison [Thu, 28 Aug 2003 05:46:50 +0000 (05:46 +0000)]
version info (from Yitzhak)

Changes are: Complete copyright notice, Versions using dot format instead of comma format, and nulls at the end of strings (required, at least for Windows 2000).

21 years agoX11 install
cohrs [Tue, 26 Aug 2003 15:11:58 +0000 (15:11 +0000)]
X11 install
Build and install the NetHack.ad file, and change the nethack.sh to append
the HACKDIR to the XUSERFILESEARCHPATH.  This means users do not have to
do anything special to use the NetHack X11 resources, nor does it require
teaching nethack where the X11 app-defaults directory is.  The change also
updates the X11 and linux doc files in a corresponding way.

21 years agoMac port prefix files
kmhugo [Tue, 26 Aug 2003 00:19:58 +0000 (00:19 +0000)]
Mac port prefix files

Support compilation of multiple flavors for the Macintosh:
1.  A Carbon port, text only and backwards-compatible with
    older versions of the MacOS.
2.  A termcap/Unix port for MacOS X only.
3.  A Qt port, tiled and MacOS X only.

The flavor can be selected at compile-time by specifying the
appropriate prefix file for the compiler.

21 years agofix B08001 - stone-to-flesh undoes cancellation
nethack.rankin [Sun, 24 Aug 2003 18:32:58 +0000 (18:32 +0000)]
fix B08001 - stone-to-flesh undoes cancellation

     Prevent succubi from being fully restored via cycles of petrifying
and reviving.  It wasn't just a matter of saving traits; cancellation is
one of the monster traits which is explicitly reset when a monster gets
revived.  I think that probably makes sense, but this will override it
for succubi and incubi to prevent abuse; if they were cancelled at time
of petrification they'll remain cancelled when reanimated.  Likewise for
nymphs; even though the abuse facter isn't present, the cancel effect is
pretty similar for them so keep revivals similar too.

     This saves monster traits for every monster that gets turned into a
statue.  Unlike with corpses there's no stacking involved to make players
notice that each has become unique, so all such statues might as well all
reanimate just like they were instead of as new replacment monsters.

21 years agoBorland build fixes (from Yitzhak)
nethack.allison [Sun, 24 Aug 2003 15:37:50 +0000 (15:37 +0000)]
Borland build fixes (from Yitzhak)

> This patch fixes warnings relating to pointers (using int *
> instead of unsigned int * ), provides prototypes for some
> functions, and adds a missing argument to one of the functions
>
> It also changes a bit in the way flex/bison are used in the
> Borland makefile to allow me to test compilation with those
> utilities using a batch file.

21 years agonttty
nethack.allison [Sat, 23 Aug 2003 14:49:12 +0000 (14:49 +0000)]
nttty
A recent output mode change was causing the
\n and \r characters to be visible on the display.

21 years agowince patch (from <Someone>)
nethack.allison [Fri, 22 Aug 2003 13:21:18 +0000 (13:21 +0000)]
wince patch (from <Someone>)

This patch is both for 3.5.0 and 3.4.2
cesetup.bat did not copy keypad.uu to the build folder. Fixed.

21 years agovms version update
nethack.rankin [Fri, 22 Aug 2003 10:04:12 +0000 (10:04 +0000)]
vms version update

21 years agovms build fix
nethack.rankin [Fri, 22 Aug 2003 09:59:15 +0000 (09:59 +0000)]
vms build fix

     Noticed when trying out the "heck patch", where the name of the file
for the sanctum level was changed and I neglected to update my Makefile to
reflect that:  nothing was noticed if any files were missing when loading
them into a dlb container.  Populating the playground directory for the
non-dlb configuration suffered a similar problem.  Now the VMS playground
setup will issue a warning message if this happens (but not abort the
installation; perhaps it ought to do that as well...).

     Other ports have the same problem.  For example, Unix Makefile.top
relies on file globbing to build the dlb container; if a wildcard pattern
matches no files, dlb won't notice because the shell will have eaten the
offending pattern.  Likewise for its non-dlb configuration, where cp won't
notice.  However, this isn't a very interesting bug because it won't hit
when the distributed Makefiles correspond with the needed data files.