]> granicus.if.org Git - nethack/log
nethack
9 years agoShow level annotation when overwriting existing one
Pasi Kallinen [Sun, 26 Apr 2015 08:10:34 +0000 (11:10 +0300)]
Show level annotation when overwriting existing one

Idea by Chris Smith, via UnNetHack

9 years agoMung annotation spaces
Pasi Kallinen [Sun, 26 Apr 2015 07:57:21 +0000 (10:57 +0300)]
Mung annotation spaces

9 years agoShow level annotation on level entry
Pasi Kallinen [Sun, 26 Apr 2015 07:46:38 +0000 (10:46 +0300)]
Show level annotation on level entry

Idea by Chris Smith, via Unnethack

9 years agocomment termination bit
nhmall [Sat, 25 Apr 2015 19:49:14 +0000 (15:49 -0400)]
comment termination bit

9 years agocheckfile protection from caller
nhmall [Sat, 25 Apr 2015 14:51:07 +0000 (10:51 -0400)]
checkfile protection from caller
 Changes to be committed:
modified:   src/pager.c

9 years agoShow only the short automatic glyph description
Pasi Kallinen [Sat, 25 Apr 2015 12:19:13 +0000 (15:19 +0300)]
Show only the short automatic glyph description

When you turn on the automatic description of a glyph under cursor,
we want to show the short description of what glyph it actually is.
The long full description of all possibilities is far too long, so
may cause more-prompts, and is awkward for blind players.

9 years agoAlso allow q at the Itemized billing -prompt
Pasi Kallinen [Sat, 25 Apr 2015 09:56:51 +0000 (12:56 +0300)]
Also allow q at the Itemized billing -prompt

Original change via AceHack by Alex Smith

9 years agoisspace() usage
PatR [Sat, 25 Apr 2015 09:11:13 +0000 (02:11 -0700)]
isspace() usage

Replace most uses of isspace() with a simple test for ' ' after
processing the string buffer with mungspaces (which replaces tab
with space, converts instances of consecutive whitespace into a
single space, and removes leading and trailing spaces).  The uses
where this wasn't done now cast their argument to (uchar) so that
platforms with signed chars will never pass negative values to it.

I didn't mess with the menu coloring code (except for casts to the
isspace() argument); it almost certainly could benefit from using
mungspaces.  I did mess with the symset processing quite a bit,
and hope I haven't accidentally broken anything.  Default symbols
and DECgraphics symbols still parse and display ok, so the rest of
dat/symbols should be ok too.  I didn't test symbols in the user's
config file because I don't remember how that's supposed to work.

9 years agoFix adding doors to levels
Pasi Kallinen [Sat, 25 Apr 2015 09:00:39 +0000 (12:00 +0300)]
Fix adding doors to levels

9 years agoFix out-of-map condition in buzz
Pasi Kallinen [Sat, 25 Apr 2015 03:24:36 +0000 (06:24 +0300)]
Fix out-of-map condition in buzz

9 years agodo_look fix fix
PatR [Fri, 24 Apr 2015 23:07:00 +0000 (16:07 -0700)]
do_look fix fix

Avoid initializer for auto-class array since many pre-ANSI compilers
didn't support that.  Also, when ESC is used to cancel inventory
selection, don't continue on searching for that selection in invent.

9 years agofix an observed stack corruption
nhmall [Fri, 24 Apr 2015 15:23:07 +0000 (11:23 -0400)]
fix an observed stack corruption
 Changes to be committed:
modified:   src/pager.c

9 years agoforce date change (another mail test)
keni [Fri, 24 Apr 2015 14:11:17 +0000 (10:11 -0400)]
force date change (another mail test)

9 years agoand fill in the line (another mail test)
keni [Fri, 24 Apr 2015 14:01:00 +0000 (10:01 -0400)]
and fill in the line (another mail test)

9 years agoadd a date line (another mail test)
keni [Fri, 24 Apr 2015 13:56:24 +0000 (09:56 -0400)]
add a date line (another mail test)

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Fri, 24 Apr 2015 13:33:35 +0000 (09:33 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoenable subst for all DEVEL/*.txt (really another mail test)
keni [Fri, 24 Apr 2015 13:32:50 +0000 (09:32 -0400)]
enable subst for all DEVEL/*.txt (really another mail test)

9 years agoStop travel or run when you get hungry
Pasi Kallinen [Fri, 24 Apr 2015 13:24:50 +0000 (16:24 +0300)]
Stop travel or run when you get hungry

9 years agoforce the date (really testing email)
keni [Fri, 24 Apr 2015 13:11:33 +0000 (09:11 -0400)]
force the date (really testing email)

9 years agomore data.base lookup tidbits
PatR [Fri, 24 Apr 2015 09:18:07 +0000 (02:18 -0700)]
more data.base lookup tidbits

Still doesn't address the reported stack corruption.

* 'alt' points to a buffer which has already been processed by
  lcase(), so remove the redundant call to that routine;
* common error exit accessed via 'goto' could potentially leave
  a dangling window structure (only if 'data' is corrupted though;
  it's the only way a failure at that late point could occur).

9 years agodo_look bits
PatR [Fri, 24 Apr 2015 02:25:01 +0000 (19:25 -0700)]
do_look bits

I didn't find Michael's crasher, but I did find a couple of minor
problems:

knight's saddled pony wasn't found in the file lookup either though
there is an entry for pony ("tame saddled <foo>" stripped off "tame "
but not "saddled "; "saddled <foo>" would only be found of there was
a wildcard entry key of "*<foo>", like "*horse" to catch both horse
and warhorse);

"wombat" matched the bat entry rather than reporting an unknown
entity.

9 years agoGive honorifics to vampires and elves
Pasi Kallinen [Thu, 23 Apr 2015 18:46:02 +0000 (21:46 +0300)]
Give honorifics to vampires and elves

9 years agoGive gnomes occasionally a candle
Pasi Kallinen [Thu, 23 Apr 2015 18:19:19 +0000 (21:19 +0300)]
Give gnomes occasionally a candle

...and if in unlit area, light the candle.

9 years agoHallucinated currencies
Pasi Kallinen [Thu, 23 Apr 2015 17:30:49 +0000 (20:30 +0300)]
Hallucinated currencies

Originally via UnNetHack by Patric Mueller

9 years agoIndicate how far you fall down a hole or trapdoor
Pasi Kallinen [Thu, 23 Apr 2015 16:27:07 +0000 (19:27 +0300)]
Indicate how far you fall down a hole or trapdoor

No extra message when falling down to the next level,
otherwise give "You fall down a [very] [deep] shaft!".

9 years agostatue glyph save/restore
PatR [Thu, 23 Apr 2015 02:47:55 +0000 (19:47 -0700)]
statue glyph save/restore

Remove the code that converted statues shown as monsters into stautes
shown as big rocks when saving and then reversed the effect when
restoring.  It was done to preserve save file compatability with 3.4.3
where statue-as-monster glyphs didn't exist, so is no longer useful.

9 years agosp_lev.c cleanup
PatR [Thu, 23 Apr 2015 02:18:57 +0000 (19:18 -0700)]
sp_lev.c cleanup

* remove several unreachable panic() calls; alloc() already panics
  rather than return a null pointer;
* replace a couple of calls to malloc() with alloc() so that
  MONITOR_HEAP won't produce spurious alloc/free discrepancies;
* replace several instances of variable 'd' with 'd0' so that it
  doesn't conflict with the name of a function;
* comment out opvar_new_region() since it isn't used anywhere.

9 years agolint
PatR [Thu, 23 Apr 2015 02:17:49 +0000 (19:17 -0700)]
lint

9 years agoUnify boulder dropping on player
Pasi Kallinen [Wed, 22 Apr 2015 17:22:51 +0000 (20:22 +0300)]
Unify boulder dropping on player

... and if you're swallowed, make the dropped boulder hit the monster.
(Changes from UnNetHack)

9 years agoFix typo in func decl
Pasi Kallinen [Wed, 22 Apr 2015 10:24:51 +0000 (13:24 +0300)]
Fix typo in func decl

9 years agoFold another instance of "You are rooted" into u_rooted
Pasi Kallinen [Wed, 22 Apr 2015 08:54:27 +0000 (11:54 +0300)]
Fold another instance of "You are rooted" into u_rooted

9 years agoUnify stumbling on door mimic
Pasi Kallinen [Wed, 22 Apr 2015 06:23:54 +0000 (09:23 +0300)]
Unify stumbling on door mimic

9 years agoUnify food-related conducts when eating a monster
Pasi Kallinen [Wed, 22 Apr 2015 06:16:49 +0000 (09:16 +0300)]
Unify food-related conducts when eating a monster

9 years agoUnify hero free hand check and msg
Pasi Kallinen [Wed, 22 Apr 2015 06:02:38 +0000 (09:02 +0300)]
Unify hero free hand check and msg

9 years agoUnify monster gender setting
Pasi Kallinen [Wed, 22 Apr 2015 05:58:04 +0000 (08:58 +0300)]
Unify monster gender setting

9 years agoUnify iron ball unwielding
Pasi Kallinen [Wed, 22 Apr 2015 05:53:13 +0000 (08:53 +0300)]
Unify iron ball unwielding

9 years agoUnify file removed -trickery
Pasi Kallinen [Wed, 22 Apr 2015 05:45:03 +0000 (08:45 +0300)]
Unify file removed -trickery

9 years agoUnify "You are rooted" message
Pasi Kallinen [Wed, 22 Apr 2015 05:35:14 +0000 (08:35 +0300)]
Unify "You are rooted" message

9 years agoMake coalescence message be smart about status
Derek S. Ray [Wed, 22 Apr 2015 01:47:33 +0000 (21:47 -0400)]
Make coalescence message be smart about status

- honor blindness and hallucination
- honor ability to see one of the mergees
- provide audible feedback if appropriate
- merging inside pack gets special-cased so player knows something
  different/unusual is happening

9 years agoUnify dropping boulder on monster
Pasi Kallinen [Tue, 21 Apr 2015 19:40:27 +0000 (22:40 +0300)]
Unify dropping boulder on monster

9 years agoSolidify the astral plane
Pasi Kallinen [Tue, 21 Apr 2015 08:22:30 +0000 (11:22 +0300)]
Solidify the astral plane

...to prevent xorns appearing in the inaccessible map fringes

9 years agomongone vs vault guard
PatR [Tue, 21 Apr 2015 02:45:13 +0000 (19:45 -0700)]
mongone vs vault guard

mongone() would send away a vault guard, whether alive or already
dead and parked at <0,0>, losing the information needed to remove
the temporary vault corridor once whatever obstacle (ie, the hero)
that's keeping it in place has been cleared.  Have mongone() call
grddead() like mondead() does, so that a guard will just be moved
to <0,0> with 0 HP and kept there rather than being purged during
the next dead monster removal.

Move polearm context reset to m_detach() [and, unfortunately,
duplicated in grddead()] rather than in having it in dmonsfree()
since execution of the latter is deferred.  I'm not sure offhand
whether a fast hero could get a second move before end-of-turn
purging of dead monsters.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Tue, 21 Apr 2015 00:49:51 +0000 (20:49 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoDeveloper.txt: add notes about branches
keni [Tue, 21 Apr 2015 00:49:18 +0000 (20:49 -0400)]
Developer.txt: add notes about branches

9 years agoMake sure can't chat out of the map
Pasi Kallinen [Mon, 20 Apr 2015 15:09:59 +0000 (18:09 +0300)]
Make sure can't chat out of the map

9 years agotribute in-game bonus
PatR [Mon, 20 Apr 2015 07:05:00 +0000 (00:05 -0700)]
tribute in-game bonus

Give 20 experience points the first time the hero reads a passage
from a tribute novel.  It's enough to go from level 1 to 2 or from
2 to 3.  By the time a book store is found, that's too trivial for
most to care about, but it's potentially useful to a pacifist.

9 years agoinvalid escape
nhmall [Sun, 19 Apr 2015 22:56:49 +0000 (18:56 -0400)]
invalid escape
 Changes to be committed:
modified:   win/share/tiletext.c

9 years agoUpdate the tile RGB values and mappings
nhmall [Sun, 19 Apr 2015 21:17:03 +0000 (17:17 -0400)]
Update the tile RGB values and mappings
 Changes to be committed:
modified:   win/share/monsters.txt
modified:   win/share/objects.txt
modified:   win/share/other.txt
modified:   win/share/tile2bmp.c
modified:   win/share/tiletext.c

9 years agoextend the tty statue patch to tiles
nhmall [Sun, 19 Apr 2015 17:31:59 +0000 (13:31 -0400)]
extend the tty statue patch to tiles
 Changes to be committed:
modified:   doc/fixes35.0
modified:   win/share/gifread.c
modified:   win/share/monsters.txt
modified:   win/share/objects.txt
modified:   win/share/other.txt
modified:   win/share/tile2bmp.c
modified:   win/share/tilemap.c

The tty code already had the statue patch included, where
statues are represented by stone versions similar in
appearance to their monster likeness.

This extends it to tiles.

A new pass through the monsters.txt file is done
in tile2bmp to include new modified tiles to the output
file that are gray-scaled versions for mapping to the
NetHack statue glyphs.

9 years agoFix dark room glyphs when searching
Pasi Kallinen [Sun, 19 Apr 2015 07:46:21 +0000 (10:46 +0300)]
Fix dark room glyphs when searching

Searching while blind showed room glyphs as lit even when
dark_room option was on.

9 years agofix "bad fruit #0"
PatR [Sun, 19 Apr 2015 03:18:43 +0000 (20:18 -0700)]
fix "bad fruit #0"

When minimal_xname() set up a dummy object containing as few details
as possible, it wasn't setting up the fruit id field, so xname()
couldn't figure out what type of fruit it had and issued a warning.

I haven't managed a test case that uses minimal_xname so testing of
the fix is less than comprehensive.  [Pasi got it through dopay, but
that only resorts to minimal_xname if the formatted name is really
long and would otherwise cause the shopkeeper's prompt to overflow.
Long fruit name combined with long individual object name wasn't
long enough to trigger that.  Maybe uncursed, greased, rustproof
the like, or possibly just a longer shopkeeper name than I had?]

9 years agorevisit the forcefight crash fix
PatR [Sun, 19 Apr 2015 03:02:40 +0000 (20:02 -0700)]
revisit the forcefight crash fix

The previous fix prevents the crash from 'the()' when NO_GLYPH was
used as an index into the defsyms array, but it resulted in giving
feedback of "you attack thin air" regardless of what was at the
target location, reverting to the situation that the buggy code was
attempting to address in the first place.  Handle that differently
by removing the unseen monster glyph sooner.  Also, the underwater
handling wasn't working as intended.

I blamed Derek's pudding farming patch for introducing the problem,
but all that did was replace the offending line(s) with different
indentation.  The older post-3.4.3 patch which produced the problem
was mine.  Sorry, Derek.

9 years agorevert unneeded lookat() change
PatR [Sun, 19 Apr 2015 01:50:38 +0000 (18:50 -0700)]
revert unneeded lookat() change

The enclosing switch statement is only reached when `glyph_is_cmap' is
known to be true, so remove the redundant extra test.

9 years agosuggested booktribute mods
nhmall [Sat, 18 Apr 2015 21:45:27 +0000 (17:45 -0400)]
suggested booktribute mods
 Changes to be committed:
modified:   include/extern.h
modified:   src/files.c
modified:   src/objects.c
modified:   src/spell.c

- charge a little more.
- no free read in the bookstore.

9 years agoprevent a couple of reported array index segfaults
nhmall [Sat, 18 Apr 2015 19:29:37 +0000 (15:29 -0400)]
prevent a couple of reported array index segfaults
 Changes to be committed:
modified:   src/hack.c
modified:   src/pager.c

Don't use glyph_to_cmap as an array index into
the defsyms[] array unless it really is a cmap.

Recent situation: glyph_to_cmap will return
NO_GLYPH for the unknown monster glyph 'I', which
is not a valid index for the defsyms[] array.

9 years agoAllow wishing for polearm or hammer
Pasi Kallinen [Sat, 18 Apr 2015 14:25:52 +0000 (17:25 +0300)]
Allow wishing for polearm or hammer

which gives a random weapon with the matching skill,
so a random polearm, or a war hammer, respectively.

9 years agoFix saving xlogfile realtime
Pasi Kallinen [Fri, 17 Apr 2015 07:35:05 +0000 (10:35 +0300)]
Fix saving xlogfile realtime

9 years agoadd an initializer
nhmall [Fri, 17 Apr 2015 04:46:54 +0000 (00:46 -0400)]
add an initializer

9 years agoprotect against bad dates
nhmall [Fri, 17 Apr 2015 04:31:22 +0000 (00:31 -0400)]
protect against bad dates

A recent fault on mingw32 revealed that faulty
code which passes a bad or out-of-range date
value could have game-fatal consequences.
Add some protection.

9 years agodate verification
nhmall [Fri, 17 Apr 2015 04:12:53 +0000 (00:12 -0400)]
date verification

9 years agoPrevent divide by zero in newman
Pasi Kallinen [Wed, 15 Apr 2015 18:05:42 +0000 (21:05 +0300)]
Prevent divide by zero in newman

...which happened when your max power was 0

9 years agoPrevent illegal positions for tmp_at
Pasi Kallinen [Wed, 15 Apr 2015 17:35:48 +0000 (20:35 +0300)]
Prevent illegal positions for tmp_at

It seems like m_throw() can call tmp_at() with !isok coordinates,
so prevent those in both functions

9 years agoPrevent infinite loop
Pasi Kallinen [Wed, 15 Apr 2015 17:06:38 +0000 (20:06 +0300)]
Prevent infinite loop

...if the map is filled with monsters, and for some reason
the drowning just won't kill you.

Infinite looping cannot currently happen, because no-one who
can drown can keep surviving the drowning once their amulet
of life saving is used up.

9 years agoPrevent out-of-bounds coords when closing a door
Pasi Kallinen [Wed, 15 Apr 2015 16:43:32 +0000 (19:43 +0300)]
Prevent out-of-bounds coords when closing a door

9 years agoPrevent segfault when looking around inside monster
Pasi Kallinen [Wed, 15 Apr 2015 14:06:39 +0000 (17:06 +0300)]
Prevent segfault when looking around inside monster

A recent change by me introduced a segfault when
counting swallowed hero as a monster inventory item.

9 years agoMove triplicate defines into single place
Pasi Kallinen [Tue, 14 Apr 2015 17:33:30 +0000 (20:33 +0300)]
Move triplicate defines into single place

9 years agoYAFM for magic flute
Pasi Kallinen [Tue, 14 Apr 2015 17:04:46 +0000 (20:04 +0300)]
YAFM for magic flute

9 years agoUnify description of hero's visage into single function
Pasi Kallinen [Tue, 14 Apr 2015 16:41:44 +0000 (19:41 +0300)]
Unify description of hero's visage into single function

9 years agoSinks may be teleported or polymorphed by rings
Pasi Kallinen [Tue, 14 Apr 2015 16:21:32 +0000 (19:21 +0300)]
Sinks may be teleported or polymorphed by rings

Original patches by Leon Arnott and me.

9 years agoGuard against merge segfaults
Pasi Kallinen [Tue, 14 Apr 2015 05:55:43 +0000 (08:55 +0300)]
Guard against merge segfaults

Trying to throw a quivered object resulted in a segfault, when
the code tried to merge the quivered object into itself.

9 years agoYAFM for dragon sitting on gold
Pasi Kallinen [Tue, 14 Apr 2015 05:45:29 +0000 (08:45 +0300)]
YAFM for dragon sitting on gold

9 years agolint bits
PatR [Tue, 14 Apr 2015 00:50:17 +0000 (17:50 -0700)]
lint bits

9 years agoregex lint
PatR [Tue, 14 Apr 2015 00:21:59 +0000 (17:21 -0700)]
regex lint

For the POSIX regexp interface, move local declaration to beginning
of block to avoid requiring C99.  Also switch to alloc() from bare
malloc() so that MONITOR_HEAP won't log a free which doesn't match
up to any allocation.  This results in a change in behavior:  if
the allocation fails, nethack will panic rather than report an
option parsing error.  In practice there will be no difference
because nethack is not going to run out of dynamic memory during
initial options processing.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Mon, 13 Apr 2015 23:33:26 +0000 (19:33 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agonhsub: handle git add/commit options that take an argument
keni [Mon, 13 Apr 2015 23:32:51 +0000 (19:32 -0400)]
nhsub: handle git add/commit options that take an argument

9 years agoAdd Auto open doors -patch
Pasi Kallinen [Mon, 13 Apr 2015 17:49:38 +0000 (20:49 +0300)]
Add Auto open doors -patch

9 years agoInaccessible niches occasionally have iron bars
Pasi Kallinen [Mon, 13 Apr 2015 16:50:54 +0000 (19:50 +0300)]
Inaccessible niches occasionally have iron bars

9 years agoSome monsters can eat through iron bars
Pasi Kallinen [Mon, 13 Apr 2015 16:36:49 +0000 (19:36 +0300)]
Some monsters can eat through iron bars

Any monster with rusting or corrosion attack can eat through
the bars. This includes rust monsters, grey oozes, and black puddings.

Original patch by Malcolm Ryan

9 years agoA camera may contain a picture-painting demon
Pasi Kallinen [Mon, 13 Apr 2015 15:54:20 +0000 (18:54 +0300)]
A camera may contain a picture-painting demon

Original patch by Leon Arnott

9 years agoAdd litmus test
Pasi Kallinen [Mon, 13 Apr 2015 15:30:49 +0000 (18:30 +0300)]
Add litmus test

Original patch by Dylan O'Donnell

9 years agoUse our dupstr instead of strdup
Pasi Kallinen [Mon, 13 Apr 2015 07:07:12 +0000 (10:07 +0300)]
Use our dupstr instead of strdup

9 years agoFix gitignored
Pasi Kallinen [Mon, 13 Apr 2015 05:30:47 +0000 (08:30 +0300)]
Fix gitignored

9 years agomore regex integration bits
nhmall [Sun, 12 Apr 2015 17:27:36 +0000 (13:27 -0400)]
more regex integration bits

9 years agoMakefile bit following merge
nhmall [Sun, 12 Apr 2015 16:16:59 +0000 (12:16 -0400)]
Makefile bit following merge

9 years agoAdd some new files to top level Files
nhmall [Fri, 10 Apr 2015 23:24:06 +0000 (19:24 -0400)]
Add some new files to top level Files

9 years agoadd cppregex.cpp to NetHackW so it'll link properly
Derek S. Ray [Fri, 10 Apr 2015 22:33:12 +0000 (18:33 -0400)]
add cppregex.cpp to NetHackW so it'll link properly

9 years agoAdd POSIX implementation of regex.
Sean Hunt [Thu, 9 Apr 2015 14:38:15 +0000 (10:38 -0400)]
Add POSIX implementation of regex.

This also includes documentation of the regex engine in posixregex.c,
because I couldn't think of anywhere better to put it.

9 years agoCatch regex matching errors to avoid crashing.
Sean Hunt [Fri, 3 Apr 2015 20:25:17 +0000 (16:25 -0400)]
Catch regex matching errors to avoid crashing.

9 years agoUse extern.h for regexes.
Sean Hunt [Fri, 3 Apr 2015 19:08:29 +0000 (15:08 -0400)]
Use extern.h for regexes.

I was planning to do this anyway, but it created an include loop that
was breaking it on Windows.

9 years agoImplement a new system-based matching harness.
Sean Hunt [Fri, 3 Apr 2015 18:07:53 +0000 (14:07 -0400)]
Implement a new system-based matching harness.

The intent is to look for platform-specific facilities for regex
matching, to provide portable MENUCOLORS configuration files.

This is a prototype implementation being committed to see if Windows can
use the POSIX regex implementation provided with the C++11 standard
library. If this works, I will write a harness for POSIX regexes and for
pmatch(), and those can be linked in by platforms as appropriate.

pmatch() should be used only as a very last resort, because it breaks
compatibility between platforms.

9 years agoDocument wallification changes.
Sean Hunt [Fri, 10 Apr 2015 23:11:47 +0000 (19:11 -0400)]
Document wallification changes.

9 years agotribute post-merge smoothing
nhmall [Sun, 12 Apr 2015 14:31:26 +0000 (10:31 -0400)]
tribute post-merge smoothing
 Changes to be committed:
modified:   src/mon.c
modified:   win/share/objects.txt

9 years agoMerge branch 'master' into nhmall-booktribute
nhmall [Sun, 12 Apr 2015 14:02:17 +0000 (10:02 -0400)]
Merge branch 'master' into nhmall-booktribute

Conflicts:
doc/fixes35.0
include/extern.h
src/mkobj.c
src/mon.c
src/objnam.c
win/share/objects.txt

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 12:58:16 +0000 (08:58 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoMore Guidebook
nhmall [Sun, 12 Apr 2015 12:57:41 +0000 (08:57 -0400)]
More Guidebook
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

9 years agorevised menu searching
PatR [Sun, 12 Apr 2015 08:48:01 +0000 (01:48 -0700)]
revised menu searching

Convert search in tty menus from pmatch to case-insensitive pmatchi;
convert search in X11 menus from substring strstri to wildcard pmatchi.

tty bug:  if the menu is full screen, the search prompt and subsequent
user input clobbers the menu header.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 04:34:06 +0000 (00:34 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agowindows team update
nhmall [Sun, 12 Apr 2015 04:33:30 +0000 (00:33 -0400)]
windows team update

9 years agonew pmatch variations
PatR [Sun, 12 Apr 2015 02:39:59 +0000 (19:39 -0700)]
new pmatch variations

Add pmatchi() to perform case-insensitive wildcard matching, and
pmatchz() which is also case-insensitive and ignores spaces, dashes,
and underscores like the type of matching done during wish parsing.
At the moment, neither is being used, although DEBUGFILES handling
uses pmatch and needs to be taught to distinguish between case-
sensitive and case-insensitive filenames so will eventually use
pmatchi when appropriate.

9 years agocolor of mithril armor
PatR [Sun, 12 Apr 2015 01:51:03 +0000 (18:51 -0700)]
color of mithril armor

From a bug report two years ago, mithril armor should have color
HI_SILVER rather than HI_METAL.  Tolkien describes mithril as "like
silver which never tarnishes".  (The bug report had a more precise
quote, and a github URL for a patch which I've ignored.)  The Amulet
of Yendor has material set to MITHRIL but I haven't changed its color.
All amulets are HI_METAL, so if any modification is needed for it,
change the material rather than the color.

Mithril-coats are displayed as cyan both before and after this patch,
so it's hard to tell whether any change actually happened.