]> granicus.if.org Git - nethack/log
nethack
9 years agotty menu hack for ':'
PatR [Sat, 28 Mar 2015 01:24:53 +0000 (18:24 -0700)]
tty menu hack for ':'

Looting a container generates a menu which contains ': - look inside'
but the recent change to make ':' be a menu command for selecting
items which match a search string made it impossible to pick that item.
(Well, I suppose you could enter a search string which matched it, but
that's a nuisance compared to just directly picking a choice.)  This
makes menu selection for tty give precedence to menu choice characters
over mapped menu commands when some character happens to be both.  I'm
not sure whether it ought to be expended to group accelerators too, so
didn't do that.

There's bound to be a better way to do this, but it works.

9 years agosubsitution gone amuck
nhmall [Fri, 27 Mar 2015 23:56:04 +0000 (19:56 -0400)]
subsitution gone amuck
 Changes to be committed:
modified:   doc/Guidebook.mn

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Fri, 27 Mar 2015 23:48:17 +0000 (19:48 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agomore doc updates
nhmall [Fri, 27 Mar 2015 23:47:17 +0000 (19:47 -0400)]
more doc updates
Changes to be committed:
modified:   dat/history
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

9 years agoAutomatically find monster to target with polearm
Pasi Kallinen [Fri, 27 Mar 2015 22:32:54 +0000 (00:32 +0200)]
Automatically find monster to target with polearm

If there's only one suitable monster within range, automatically
suggest it for targeting with the polearm

9 years agoRemember position of monster you hit with polearm
Pasi Kallinen [Fri, 27 Mar 2015 21:29:30 +0000 (23:29 +0200)]
Remember position of monster you hit with polearm

If you hit a monster with a polearm, following polearm applications
will try to automatically suggest the monster's position

9 years agoUpdate fixes35.0 with t-shirt text disclose
Pasi Kallinen [Fri, 27 Mar 2015 20:13:35 +0000 (22:13 +0200)]
Update fixes35.0 with t-shirt text disclose

9 years agoUpdate fixes35.0 with reading items
Pasi Kallinen [Fri, 27 Mar 2015 20:11:41 +0000 (22:11 +0200)]
Update fixes35.0 with reading items

9 years agoAllow reading many more items
Pasi Kallinen [Fri, 27 Mar 2015 19:04:01 +0000 (21:04 +0200)]
Allow reading many more items

You can now also read alchemy smocks, credit cards, cans of grease,
magic markers, gold, the Orb of Fate, and candy bars.

9 years agoShow t-shirt text at end of game inventory disclose
Pasi Kallinen [Fri, 27 Mar 2015 14:08:06 +0000 (16:08 +0200)]
Show t-shirt text at end of game inventory disclose

Restricting the text display only to the end of game disclose,
so it doesn't clutter the inventory during gameplay and so that
the readability of t-shirts is not given away.

9 years agoTTY: Guard against impossible x coord
Pasi Kallinen [Fri, 27 Mar 2015 13:29:54 +0000 (15:29 +0200)]
TTY: Guard against impossible x coord

If a menu item was longer than terminal width, the menu wasn't
cleared away after it was finished with.  This easily happened
when an inventory item was named.

9 years agoFix passing non-static buffer out of scope
Pasi Kallinen [Fri, 27 Mar 2015 13:12:04 +0000 (15:12 +0200)]
Fix passing non-static buffer out of scope

9 years agoobjnam formatting for bag of tricks
PatR [Fri, 27 Mar 2015 07:21:40 +0000 (00:21 -0700)]
objnam formatting for bag of tricks

Bag of tricks that had been used at least once was being described
as "empty" regardless of charge count, because it always fails the
Has_contents() test.  After half this patch fixed that, it started
being flagged as "empty" as soon as the last charge was used rather
than after attempting to use it again after that, since 'cknown' was
being set whenever it was used.  Only set that flag when applying
the bag has been observed to fail.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Thu, 26 Mar 2015 16:41:26 +0000 (12:41 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agosync docs
nhmall [Thu, 26 Mar 2015 16:40:22 +0000 (12:40 -0400)]
sync docs

Pasi pointed it out that the SYSCF stuff was only added
to Guidebook.mn not Guidebook.tex

9 years agoCatch up and sync Guidebooks
Pasi Kallinen [Thu, 26 Mar 2015 14:46:41 +0000 (16:46 +0200)]
Catch up and sync Guidebooks

9 years agoFix typo in Guidebook.tex
Pasi Kallinen [Thu, 26 Mar 2015 14:14:33 +0000 (16:14 +0200)]
Fix typo in Guidebook.tex

9 years agonames of public servers and tournament contrib
nhmall [Thu, 26 Mar 2015 12:05:23 +0000 (08:05 -0400)]
names of public servers and tournament contrib
 Changes to be committed:
modified:   dat/history

9 years agoFix Guidebook typos
Pasi Kallinen [Thu, 26 Mar 2015 09:41:05 +0000 (11:41 +0200)]
Fix Guidebook typos

9 years agoFix typos in fixes35.0
Pasi Kallinen [Thu, 26 Mar 2015 06:44:24 +0000 (08:44 +0200)]
Fix typos in fixes35.0

9 years agofix acid_damage() crash
PatR [Thu, 26 Mar 2015 01:04:50 +0000 (18:04 -0700)]
fix acid_damage() crash

My dog bit an acid blob and triggered a crash, caught by SYSCF panictrace
but yielding confusing information.  The backtrace included a call from
'rustm()+N' that turned out to be passivemm(), which was deferencing a
null pointer since no weapon was involved.

9 years agoFix 'fetch' syntax, include sparkly 'git log' trick
Derek S. Ray [Wed, 25 Mar 2015 21:07:10 +0000 (17:07 -0400)]
Fix 'fetch' syntax, include sparkly 'git log' trick

And bolt a couple more Win32-folders onto .gitignore.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
Pasi Kallinen [Wed, 25 Mar 2015 20:15:16 +0000 (22:15 +0200)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoShow object symbols in menu headings
Pasi Kallinen [Wed, 25 Mar 2015 20:13:28 +0000 (22:13 +0200)]
Show object symbols in menu headings

... in menus where those object symbols act as menu accelerators.
Toggleable via "menu_objsyms" boolean option, defaults to off.

9 years agoFix a memory leak on termination.
Sean Hunt [Wed, 25 Mar 2015 18:34:03 +0000 (14:34 -0400)]
Fix a memory leak on termination.

Found by Alex Smith.

9 years agono hiding under nothing
nhmall [Wed, 25 Mar 2015 02:07:16 +0000 (22:07 -0400)]
no hiding under nothing

On 3/23/2015 6:41 PM, a bug reporter wrote:
> When you're hiding under an item (e.g. via garter snake polyform), and
> that item gets polyshuddered into nonexistence, you continue hiding
> (under nothing).

This addresses the "hiding under nothing" bug, but does not
address this flavor comment also included in the report:
> (Incidentally, it's a bit weird that you use > to aim at items that are
> flavorwise above you at the time.)

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Tue, 24 Mar 2015 23:29:11 +0000 (19:29 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agofix invalid pointer dereference in morguemon
nhmall [Tue, 24 Mar 2015 23:20:14 +0000 (19:20 -0400)]
fix invalid pointer dereference in morguemon

On 3/23/2015 6:41 PM, a bug reporter wrote:
> If the game generates a graveyard, the graveyard places a normal
> demon, but all normal demons are extinct at the time, then morguemon (at
> mkroom.c line 423) indexes mons with NON_PM (the return value of
> ndemon() if it can't find a reference), which is an invalid pointer
> dereference. According to the testbench, this mostly seems to happen on
> dlvl 12.

This fixes the code violation, but the logic will now drop down to the
ghost/wraith/zombie code when that happens.

Is that desireable, or should something else happen (for variety)?

9 years agoNHsubst bugfixes and hack for whitespace errors.
keni [Tue, 24 Mar 2015 22:29:02 +0000 (18:29 -0400)]
NHsubst bugfixes and hack for whitespace errors.

9 years agoAdd an option to give feedback when bumping walls
Pasi Kallinen [Tue, 24 Mar 2015 20:01:29 +0000 (22:01 +0200)]
Add an option to give feedback when bumping walls

Boolean option "mention_walls", defaults to off.
Useful for blind players.

9 years agoAdd more hallu sounds monsters make when hit
Pasi Kallinen [Tue, 24 Mar 2015 19:14:49 +0000 (21:14 +0200)]
Add more hallu sounds monsters make when hit

9 years agoFix use-after-frees on dipped objects.
Sean Hunt [Sat, 21 Mar 2015 15:55:30 +0000 (11:55 -0400)]
Fix use-after-frees on dipped objects.

9 years ago{DEC,IBM,MAC}graphics (2 of 2: unixmain)
PatR [Mon, 23 Mar 2015 01:29:37 +0000 (18:29 -0700)]
{DEC,IBM,MAC}graphics (2 of 2: unixmain)

Unix command line processing required that the initial 'd' of
"-DECgraphics" be lowercase so that it wouldn't conflict with -D for
wizard mode.  This retains -D for wizard mode and now also recognizes
"-debug" (case insensitive, but full 5 letters necessary) for the same
thing, and allows "-DECgraphics" to be capitalized as it is throughout
the rest of the program (actual matching is case-insensitive, so "-dec"
and "-decgraphics" still work.  It now requires that anything  after
"DEC" match the rest of that string instead of accepting "-DECanthing"
as a synonym for "-DECgraphics".  Likewise for "-IBMgraphics":  when
more than 3 letters are supplied, the extra ones must be an initial
substring of "graphics" rather than arbitrary characters.

The raw_printf() warnings don't actually work as intended, but that
isn't a change from the old behavior so I've left them in for now.

9 years ago{DEC,IBM,MAC}graphics (1 of 2: core)
PatR [Mon, 23 Mar 2015 01:22:36 +0000 (18:22 -0700)]
{DEC,IBM,MAC}graphics (1 of 2: core)

DECgraphics, IBMgraphics, and MACgraphics used to be recognized when
at least 3 letters were supplied back when they were true boolean
options.  When they got demoted to shortcuts for the symset option,
they started needing 10 (DEC and IBM) or all 11 (MAC), otherwise
triggering "bad syntax in NETHACKOPTIONS" (or config file).  Revert
to having the first three letters be sufficient.

9 years agoremove stale feature alert
nhmall [Sun, 22 Mar 2015 22:11:49 +0000 (18:11 -0400)]
remove stale feature alert

This old feature alert from 3.3.0 is pretty stale, so remove
if from the code because everybody has probably suppressed
it by now.

/* Because 'Q' used to be quit... */
if (flags.suppress_alert < FEATURE_NOTICE_VER(3,3,0))
pline("Note: Please use #quit if you wish to exit the game.");

9 years agoAdd note about feature alert mechanism
nhmall [Sun, 22 Mar 2015 22:04:18 +0000 (18:04 -0400)]
Add note about feature alert mechanism

9 years agoFile for explaining code quirks/features/caveats
nhmall [Sun, 22 Mar 2015 19:05:18 +0000 (15:05 -0400)]
File for explaining code quirks/features/caveats

- added NOCWD_ASSUMPTIONS and PREFIXES_IN_USE section.

9 years agoadjust PREFIXES_IN_USE for SYSCF
nhmall [Sun, 22 Mar 2015 15:11:41 +0000 (11:11 -0400)]
adjust PREFIXES_IN_USE for SYSCF

9 years agooptions and config file handling
nhmall [Sun, 22 Mar 2015 14:44:36 +0000 (10:44 -0400)]
options and config file handling

With SYSCF, the SYSCF_FILE name was overwriting the
default config file name making it unavailable for
subsequent user config file options handling.

- Keep the name of the last config file successfully opened.
- Do it without orphaning the default config file name needed
  for the next pass.

9 years agofix "mysterious force" probabilities in do.c comment
PatR [Sun, 22 Mar 2015 02:24:08 +0000 (19:24 -0700)]
fix "mysterious force" probabilities in do.c comment

Reported by Alex, the probabilites shown in the comment about the effect
of the mysterious force have been wrong ever since they were added 20 or
so years ago.  Lawfuls and neutrals are much more likely to go down just
one level rather than 2 or 3.

9 years agowishing fix for "eyes"
PatR [Sat, 21 Mar 2015 22:36:47 +0000 (15:36 -0700)]
wishing fix for "eyes"

No, not a blindness cure. :-}  Post-3.4.3 revisions to makesingular()
inadvertently made it impossible to successfully wish for "the Eyes
of the Overworld" because the string got changed into "the Eye of the
Overworld" which doesn't match anything.  So don't singularize "eyes".

(After this fix, wishing for "the Eyes of the Aethiopica" no longer
yields the Eye of same, but I think that's the correct behavior.)

9 years agoput mystery line back but !WIN32
nhmall [Sat, 21 Mar 2015 20:17:17 +0000 (16:17 -0400)]
put mystery line back but !WIN32

Since that line of code is used by a lot of different ports, I decided to
recant its removal and just add #ifdef to ensure it isn't compiled on WIN32.

I think other ports might encounter the same issue where the first pass with
filename set to 'sysconf', is then going to overwrite the hard-coded user
config file name, but I can't fix or test those so for those ports, it
will be now be back the way it was.

9 years agoremove a troublesome line of code
nhmall [Sat, 21 Mar 2015 20:01:03 +0000 (16:01 -0400)]
remove a troublesome line of code

Whenever SYSCF was enabled on Windows, the option
processing would go bonkers with illegal options
at startup. I noticed it months ago, and Derek
had it happen the other evening.

It turns out, the hard-coded 'defaults.nh' setting
was being overwritten with the name sysconf on
the first SET_IN_SYS pass, so all subsequent passes
were re-opening the SYSC_FILE instead of the
user config file.

I opted to take it out as I couldn't ascertain
why it was there in the first place.

9 years agothrow in a windows sysconf skeleton
nhmall [Sat, 21 Mar 2015 19:54:30 +0000 (15:54 -0400)]
throw in a windows sysconf skeleton

9 years agoa sys/winnt/Makefile.msc update
nhmall [Sat, 21 Mar 2015 19:50:03 +0000 (15:50 -0400)]
a sys/winnt/Makefile.msc update

9 years agofix SYSCF so that things build when first defined
nhmall [Sat, 21 Mar 2015 19:38:31 +0000 (15:38 -0400)]
fix SYSCF so that things build when first defined

Things won't build for ports that first
define SYSCF.

This moves assure_syscf_file() from unixmain.c
to files.c and adjusts extern.h to get it
out from under #ifdef UNIX.

The call to assure_syscf_file() in options.c was
only #ifdef SYSCF, SYSCF_FILE and not UNIX,
so new ports #defining SYSCF would get an erro.

assure_syscf_file() will be utilized by mswin
when SYSCF is defined.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sat, 21 Mar 2015 14:53:42 +0000 (10:53 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoUpdate hacklib func comment doc
Pasi Kallinen [Sat, 21 Mar 2015 14:49:31 +0000 (16:49 +0200)]
Update hacklib func comment doc

9 years agoobj change to support some upcoming work
nhmall [Sat, 21 Mar 2015 14:46:11 +0000 (10:46 -0400)]
obj change to support some upcoming work

This is an enabling patch for upcoming work. It breaks
save/bones so editlevel is incremented.

I'd like to a second overloadable int field in struct obj,
instead of just the one that is typically overloaded - corpsenm.

The second one can be used for things that are being tallied
up as opposed to a static one time assignment for reference/linkage
purposes.

The differentiation will allow both uses to co-exist for the
same object.

9 years agoMake HoOA alignment change depend on object ID
Pasi Kallinen [Sat, 21 Mar 2015 11:40:07 +0000 (13:40 +0200)]
Make HoOA alignment change depend on object ID

The same Helm of opposite alignment will always make
the same alignment change for neutrals.

9 years agoMore C343-108: Handle "rub on the stone"
Pasi Kallinen [Sat, 21 Mar 2015 09:03:54 +0000 (11:03 +0200)]
More C343-108: Handle "rub on the stone"

9 years agomore mswin cmdline Makefile tweaks
nhmall [Sat, 21 Mar 2015 02:06:28 +0000 (22:06 -0400)]
more mswin cmdline Makefile tweaks

9 years agoFix C343-108 (e- leaves prompt on screen)
Pasi Kallinen [Fri, 20 Mar 2015 17:25:19 +0000 (19:25 +0200)]
Fix C343-108 (e- leaves prompt on screen)

You'll get "You mime eating something."

9 years agoacid explosion messages from water_damage()
PatR [Thu, 19 Mar 2015 22:54:17 +0000 (15:54 -0700)]
acid explosion messages from water_damage()

Restore the variant phrasing used when more than one stack of potions of
acid explode while being inflicted with water damage.  First message:
"a potion explodes" or "some potions explode"; second and subsequent
messages: "another potion explodes" or "more potions explode".  This
trivial feature stopped working when erosion handling was overhauled and
old water_damage was split into current water_damage_chain+water_damage.

Augment the message so that vague "potion" is only used when the object's
dknown flag isn't set (ie, object hasn't been seen yet).  Use "<color>
potion" or "potion of acid" otherwise, depending upon whether such potions
have been fully discovered.

9 years agoAdd lots of new random epitaphs
Pasi Kallinen [Thu, 19 Mar 2015 20:01:16 +0000 (22:01 +0200)]
Add lots of new random epitaphs

9 years agoAdd some new random engravings
Pasi Kallinen [Thu, 19 Mar 2015 19:13:24 +0000 (21:13 +0200)]
Add some new random engravings

9 years agoAdd lots of new hallu monsters
Pasi Kallinen [Thu, 19 Mar 2015 16:43:35 +0000 (18:43 +0200)]
Add lots of new hallu monsters

9 years agoSave xlogfile time_t fields correctly
Pasi Kallinen [Thu, 19 Mar 2015 15:41:14 +0000 (17:41 +0200)]
Save xlogfile time_t fields correctly

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Thu, 19 Mar 2015 03:01:34 +0000 (23:01 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoupdate cmdline Makefile
nhmall [Thu, 19 Mar 2015 03:00:46 +0000 (23:00 -0400)]
update cmdline Makefile

9 years agoadd bogusmon,engrave,epitaph to dat/.gitignore
PatR [Thu, 19 Mar 2015 02:24:43 +0000 (19:24 -0700)]
add bogusmon,engrave,epitaph to dat/.gitignore

9 years agoxlogfile tweak to avoid forcing ANSI C
PatR [Thu, 19 Mar 2015 02:21:29 +0000 (19:21 -0700)]
xlogfile tweak to avoid forcing ANSI C

Avoid the C89/C90 feature of implicit concatentation of string literals.
XLOG_SEP handling becomes clumsier but will work with pre-ANSI compilers.

9 years agoMove some hard-coded string arrays into data files.
Pasi Kallinen [Wed, 18 Mar 2015 20:05:10 +0000 (22:05 +0200)]
Move some hard-coded string arrays into data files.

Random epitaphs, engravings and hallucinatory monsters now
live in text data files.

9 years agoPrevent segfault, water_damage may get a NULL obj
Pasi Kallinen [Wed, 18 Mar 2015 19:40:54 +0000 (21:40 +0200)]
Prevent segfault, water_damage may get a NULL obj

9 years agoMerge branch 'paxed-xlogfile'
Pasi Kallinen [Wed, 18 Mar 2015 16:57:52 +0000 (18:57 +0200)]
Merge branch 'paxed-xlogfile'

9 years agoStart to prepare dat/history for release
nhmall [Wed, 18 Mar 2015 02:40:57 +0000 (22:40 -0400)]
Start to prepare dat/history for release

This gets the history started. Please review/correct/improve and
fill in the various <FIXME> items I've flagged.

9 years agoMore getpos improvements
Pasi Kallinen [Tue, 17 Mar 2015 19:22:43 +0000 (21:22 +0200)]
More getpos improvements

Look up remembered dungeon features, not user-visible glyphs,
and ignore uninteresting features (room, corridor and wall tiles).

Original patch by Patric Mueller, from UnNetHack

9 years agosome lint cleanup
PatR [Tue, 17 Mar 2015 02:22:49 +0000 (19:22 -0700)]
some lint cleanup

9 years agoallow DEBUGFILES to be overridden via getenv()
PatR [Mon, 16 Mar 2015 22:28:01 +0000 (15:28 -0700)]
allow DEBUGFILES to be overridden via getenv()

If getenv("DEBUGFILES") yields a value then it takes precedence over
sysconf.DEBUGFILES or sys.c's #define DEBUGFILES.  (It probably should
only be controlled via environment since it is not a system-wide
attribute, but I haven't taken out the SYSCF handling for it.)

9 years agofinally remember to add the 'nh-' versions
Derek S. Ray [Mon, 16 Mar 2015 21:26:31 +0000 (17:26 -0400)]
finally remember to add the 'nh-' versions

9 years agodungeoneers update March 16, 2015
nhmall [Mon, 16 Mar 2015 10:04:43 +0000 (06:04 -0400)]
dungeoneers update March 16, 2015

9 years agofix #H3724 - gold pile stacking bug
PatR [Mon, 16 Mar 2015 09:29:10 +0000 (02:29 -0700)]
fix #H3724 - gold pile stacking bug

     Bug report included a pointer to a fix; this patch is a superset.
Gold pieces dropped on an altar by the player got their bknown flag set,
which is incorrect since bless/curse doesn't apply to coins.  If a
monster (in reported case, a slain temple priest) dropped gold there too
then the two stacks wouldn't merge.  For the normal !GOLDOBJ config, the
problem goes away as soon as the gold gets picked up.  I didn't test for
GOLDOBJ but think two inventory slots containing gold can result.

     The superset part is to not break agnostic conduct by dropping gold
on an altar since no information is revealed when doing that.

[This was one of the very last patches checked into the old cvs repository,
where the somewhat out of date message above was accidentally omitted.]

9 years agofree 'sysopt' strings upon termination
PatR [Mon, 16 Mar 2015 09:03:40 +0000 (02:03 -0700)]
free 'sysopt' strings upon termination

9 years agoDEBUG/debugpline() fixup
PatR [Mon, 16 Mar 2015 01:02:26 +0000 (18:02 -0700)]
DEBUG/debugpline() fixup

 * Replace variadic debugpline() with fixed argument debugpline0(str),
   debugpline1(fmt,arg), and so on so that C99 support isn't required;
 * showdebug() becomes a function rather than a macro and handles a
   bit more;
 * two debugpline() calls in light.c have been changed to impossible();
 * DEBUGFILES macro (in sys.c) can substitute for SYSCF's DEBUGFILES
   setting in !SYSCF configuration (I hope that's temporary).

9 years agoSome few updates/additions; clean up formatting
Derek S. Ray [Sun, 15 Mar 2015 18:28:01 +0000 (14:28 -0400)]
Some few updates/additions; clean up formatting

9 years agowithdraw fixes35.0 part of prior commit
nhmall [Sun, 15 Mar 2015 16:59:34 +0000 (12:59 -0400)]
withdraw fixes35.0 part of prior commit

There was actually a fixes35.0 entry further down that covered off
that particular entry already which I missed first time around.

> many instances of physical damage were not taking Half_physical_damage
> into account when reducing your hitpoints

9 years agocatch up on half-physical damage docs
nhmall [Sun, 15 Mar 2015 16:36:45 +0000 (12:36 -0400)]
catch up on half-physical damage docs

This is catching up on some things that were changed
in development years ago that Dave C. suggested be
documented.

For the record:
-The things that were evaluated and ruled out
are now documented in include/youprop.h so they don't
come up again.

- The things that were evaluated and deemed to be susceptible
to the intrinsic and thus led to a modification in the code
are listed below in this commit message.

Modifications:
- A crystal ball exploding on being applied
- Artifacts' blasting
- Being a fish out of water
- Being hit by Mjollnir on the return
- Being thwacked by an iron ball chained to you
- Boiling/freezing potions
- Broken wands
- Bumping head on ceiling by cursed levitation
- Burning (un)holy water
- Chest/door/tin traps
- Dipping a lit lamp into a potion of oil
- Exploding rings and wands (under all circumstances)
- Exploding spellbooks
- Falling downstairs
- Falling into a (spiked) pit
- Falling off or failing to mount a steed
- Falling on a sink while levitating
- Getting squished in a pit under a boulder
- Hitting your foot with a bullwhip
- Hitting yourself with your pick-axe
- Hooking yourself with a grappling hook
- iron-ball-pulling yourself out of a bear trap
- Jumping/Newton's-Thirding into something solid
- Kicking something that makes you go "Ouch!"
- Land mine explosion
- Sitting in a spiked pit
- Stinking cloud damage
- Thrown potion (bottle)
- Zapping yourself with a wand, horn or spell
- Jumping yourself out of a bear trap

9 years agoDeath talks in CAPITAL LETTERS
Pasi Kallinen [Sun, 15 Mar 2015 07:53:34 +0000 (09:53 +0200)]
Death talks in CAPITAL LETTERS

9 years agoAdditional obstruction messaging fixup
nhmall [Sat, 14 Mar 2015 13:43:07 +0000 (09:43 -0400)]
Additional obstruction messaging fixup

9 years agofix messaging in obstructed() in lock.c
nhmall [Sat, 14 Mar 2015 02:27:09 +0000 (22:27 -0400)]
fix messaging in obstructed() in lock.c

From ais523's recent list of bugs:
If a long worm tail is blocking the door, and you're blind and not
telepathic, attempting to close the door marks the position of its head.

From an email received in late September 2014 before the git conversion:
> I was trying to close a door, not noticing that there was a garter
> snake there, and this message resulted:
> The garter snake stands in the way!
> I haven't tried it with any other monsters without feet, but
> "stands in the way" appears to be the wrong way to describe
> this situation...

Both of the above were found in the same function in lock.c

9 years ago"swallowed whole" was preceded by "You bite into"
nhmall [Fri, 13 Mar 2015 11:33:32 +0000 (07:33 -0400)]
"swallowed whole" was preceded by "You bite into"

Another reported by ais523:
The death message "swallowed %s whole" is preceded by
"You bite into %s."; these contradict.

9 years agoabuse wisdom in keeping with Rider eating msg
nhmall [Fri, 13 Mar 2015 05:02:09 +0000 (01:02 -0400)]
abuse wisdom in keeping with Rider eating msg

The death message for eating a Rider is "unwisely tried to eat...", but
it doesn't abuse Wisdom (potentially relevant if you lifesave)

9 years agoInitial version of simple recipes file
Derek S. Ray [Fri, 13 Mar 2015 02:47:44 +0000 (22:47 -0400)]
Initial version of simple recipes file

9 years agoAdd Extended Logfile
Pasi Kallinen [Thu, 12 Mar 2015 19:35:04 +0000 (21:35 +0200)]
Add Extended Logfile

9 years agoFix warnings
Pasi Kallinen [Thu, 12 Mar 2015 15:57:13 +0000 (17:57 +0200)]
Fix warnings

9 years agocharge for a boulder that fills a pit in shop
nhmall [Thu, 12 Mar 2015 03:04:02 +0000 (23:04 -0400)]
charge for a boulder that fills a pit in shop

 Changes to be committed:
modified:   src/do.c

From the email sent by ais523 earlier:
> You aren't charged for digging a pit below an unpaid boulder
> (causing the boulder to fill the pit).

9 years agofrom ais523 list: charge for boulder filling pit
nhmall [Thu, 12 Mar 2015 01:57:36 +0000 (21:57 -0400)]
from ais523 list: charge for boulder filling pit

9 years agoTTY: Implement the menu_search command
Pasi Kallinen [Wed, 11 Mar 2015 19:56:12 +0000 (21:56 +0200)]
TTY: Implement the menu_search command

When in a menu that allows selecting entries, press ':'
to enter any text. Entries that match the text (via pmatch)
will be toggled.

9 years agoAdd MAX_STATUENAME_RANK sysconf setting
Pasi Kallinen [Wed, 11 Mar 2015 17:56:34 +0000 (19:56 +0200)]
Add MAX_STATUENAME_RANK sysconf setting

MAX_STATUENAME_RANK tells how many score file entries to use
for random statue names.

9 years agogetpos improvements: automatic description
Pasi Kallinen [Wed, 11 Mar 2015 15:16:05 +0000 (17:16 +0200)]
getpos improvements: automatic description

Pressing '@' will move the cursor on top of the hero.
Pressing '#' will toggle automatic description mode, where
the feature under the cursor is automatically described
when the cursor is moved.

9 years agocatch up on some fixes entries
nhmall [Tue, 10 Mar 2015 22:34:01 +0000 (18:34 -0400)]
catch up on some fixes entries

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Tue, 10 Mar 2015 22:02:29 +0000 (18:02 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agodo_look() in post-3.4.3 code fixes entry
nhmall [Tue, 10 Mar 2015 22:00:49 +0000 (18:00 -0400)]
do_look() in post-3.4.3 code fixes entry

9 years agoOne VS Makefile for Nethack that works with VS2010-VS2015
nhmall [Tue, 10 Mar 2015 18:25:54 +0000 (14:25 -0400)]
One VS Makefile for Nethack that works with VS2010-VS2015

9 years agoAdd boolean option "bones"
Pasi Kallinen [Tue, 10 Mar 2015 17:48:04 +0000 (19:48 +0200)]
Add boolean option "bones"

Setting bones off prevents saving and loading bones files.

9 years agoFix GENERIC_USERNAMES thinko
Pasi Kallinen [Tue, 10 Mar 2015 15:30:24 +0000 (17:30 +0200)]
Fix GENERIC_USERNAMES thinko

9 years agotypo in format string on previous commit
nhmall [Tue, 10 Mar 2015 02:11:49 +0000 (22:11 -0400)]
typo in format string on previous commit

9 years agomore do_look() glyph usage without it being set properly
nhmall [Tue, 10 Mar 2015 02:05:48 +0000 (22:05 -0400)]
more do_look() glyph usage without it being set properly
 Changes to be committed:
modified:   src/pager.c

When the previous occurrence that triggered a segfault
was fixed, I didn't check for more of them. It turns out there
were more instances.

This also removes some dead code.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Tue, 10 Mar 2015 01:19:37 +0000 (21:19 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agofix a segfault in mapglyph reported by Pasi earlier today
nhmall [Tue, 10 Mar 2015 01:08:26 +0000 (21:08 -0400)]
fix a segfault in mapglyph reported by Pasi earlier today
 Changes to be committed:
modified:   src/pager.c

Steps to reproduce the reported segfault:
Use / command, answer n, press space and enter

In do_look() variable glyph is only set to a proper
value if using the screen (from_screen) or the
mouse (clicklook).

On the code path that triggered the segfault,
glyph was being passed to mapglyph with a random
arbitrary value.

If glyph had been initialized at the start of
do_look(), it would have prevented the segfault,
but would have always displayed a giant ant or
something silly instead of the correct thing.

Don't use glyph except under
from_screen || clicklook.