]> granicus.if.org Git - nethack/log
nethack
9 years agofinish implementing pmatchregex
PatR [Tue, 16 Jun 2015 09:29:22 +0000 (02:29 -0700)]
finish implementing pmatchregex

I started out cleaning up a bit of lint in the recent run-time options
handling and discovered that pmatchregex wasn't finished.  Finish it and
also deal with the version lint.  Argument declarations for function
definitions in pmatchregex.c have been switched to K&R style.  (The ones
in posixregex.c have been left in ANSI style.)

There wasn't any build rule for pmatchregex.o; now there is (for Unix).
posixregex.o is still the default.

There isn't any build rule for cppregex.o (again, for Unix); the change
to cppregex.cpp is untested.

9 years agofix another logic error for nowin_buf read_tribute
nhmall [Tue, 16 Jun 2015 03:28:41 +0000 (23:28 -0400)]
fix another logic error for nowin_buf read_tribute

9 years agologic bit
nhmall [Tue, 16 Jun 2015 02:44:38 +0000 (22:44 -0400)]
logic bit

Fix a logic mistake in the nowin_buf scenario
of read_tribute.

9 years agoa couple more tribute easter eggs
nhmall [Tue, 16 Jun 2015 02:22:56 +0000 (22:22 -0400)]
a couple more tribute easter eggs
 Changes to be committed:
modified:   include/context.h
modified:   include/extern.h
modified:   src/files.c
modified:   src/invent.c
modified:   src/sounds.c
modified:   src/spell.c

Add a couple more tribute easter eggs.

 - can lead to a remark by Death if you happen to have a pratchett book on
   your person, as suggested by M. Stephenson (fat chance you will, or
   think to #chat if you do, but it could be a tournament novelty or something
   obscure to strive for).
 - can draw some additional Death quotes from the tribute file. (There's two
   in there right now. If anyone wants to add or suggest some more, please go
   ahead. The Death quotes are at the end of the tribute file. One-liners
   only please or the code will only pull the last line.

9 years agotribute: Lords and Ladies
PatR [Tue, 16 Jun 2015 01:16:03 +0000 (18:16 -0700)]
tribute: Lords and Ladies

It's a lot of passages, even when leaving out ones about Cresote and
King Midas (or whatever name his Discworld analog has), Nanny Ogg's cat,
Ridcully's custom made wizard hat, and the mention of a law which
requires that bystanders be warned before commencing to play folk music.

9 years agorising from the dead during panic
PatR [Mon, 15 Jun 2015 22:47:47 +0000 (15:47 -0700)]
rising from the dead during panic

Prevent rising from the dead as a giant ant if the game panics during
initialization.

9 years ago#overview, level difficulty
PatR [Mon, 15 Jun 2015 01:14:14 +0000 (18:14 -0700)]
#overview, level difficulty

Three fixes, the first leading to the need to fix the second, and that
fix making dealing with the third be straightforward.

First, make the furthest level reached in any given branch be considered
interesting by #overview, even if no interesting features have been
encountered.  This will result in listing Gnomish Mines and their first
level when someone goes down the stairs and immediately back up.  It will
also produce a reminder of how far you've been--in each branch--after
retreating for any reason, without the need to manually add an annotation.

Second, #overview was suppressing the range of level numbers for Sokoban
because the author realized that the values were wrong.  The record of
the furthest level reached was incorrect for builds-up branches, always
sticking with the deepest level even though it was the entrance.  The
overview patch neglected to do the same suppression for Vlad's Tower and
the level range ("36 to 38" or similar) there was wrong.  This fixes the
furthest level reached problem and also fixes #overview's level range
handling for builds-up branches.

Third and last, a long-standing issue which I don't think has ever been
formally reported:  the level difficulty calculation used for monster
creation treated the upper (harder to get to) levels of builds-up branches
as if they were easier since they're closer to the surface as the gopher
burrows.  So sokoban generated easier monsters on its final level than on
the ones leading up to that.  Make depth for difficulty purposes account
for descent to the entrance and then ascent to the level of interest.

There was a distressing amount of trial and error involved.  The dungeon
layout structures are not exactly easy to work with, and I never managed
to get builds_up() based on branch data to work correctly.  Basing it on
dungeon data works as intended provided the branch has more than one
level, but it will yield incorrect result if we ever add a single-level
branch reached via stairs up rather than stairs down.

9 years agosome typos spotted in tribute
nhmall [Sun, 14 Jun 2015 23:59:37 +0000 (19:59 -0400)]
some typos spotted in tribute
 Changes to be committed:
modified:   dat/tribute

There are probably more.

9 years agotribute formatting cleanup and additions
nhmall [Sun, 14 Jun 2015 19:57:19 +0000 (15:57 -0400)]
tribute formatting cleanup and additions
 Changes to be committed:
modified:   dat/tribute

I've also added some of Boudewijn's suggestions and
added his name in a comment for easy reference
when validating the content agains the book.

9 years agoFix the shapechanger fix again
Pasi Kallinen [Sun, 14 Jun 2015 08:48:10 +0000 (11:48 +0300)]
Fix the shapechanger fix again

9 years agoEnsure there are candles in Vlad's tower
Pasi Kallinen [Sun, 14 Jun 2015 07:58:55 +0000 (10:58 +0300)]
Ensure there are candles in Vlad's tower

9 years agoShapechangers got a completely random form
Pasi Kallinen [Sun, 14 Jun 2015 07:40:20 +0000 (10:40 +0300)]
Shapechangers got a completely random form

mtmp->cham was NON_PM, which select_newcham_form interpreted as a completely
random form.  This also resulted Vlad getting a random shape, and not getting
the Candelabrum, making the game unwinnable.

9 years agorolling back after criticism of approach
nhmall [Sun, 14 Jun 2015 02:31:31 +0000 (22:31 -0400)]
rolling back after criticism of approach

9 years agomore tribute fixup
nhmall [Sun, 14 Jun 2015 01:20:08 +0000 (21:20 -0400)]
more tribute fixup
One book had the top and bottom credits.

9 years agotypo on quote count for Reaper Man
nhmall [Sun, 14 Jun 2015 01:07:28 +0000 (21:07 -0400)]
typo on quote count for Reaper Man
 Changes to be committed:
modified:   dat/tribute

9 years agoavoid error
nhmall [Sun, 14 Jun 2015 00:59:40 +0000 (20:59 -0400)]
avoid error

The presence of [...] in middle of tribute quote
wasn't handle correctly in the new formatting code.

9 years agomore quotes - Reaper Man
nhmall [Sat, 13 Jun 2015 23:46:06 +0000 (19:46 -0400)]
more quotes - Reaper Man
 Changes to be committed:
modified:   dat/tribute

9 years agoEnsure more consistent formatting of tribute passages
nhmall [Sat, 13 Jun 2015 23:18:01 +0000 (19:18 -0400)]
Ensure more consistent formatting of tribute passages
 Changes to be committed:
modified:   src/files.c

9 years agostart new tribute content handling
nhmall [Sat, 13 Jun 2015 13:33:40 +0000 (09:33 -0400)]
start new tribute content handling

9 years agosupport for link-time option in #version
nhmall [Fri, 12 Jun 2015 23:23:18 +0000 (19:23 -0400)]
support for link-time option in #version
 Changes to be committed:
modified:   src/version.c
modified:   sys/share/cppregex.cpp
modified:   sys/share/pmatchregex.c
modified:   sys/share/posixregex.c
modified:   util/makedefs.c

Some options in 3.6.0 are determined by what you link with.
The choice of regex support is one.
Let #version show that linked option along with the compile-time options.

9 years agoMakefile typos in sys/winnt/Makfile.msc
nhmall [Fri, 12 Jun 2015 19:42:41 +0000 (15:42 -0400)]
Makefile typos in sys/winnt/Makfile.msc

9 years agoCopypaste mistake: Message types, not menu colors.
Pasi Kallinen [Fri, 12 Jun 2015 17:32:35 +0000 (20:32 +0300)]
Copypaste mistake: Message types, not menu colors.

9 years agobeta complaint 2 (again)
nhmall [Fri, 12 Jun 2015 17:11:10 +0000 (13:11 -0400)]
beta complaint 2 (again)

9 years agobeta complaint 2
nhmall [Fri, 12 Jun 2015 17:08:51 +0000 (13:08 -0400)]
beta complaint 2

9 years agobeta complaints 1
nhmall [Fri, 12 Jun 2015 16:59:30 +0000 (12:59 -0400)]
beta complaints 1

9 years agorole selection: priest/priestess' prompt
PatR [Fri, 12 Jun 2015 01:47:57 +0000 (18:47 -0700)]
role selection: priest/priestess' prompt

Change "Shall I pick your priest/priestess' race, gender, ..." prompt
to "... priest/priestess's ...".

Unfortunately that makes it long enough to push the cursor onto the
next line for basic 80 column display.  If caveman/cavewoman's wasn't
already longer I think I would have left the clumsier phrasing/spelling.

9 years agocharacteristics disclosure
PatR [Fri, 12 Jun 2015 01:19:09 +0000 (18:19 -0700)]
characteristics disclosure

Change end of game disclosure's display for strength, dexterity, &c to
always show the maximum possible value instead of only when the final
value was less than maximum.  For both end of game and ^X, change the
description from "limit" to "innate limit" if the current value exceeds
limit due to worn items (gauntlets of power, +N ring of adornment, &c).

9 years agopunctuation in failed messages
nhmall [Fri, 12 Jun 2015 01:11:41 +0000 (21:11 -0400)]
punctuation in failed messages

9 years agomore menustyle
PatR [Thu, 11 Jun 2015 21:09:17 +0000 (14:09 -0700)]
more menustyle

Make the list of menustyle values in the game match their order in the
revised documentation:  traditional, combination, full, partial.

9 years agomenustyle documentation
PatR [Thu, 11 Jun 2015 20:35:41 +0000 (13:35 -0700)]
menustyle documentation

Reorder the description of the values for the menustyle option, swapping
'full' and 'partial' since 'full' is closer in operation to 'combination'.

9 years agoRemove unused variable
Pasi Kallinen [Thu, 11 Jun 2015 16:36:08 +0000 (19:36 +0300)]
Remove unused variable

9 years agoFix unused variable thinko
Pasi Kallinen [Thu, 11 Jun 2015 16:34:49 +0000 (19:34 +0300)]
Fix unused variable thinko

9 years agoalter beta identifier
nhmall [Thu, 11 Jun 2015 12:25:56 +0000 (08:25 -0400)]
alter beta identifier

9 years agomenucolors
nhmall [Thu, 11 Jun 2015 01:07:19 +0000 (21:07 -0400)]
menucolors

Error reported in display.c in current master code is gone,
but the menucolors stuff generated the following warnings when TEXTCOLOR wasn't defined.

..\win\tty\wintty.c(1688) : warning C4013: 'term_start_color' undefined; assuming extern returning int
..\win\tty\wintty.c(1711) : warning C4013: 'term_end_color' undefined; assuming extern returning int

9 years agopunctuation in dat/tribute
nhmall [Thu, 11 Jun 2015 00:52:03 +0000 (20:52 -0400)]
punctuation in dat/tribute

9 years agoactual field is always around anyway
nhmall [Thu, 11 Jun 2015 00:48:29 +0000 (20:48 -0400)]
actual field is always around anyway
 Changes to be committed:
modified:   include/flag.h

9 years agomore tribute quotes
nhmall [Thu, 11 Jun 2015 00:36:17 +0000 (20:36 -0400)]
more tribute quotes
 Changes to be committed:
modified:   dat/tribute

9 years agotribute passage 'summary'
PatR [Wed, 10 Jun 2015 23:23:19 +0000 (16:23 -0700)]
tribute passage 'summary'

When reading a passage from a tribute novel, put the final attribution
line "[$TITLE, by Terry Pratchett]" into message history, comparable to
the summary line for deliver-by-window quest messages.

9 years agoFiles didn't match sys/unix/hints
nhmall [Wed, 10 Jun 2015 23:15:36 +0000 (19:15 -0400)]
Files didn't match sys/unix/hints
 Changes to be committed:
modified:   Files

9 years agoMerge branch 'macosx-build'
nhmall [Wed, 10 Jun 2015 22:57:23 +0000 (18:57 -0400)]
Merge branch 'macosx-build'

9 years agoanother punctuation bit
nhmall [Wed, 10 Jun 2015 12:10:56 +0000 (08:10 -0400)]
another punctuation bit

9 years agopunctuation bit
nhmall [Wed, 10 Jun 2015 12:09:03 +0000 (08:09 -0400)]
punctuation bit

9 years agomore quotes from books without quotes
nhmall [Wed, 10 Jun 2015 11:56:12 +0000 (07:56 -0400)]
more quotes from books without quotes

9 years agotribute: The Last Hero
PatR [Wed, 10 Jun 2015 07:54:07 +0000 (00:54 -0700)]
tribute: The Last Hero

Flesh out _The_Last_Hero_.  Due to its publishing history (no ordinary
paperback, some lists of "other books by this author" miscategorize it
as being co-written by the illustrator) it's most likely not as widely
read as the other Discworld books.

9 years agouse NO_GLYPH as an indicator to ignore background glyph
nhmall [Wed, 10 Jun 2015 01:56:28 +0000 (21:56 -0400)]
use NO_GLYPH as an indicator to ignore background glyph
 Changes to be committed:
modified:   doc/window.doc
modified:   src/display.c

9 years agodefault to original background
nhmall [Wed, 10 Jun 2015 01:33:08 +0000 (21:33 -0400)]
default to original background
 Changes to be committed:
modified:   src/display.c

The work for getting this working fully is now moving to the background_tiles branch.
In master, we just return the standard lit room tile for now, no change in behavior.
No ports utilize the new parameter as yet.

9 years agoX11: Hilight piles of objects
Pasi Kallinen [Tue, 9 Jun 2015 16:59:38 +0000 (19:59 +0300)]
X11: Hilight piles of objects

9 years agoAdd the mapglyph special flags to window doc
Pasi Kallinen [Tue, 9 Jun 2015 14:46:30 +0000 (17:46 +0300)]
Add the mapglyph special flags to window doc

9 years agoTTY: Hilight piles of objects
Pasi Kallinen [Tue, 9 Jun 2015 13:54:44 +0000 (16:54 +0300)]
TTY: Hilight piles of objects

Add MG_OBJPILE flag, which windowports can use to check if a location
has more than one object stack. If use_inverse is on, TTY will use
inverse to show such piles.  If a boulder is the topmost item on a pile,
then the object pile flag is not used; mainly because boulders are "solid",
boulders dropped by monsters are nearly always over other objects, and so
that special levels such a Sokoban can "hide" items under the boulders.

TODO: a "pilemark", analogous to "petmark", perhaps a green plus sign,
which can be used by windowports with tiles.

9 years agomany contributors to this please
nhmall [Tue, 9 Jun 2015 09:29:25 +0000 (05:29 -0400)]
many contributors to this please
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

9 years agoMerge branch 'master' into AlexK-misc
nhmall [Tue, 9 Jun 2015 01:11:54 +0000 (21:11 -0400)]
Merge branch 'master' into AlexK-misc

9 years agoprovide bkglyphs
nhmall [Tue, 9 Jun 2015 00:10:43 +0000 (20:10 -0400)]
provide bkglyphs
 Changes to be committed:
modified:   src/display.c

9 years agoModify the window interface for print_glyph
nhmall [Mon, 8 Jun 2015 23:37:26 +0000 (19:37 -0400)]
Modify the window interface for print_glyph

 Changes to be committed:
modified:   doc/window.doc
modified:   include/qt_win.h
modified:   include/trampoli.h
modified:   include/winX.h
modified:   include/wingem.h
modified:   include/winprocs.h
modified:   include/wintty.h
modified:   src/display.c
modified:   src/windows.c
modified:   sys/amiga/winami.p
modified:   sys/amiga/winfuncs.c
modified:   sys/amiga/winproto.h
modified:   sys/wince/mswproc.c
modified:   sys/wince/winMS.h
modified:   win/Qt/qt_win.cpp
modified:   win/X11/winmap.c
modified:   win/chain/wc_chainin.c
modified:   win/chain/wc_chainout.c
modified:   win/chain/wc_trace.c
modified:   win/gem/wingem.c
modified:   win/gem/wingem1.c
modified:   win/gnome/gnbind.c
modified:   win/tty/wintty.c
modified:   win/win32/mswproc.c
modified:   win/win32/winMS.h

print_glyph now takes a second parameter.

Tiles on tiled ports always looked odd on places like the plane of air
where the background color of the tile didn't match the general background
of the surrounding area.

3.6 made that even worse and more glaringly noticeable with the introduction
of darkened room tiles.

The code to actually send something useful through the new parameter
for window ports to take advantage if they want will follow.

9 years agoUse MAKE variable instead of hardcoding make
Pasi Kallinen [Sat, 6 Jun 2015 17:25:32 +0000 (20:25 +0300)]
Use MAKE variable instead of hardcoding make

9 years agoChatting with priest converted to minion crashes the game (few code paths in priest_t...
Alex Kompel [Sat, 6 Jun 2015 15:16:30 +0000 (08:16 -0700)]
Chatting with priest converted to minion crashes the game (few code paths in priest_talk() assumed the priest has an altar)

9 years agolookat again
PatR [Sat, 6 Jun 2015 06:37:02 +0000 (23:37 -0700)]
lookat again

Remove second 'alt_i' initialization, which was first in implementation.
Superseded by the preceding line, which came later.  Works either way,
but the conditional initalization avoids the two extra loop iterations
when they're not useful.

9 years agolookat issues for unknown/solid rock/dark room
PatR [Sat, 6 Jun 2015 03:19:18 +0000 (20:19 -0700)]
lookat issues for unknown/solid rock/dark room

Fix two things with the ';' and '/' commands, both for looking at blank
space.  The list of possibilies included "a dark part of a room or the
dark part of a room" even though the code involved goes out of its way
to avoid redundant clauses.  S_stone let dark part be prefixed by 'a',
S_room and S_darkroom forced it to be 'the' which is better phrasing
but outsmarted the redundancy check.  Make S_stone's use of "dark part
of a room" force 'the' too.

That's trivial; this is more complicated:  the new maze variations
exposed/aggravated an issue that's been there all along.  In a non-
WALLIFIED maze, doing look-at on the solid stone in-place-of-wall
next to you reported "dark part of a room" which is clearly wrong when
you can tell it's not a room.  (The same thing happens in any ordinary
corridor, but players rarely try to identify blank space next to them
it that circumstance so it hasn't mattered very much.)  This change
results in look-at listing "unexplored" and "stone" as additional
possibilities when looking at blank spots.  Final description will be
"unexplored" instead of dark room if you haven't seen the spot, "stone"
if you have and that's what it is, or "dark part of a room" otherwise.

9 years agoremove use of __FUNCTION__
PatR [Sat, 6 Jun 2015 01:18:19 +0000 (18:18 -0700)]
remove use of __FUNCTION__

The special level loader has been using __FUNCTION__ in error messages
for a few months now, but that is a gcc extension (evidently picked up
by other compilers since only Borland had an issue so far).  The
standard way to do the same thing is with __func__, but that's C99 so
we should avoid it.  (__FUNCTION__ came earlier; gcc supports both.)

This switches to convential C code to achieve the same effect, using
the name 'nhFunc' rather than __FUNCTION__:
  void foo()
  {
    static const char nhFunc[] = "foo";
    ... code that might report problem in nhFunc ...
    return;
  }
This has only been added to the functions which actually reference it,
not a blanket intrusion into every routine.  In special level loader's
case, the reference is hidden in the opvar_free() macro which is used
quite a lot.

At first I used a macro:
  void foo()
  {
  #define nhFunc "foo"
    ... code that might report problem in nhFunc ...
    return;
  #undef nhFunc
  }
but using an actual variable avoids duplicate copies of the function
name string when used more than once inside a given function, and it
can't accidentally carry over into the next function due to missing or
misspelled #undef.

If we someday switch alloc() to give more specific information than
__FILE__, the macro variation would be better since the function name
won't be used most of the time (ie, when MONITOR_HEAP isn't defined).

9 years agohint file for macosx10.10
Haoyang Wang [Fri, 24 Apr 2015 22:25:29 +0000 (15:25 -0700)]
hint file for macosx10.10

9 years agoadd /usr/X11R6/include to the include paths
Haoyang Wang [Fri, 24 Apr 2015 22:22:18 +0000 (15:22 -0700)]
add /usr/X11R6/include to the include paths

9 years agoRemove extraneous line from linux-X11 hints file
Pasi Kallinen [Fri, 5 Jun 2015 17:42:00 +0000 (20:42 +0300)]
Remove extraneous line from linux-X11 hints file

9 years agoPrevent rays from bouncing off Plane of Air edges
Pasi Kallinen [Fri, 5 Jun 2015 13:54:33 +0000 (16:54 +0300)]
Prevent rays from bouncing off Plane of Air edges

9 years agomore dat/tribute updates
nhmall [Fri, 5 Jun 2015 12:02:23 +0000 (08:02 -0400)]
more dat/tribute updates
 Changes to be committed:
modified:   dat/tribute

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Fri, 5 Jun 2015 10:39:39 +0000 (06:39 -0400)]
Merge branch 'master' into win32-x64-working

9 years agoensure dummy obj owornmask is clear (from Alex)
nhmall [Fri, 5 Jun 2015 10:36:00 +0000 (06:36 -0400)]
ensure dummy obj owornmask is clear (from Alex)

Another minor oddity (did not have time to trace it). Charges for damaged
weapon refer to it as "weapon in hand":

--
As you read the scroll, it disappears.  Being confused, you mispronounce
the magic words...  Demirci's long sword is covered by a mottled purple
glow!  "You degrade that long sword, you pay for it!"
Call a scroll labeled VERR YED HORRE:
What do you want to wield? [- ajrw or ?*] j
j - a rustproof athame named Magicbane (weapon in hand) (10 aum).
What do you want to drop? [$a-df-rtwxM or ?*] r
You drop a long sword (40 aum).
Demirci offers 8 gold pieces for your long sword.  Sell it? [ynaq] (y) y
You sold a long sword (40 aum) for 8 gold pieces.
You see here a scale mail (250 aum).
You see here a ring mail (250 aum).
A rustproof long sword (weapon in hand) (40 aum) for 15 zorkmids.  Pay?
[yn] (n)
You paid for a rustproof long sword (weapon in hand) (40 aum) at a cost of
15 gold pieces.  "Thank you for shopping in Demirci's used armor
dealership!"
--

9 years agowin32_gui: use menu keys (<, >, ^, |) to scroll text windows
Alex Kompel [Fri, 5 Jun 2015 04:18:19 +0000 (21:18 -0700)]
win32_gui: use menu keys (<, >, ^, |) to scroll text windows

9 years agoshapeshifting on rogue level
PatR [Thu, 4 Jun 2015 22:31:25 +0000 (15:31 -0700)]
shapeshifting on rogue level

Limit vampire shapeshifting on rogue level to vampire bats (only
choice represented by uppercase letter) and have other shapeshifting
try for uppercase.  The latter isn't rigorous because shapeshifters
(chameleon=':', doppelganger='@', sandestin='&') aren't uppercase
themselves, so won't be created there under ordinary circumstances.
It applies to the "summon nasties" monster spell and post-invocation/
post-Wizard's-death harassment effect too.

9 years agoMake priest door opening check match dog_move
Pasi Kallinen [Thu, 4 Jun 2015 18:27:36 +0000 (21:27 +0300)]
Make priest door opening check match dog_move

9 years agoDwarves may be generated with dwarvish spears
Pasi Kallinen [Thu, 4 Jun 2015 18:01:36 +0000 (21:01 +0300)]
Dwarves may be generated with dwarvish spears

9 years agoShow detected pets with correct glyph
Pasi Kallinen [Thu, 4 Jun 2015 15:02:20 +0000 (18:02 +0300)]
Show detected pets with correct glyph

When detecting monsters with blessed potion of monster detection,
show pets with the correct glyph; highlights them if hilite_pet is on.

9 years agoMonster detection shows pets with the correct glyph
Pasi Kallinen [Thu, 4 Jun 2015 14:39:21 +0000 (17:39 +0300)]
Monster detection shows pets with the correct glyph

Make pets hilited when detected with uncursed potion of monster detection
and hilite_pet is on.  Noticed by Raisse.

9 years agoFix looking around when swallowed
Pasi Kallinen [Thu, 4 Jun 2015 12:36:26 +0000 (15:36 +0300)]
Fix looking around when swallowed

From Boudewijn:

> I am currently swallowed by an ice vortex, and used the ; command
> to identify the \ on my top right.
>
> It said: "\       an opulent throne (interior of a monster)"

Now, when you're swallowed, and look at anything else than yourself,
you'll get "\        the interior of a monster (interior of an ice vortex)".
Based on the comment in the code, it seems this was the original
intention anyway.

9 years agoMinor Guidebook fixage
Pasi Kallinen [Wed, 3 Jun 2015 15:13:00 +0000 (18:13 +0300)]
Minor Guidebook fixage

9 years agoMove struct istat_s above prototypes using it
Pasi Kallinen [Wed, 3 Jun 2015 14:41:01 +0000 (17:41 +0300)]
Move struct istat_s above prototypes using it

9 years agoFix Rogue-level lighting bugs caused by dark room
Pasi Kallinen [Wed, 3 Jun 2015 14:27:36 +0000 (17:27 +0300)]
Fix Rogue-level lighting bugs caused by dark room

Found by Boudewijn

9 years agoMerge branch 'win32-x64-working'
nhmall [Wed, 3 Jun 2015 02:36:55 +0000 (22:36 -0400)]
Merge branch 'win32-x64-working'

9 years agooffer perm_invent as "personal preference" option
Alex Kompel [Wed, 3 Jun 2015 02:20:41 +0000 (19:20 -0700)]
offer perm_invent as "personal preference" option

9 years agoenlightenment for unarmored, also blindness
PatR [Wed, 3 Jun 2015 00:39:19 +0000 (17:39 -0700)]
enlightenment for unarmored, also blindness

Augment the existing enlightenment feedback for blindness:  "innately"
blind if poly'd into something without eyes, "permanently" blind if
using the blind-from-birth option, "deliberately" blind if blindness
is  solely due to a blindfold, or "temporarily" blind otherwise.

Add status of "not wearing any armor" when applicable, with slightly
different phrasing if it's due to adhering the OPTIONS:nudist conduct.

9 years agoblind-from-birth fix
PatR [Wed, 3 Jun 2015 00:30:16 +0000 (17:30 -0700)]
blind-from-birth fix

The Blindfolded_only macro didn't track u.uroleplay.blind so would
give a false positive if wearing a blindfold, not able to see due to
the blind option, and not afflicted with any other blindness factors.
Dipping a worn blindfold into holy or unholy water is supposed to
reveal a glow if that blindfold is the only reason for blindness but
the glow was described even when blind-from-birth.

There's no feedback at all when the glow isn't seen.  I'm punting on
that one.  (This change didn't introduce that, just added one extra
situation where it happens.)

9 years agobreaking blind-from-birth conduct
PatR [Tue, 2 Jun 2015 23:57:42 +0000 (16:57 -0700)]
breaking blind-from-birth conduct

OPTIONS:blind starts the hero off blind, but putting on the Eyes of the
Overworld confers sight.  Make that break the blind-from-birth conduct.

Sight persists after removing the Eyes even though they aren't intended
to cure anything.  It doesn't make sense to restore the blind-from-birth
flag when taking the Eyes off, but we may want to add another flag, or
make u.uroleplay.blind into a bit mask that can track both can't-see-now
for play and could-never-see for conduct.  (Actually, u.uroleplay.blind
should track only the conduct, and starting the game with it enabled
should set one of the extra bits in u.uprops[BLINDED].intrinsic.  The
Eyes already override that, and taking them off would restore blindness
since the bit would still be set.  As a bonus, the expression in the
macro 'Blind' could be simplified.)

9 years agomake option show as disabled
nhmall [Tue, 2 Jun 2015 22:20:07 +0000 (18:20 -0400)]
make option show as disabled
 Changes to be committed:
modified:   src/options.c

make option show as disabled if compile time options aren't defined.

9 years agodefaults.nh update
nhmall [Tue, 2 Jun 2015 21:41:13 +0000 (17:41 -0400)]
defaults.nh update

9 years agowin32 raw_printf needs better formatting to read
nhmall [Tue, 2 Jun 2015 21:20:23 +0000 (17:20 -0400)]
win32 raw_printf needs better formatting to read
 Changes to be committed:
modified:   src/options.c

Noticed while testing status bits, the meaningful part of
the message is truncated on WIN32.

9 years agostatus conditional code commented oout for merge
nhmall [Tue, 2 Jun 2015 21:09:39 +0000 (17:09 -0400)]
status conditional code commented oout for merge

9 years agoruntime enable statushilites if compiled in
nhmall [Tue, 2 Jun 2015 20:55:02 +0000 (16:55 -0400)]
runtime enable statushilites if compiled in
 Changes to be committed:
modified:   src/options.c

default to runtime enabled of statushilites if compile time option set

9 years agowin32_gui: honor use_status_hilites flag
Alex Kompel [Tue, 2 Jun 2015 03:51:09 +0000 (20:51 -0700)]
win32_gui: honor use_status_hilites flag

9 years agoguidebook status_hilite adjustment
nhmall [Tue, 2 Jun 2015 02:43:34 +0000 (22:43 -0400)]
guidebook status_hilite adjustment

9 years agooption name change to statushilites
nhmall [Tue, 2 Jun 2015 02:30:04 +0000 (22:30 -0400)]
option name change to statushilites
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex
modified:   include/flag.h
modified:   src/options.c
modified:   win/tty/wintty.c

example:
OPTIONS=statushilites
OPTIONS=hilite_status:hitpoints/30%/bright-magenta/normal

9 years agoMerge branch 'master' into status_hilite
nhmall [Tue, 2 Jun 2015 02:13:41 +0000 (22:13 -0400)]
Merge branch 'master' into status_hilite

Conflicts:
include/extern.h
win/tty/wintty.c

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

9 years agooops, Guidebook.tex paste error
nhmall [Tue, 2 Jun 2015 01:57:54 +0000 (21:57 -0400)]
oops, Guidebook.tex paste error

9 years agoready for testing
nhmall [Tue, 2 Jun 2015 01:41:00 +0000 (21:41 -0400)]
ready for testing
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex
modified:   include/config.h
modified:   win/tty/wintty.c

9 years agotty role selection when filter by options
PatR [Tue, 2 Jun 2015 01:18:47 +0000 (18:18 -0700)]
tty role selection when filter by options

Honor things like OPTIONS:role=!tourist and NETHACKOPTIONS='race=!orc'
when performing interactive role selection.  I don't think it was
completely correct when players let the program choose, but it must
have been close enough because we haven't gotten any complaints.
The post-3.4.3 interactive selection was ignoring options-base filtering
entirely and did get complaints for the pre-beta.

Role selection has a ton of code which bloats the program without doing
anything useful for actual game play.  It ought to be split off into a
separate front end.

9 years agofunctional state achieved
nhmall [Mon, 1 Jun 2015 23:37:25 +0000 (19:37 -0400)]
functional state achieved
 Changes to be committed:
modified:   win/tty/wintty.c

9 years agohilite_status: spaces in color names break option parsing
Alex Kompel [Mon, 1 Jun 2015 15:20:56 +0000 (08:20 -0700)]
hilite_status: spaces in color names break option parsing

9 years agoMerge branch 'master' into status_hilite
nhmall [Mon, 1 Jun 2015 13:09:44 +0000 (09:09 -0400)]
Merge branch 'master' into status_hilite

Conflicts:
include/extern.h
src/options.c

9 years agoReduce the number of gnomes with candles
Pasi Kallinen [Mon, 1 Jun 2015 12:56:23 +0000 (15:56 +0300)]
Reduce the number of gnomes with candles

Gnomes in mines during level generation have 1/20 chance of getting a candle
(should give approximately 4 candles in all of the mines total), and every
randomly generated gnome has 1/60 chance.

9 years agoMerge branch 'status_hilite' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Mon, 1 Jun 2015 12:35:07 +0000 (08:35 -0400)]
Merge branch 'status_hilite' of https://rodney.nethack.org:20040/git/NHsource into status_hilite

9 years agomore updates and on/off option
nhmall [Mon, 1 Jun 2015 12:33:17 +0000 (08:33 -0400)]
more updates and on/off option

9 years agoMerge branch 'status_hilite' of https://rodney.nethack.org:20040/git/NHsource into...
Alex Kompel [Mon, 1 Jun 2015 04:32:13 +0000 (21:32 -0700)]
Merge branch 'status_hilite' of https://rodney.nethack.org:20040/git/NHsource into status_hilite