Commit Graph

65 Commits

Author SHA1 Message Date
cohrs
559be58c21 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
2003-09-29 19:24:20 +00:00
nethack.allison
18e971e442 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
2003-09-21 11:56:11 +00:00
nethack.allison
724ac2670c 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.]
2003-09-05 14:59:53 +00:00
nethack.allison
416412f92b Remove vestiges of old overlay source split
[trunk only]
2003-09-05 02:45:18 +00:00
nethack.allison
9ba4d7cf2b DOS bits
On some MSDOS ports, STATIC_OVL doesn't equate
to static, so taking_off in do_wear.c conflicts with the
one in invent.c in those environments.  Somebody
out there might wish to try and build the 16 port and
tune it to work properly someday.
2003-08-04 01:39:31 +00:00
nethack.allison
45460e3f9a more DOS gcc makefile 2003-06-15 15:56:03 +00:00
nethack.allison
abe2701a1c DOS gcc makefile fix 2003-06-15 15:23:13 +00:00
nethack.allison
93ab03cc80 djgpp build instructions
Explicitly mention fil41b.zip as a required djgpp component.
Oddly, some people only pick up part of djgpp, then
complain to us when the Makefile doesn't run as
planned.
2003-06-13 19:57:22 +00:00
nethack.allison
a67ed775cb number_pad (modified from <Someone>'s patch)
The number_pad option can now optionally hold a value
{0,1, 2 } for {off, on, DOS-mode} but plain number_pad and
!number_pad in config files still work as before.

When number_pad:2 is set, iflags.num_pad_mode is set to 1
which triggers the following behaviour:
> '5', M('5') and M('0') are mapped in rhack()
>in cmd.c, only when they are entered as a command. When used as a
>number, like in the 'n' command, no mapping takes place. '0' is
>already mapped to 'i' by the core. The
>only difference [<Someone>] left in (deliberately) is when you press Ctrl-0;
>this used to map to C('i'), which is an invalid command; now
>keep it '0' (which is interpreted as 'i' by the core.)
2003-06-06 03:49:56 +00:00
nethack.allison
37f09d3bb0 MSDOS Makefile fix
prevent "dir /l /b" from getting modified to "dir \l \b"
2003-03-08 23:27:56 +00:00
nethack.allison
71c62ce21c Update contact info 2003-02-22 01:20:14 +00:00
nethack.allison
73d357a647 win32 and msdos recover
Since the ports have SELF_RECOVER defined,
remove the build of recover.exe from the default steps.
You must explicitly use 'make recover' now.
2003-02-17 23:56:40 +00:00
nethack.allison
2a83f1b830 more MSDOS build 2003-02-17 02:55:46 +00:00
nethack.allison
18ea2f8aa5 fix djgpp Makefile 2003-02-15 13:18:39 +00:00
nethack.allison
2d99cb7ed7 win32 and DOS dependency update for 3.4.1 2003-02-14 03:38:50 +00:00
nethack.allison
03456ea341 MSDOS autocompletion fix 2002-12-24 02:20:50 +00:00
nethack.allison
d916769a77 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.
2002-09-10 22:53:18 +00:00
nethack.allison
3a309e5709 yet more djgpp Makefile stuff 2002-08-12 01:27:19 +00:00
nethack.allison
ded4f66822 more djgpp Makefile stuff 2002-08-11 18:31:23 +00:00
nethack.allison
02c9ce9214 msdos Makefile.gcc changes for djgpp
Add syntax that <Someone> introduced  for the Mingw Makefile.gcc
to make it easy to use unix-style path separation throughout
the Makefile.

Put all the .exe files into ../util
Put all the .obj files into o/
2002-08-11 17:23:05 +00:00
nethack.allison
1af06f69cd add date macro to Install.dos 2002-07-24 06:30:21 +00:00
nethack.allison
7acc3393a6 remove Symantec C makefile from distribution for dos 2002-03-30 20:01:09 +00:00
nethack.allison
8b9b53205a Update sys/msdos/Install.dos
- only djgpp build is supported now.
- instructions are only for djgpp
- all other builds have fallen into non-support
2002-03-30 20:00:19 +00:00
nethack.allison
14ec6fe03b some 3.4.1 preparation
Update patchlevel.h
Update some strings from 3.4.0 to 3.4.1.
2002-03-29 06:30:33 +00:00
nethack.allison
9fd9ff3db9 Remove files Pat noticed.
- they are now included in the oldfiles.tgz archive
available in the usual place old/oldfiles.tgz
2002-03-22 11:16:12 +00:00
nethack.allison
0e6495436a change timestamps; tweak a couple of port things 2002-03-17 14:36:57 +00:00
nethack.allison
a6a209edea A couple of patches are required unfortunately
Unfortunately a couple of glitches were encountered during the build of
the DOS binary.

Also, somewhere along the way the ability to separate the debug info
for the win32 tty binary into its own PDB file was removed from
Makefile.msc.  I wasn't aware of that until I went to build the binary,
and discovered that I had no PDB file to stow away for bug
reports.
2002-03-13 07:14:24 +00:00
nethack.allison
742e1e8c90 3.3.2 to 3.4.0 2002-02-04 16:11:00 +00:00
cohrs
e7bdcb157f lava effects for monsters and objects
This patch, based on code sent to us by <Someone> well over a year ago, addresses
bugs recently resurfaced.  Namely, that lava does not generally do anything
to monsters or objects that land in java.  Newly renamed minliquid() handles
both water and lava, and new fire_damage() is used similar to water_damage().
2002-01-20 07:04:18 +00:00
kmhugo
bd49d4a6df Remove files duplicated in devteam module 2002-01-19 05:39:57 +00:00
jwalz
c7f8519fac *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
54cb7ffb47 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
e66acfc6c1 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
3c711dc6a0 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
09aa429a12 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
1abd00af79 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
e324f4c7be *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
996fcff8a7 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
6ca241e87a *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
11d67a64e4 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
bff066357e *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
6e2a056606 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
431f991f13 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
ac717ff5a1 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
08ff352c29 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
6977b3123a *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
0df8885fc7 *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
a527ea7edf *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
f809536eba *** empty log message *** 2002-01-05 21:05:57 +00:00
jwalz
f2938288b2 *** empty log message *** 2002-01-05 21:05:57 +00:00