]> granicus.if.org Git - nethack/log
nethack
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

9 years agowin32-gui: parse value of gold correctly for status hilite
Alex Kompel [Mon, 1 Jun 2015 04:31:27 +0000 (21:31 -0700)]
win32-gui: parse value of gold correctly for status hilite

9 years agoGuidebook updates (misc).
karnov [Mon, 1 Jun 2015 02:29:08 +0000 (22:29 -0400)]
Guidebook updates (misc).

9 years agomondata.c formatting cleanup, ancient AIX PS/2 bug
PatR [Mon, 1 Jun 2015 00:18:06 +0000 (17:18 -0700)]
mondata.c formatting cleanup, ancient AIX PS/2 bug

When looking to see whether the monsndx() panic could provide any more
useful information [if a pointer that's supposed to point into the
mons[] array doesn't, I don't think that there's a whole lot of other
information available aside from whether it is null or not, and that's
implicitly provided already], I went through the whole file cleaning up
the formatting and making sure every routine was preceded by a short
(usually one line) comment.

There were a few bits of code reorganization.  I changed little_to_big
to have a single point of return.  The 25 year old workaround for a
compiler bug on a defunct platform may or may not still be applicable;
I took that out.  If we get segfault reports for AIX on PS/2, this is
the first place to look.  (big_to_little is nearly identical and didn't
have the same workaround.  Not needed, or not called often enough for
any AIX PS/2 user to be affected?)

9 years agomore work on the tty status_hilite code
nhmall [Sun, 31 May 2015 23:39:28 +0000 (19:39 -0400)]
more work on the tty status_hilite code
 Changes to be committed:
modified:   include/wintty.h
modified:   src/botl.c
modified:   win/tty/wintty.c

9 years agoyet more updates
nhmall [Sun, 31 May 2015 20:50:08 +0000 (16:50 -0400)]
yet more updates
 Changes to be committed:
modified:   include/botl.h
modified:   include/extern.h
modified:   include/wintty.h
modified:   src/botl.c
modified:   src/options.c
modified:   src/windows.c
modified:   win/tty/wintty.c

get the tty versions started

9 years agomore updates
nhmall [Sun, 31 May 2015 19:18:59 +0000 (15:18 -0400)]
more updates
 Changes to be committed:
modified:   include/botl.h
modified:   src/botl.c
modified:   src/windows.c
modified:   win/tty/wintty.c

9 years agosome code rearrangement/cleanup in botl.c
nhmall [Sun, 31 May 2015 18:45:29 +0000 (14:45 -0400)]
some code rearrangement/cleanup in botl.c

9 years agonotify windowport of hilites when status is initialized
nhmall [Sun, 31 May 2015 16:06:18 +0000 (12:06 -0400)]
notify windowport of hilites when status is initialized
 Changes to be committed:
modified:   src/botl.c

9 years agomore adjustments
nhmall [Sun, 31 May 2015 15:56:55 +0000 (11:56 -0400)]
more adjustments
 Changes to be committed:
modified:   src/botl.c
modified:   src/options.c

9 years agomore status_hilite work
nhmall [Sun, 31 May 2015 15:54:06 +0000 (11:54 -0400)]
more status_hilite work
 Changes to be committed:
modified:   include/extern.h
modified:   src/botl.c
modified:   src/options.c
modified:   src/windows.c

defer notification of the window port until after
proper initialization. Options are processed very
early in 3.6.0

9 years agointerim updates
nhmall [Sun, 31 May 2015 14:26:54 +0000 (10:26 -0400)]
interim updates
 Changes to be committed:
modified:   include/botl.h
modified:   src/botl.c
modified:   src/windows.c
modified:   win/tty/wintty.c

Move the windowport stuff out of botl.c and into windows.c
where it belongs.

9 years agolast? Sting
PatR [Sun, 31 May 2015 08:24:19 +0000 (01:24 -0700)]
last? Sting

If Sting is glowing when blindness gets toggled, give a new "glowing"
message.

So instead of
  Sting glows blue! [...] You can't see! [...] Sting stops quivering.
if you're still blind when the last orc goes away, or
  Sting quivers slightly. [...] You can see again. [...] Sting stops
  glowing.
if you were blind when the first orc arrived, now you'll get an
intermediate message between the second and third ones.  'Sting is
quivering' for the first case, 'Sting is glowing' for the second.
No matter how many times blindness toggles back and forth, the final
"stops glowing" or "stops quivering" will be consistent with the most
recent "is glowing" or "is quivering".

9 years agoSting again
PatR [Sun, 31 May 2015 07:44:40 +0000 (00:44 -0700)]
Sting again

When formatting uwep, verify that warning comes from wielded weapon
before appending "(glowing <color>)".

9 years agoUse a menu to pick a container to tip
Pasi Kallinen [Sun, 31 May 2015 07:13:49 +0000 (10:13 +0300)]
Use a menu to pick a container to tip

If there is more than one container, the #tip command will show a menu;
if there's just one container, prompt for tipping.

As per Boudewijn's suggestion, remove the superfluous
"There is a container here" message.

9 years agomore Sting,&c
PatR [Sun, 31 May 2015 05:41:30 +0000 (22:41 -0700)]
more Sting,&c

Add "(glowing light blue)" to the formatted object description when
Sting or Orcrist is glowing due to presence of orcs or "(glowing red)"
if Grimtooth is glowing due to elves.  Use "(glowing)" if blind;
assumes that some aspect of the glow (perhaps warmth or vibration) can
be noticed via touch.

Make enlightenment's "you are warned about <monster class> because of
<artifact>" catch up with Orcrist and Grimtooth.  It was attributing
Orcrist's warning against orcs to Sting, and Grimtooth's warning was
against "something" rather than elves.

The glow color is now a new field in artilist[], so the biggest part
of this patch is adding an extra value to each artifact's definition.

9 years agoMerge branch 'master' into status_hilite
nhmall [Sun, 31 May 2015 02:23:25 +0000 (22:23 -0400)]
Merge branch 'master' into status_hilite

9 years agosome updates
nhmall [Sun, 31 May 2015 02:22:39 +0000 (22:22 -0400)]
some updates
 Changes to be committed:
modified:   include/botl.h
modified:   src/botl.c

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

9 years agosome documentation updates
nhmall [Sun, 31 May 2015 02:06:02 +0000 (22:06 -0400)]
some documentation updates
 Changes to be committed:
modified:   dat/history
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

- include new 3.6.0 beta testers in dungeoneers list

9 years agoget_cost_from_price
PatR [Sun, 31 May 2015 01:22:14 +0000 (18:22 -0700)]
get_cost_from_price

I couldn't figure out why walking over a container in a shop might
give the wrong price; the code looks correct.  But I've reorganized
get_cost_from_price to perform the cheapest tests first.  The u.ushops
check should probably be done in doname to avoid calling this routine
at all 99.99% of the time.

9 years agodisoriented teleport attempt
PatR [Sat, 30 May 2015 19:30:54 +0000 (12:30 -0700)]
disoriented teleport attempt

Reported for pre-beta, getting "you feel disoriented" when attempting
to teleport within a level while carrying the Amulet, you still ended
up teleporting.  Wizard mode allows the disorientation to be overridden
but the logic was wrong.  It worked as intended when in wizard mode but
unintentionally always overrode disorientation when not in that mode.

9 years agoMerge branch 'master' into status_hilite
nhmall [Sat, 30 May 2015 14:59:39 +0000 (10:59 -0400)]
Merge branch 'master' into status_hilite

9 years agoformatting fix
nhmall [Sat, 30 May 2015 08:56:24 +0000 (04:56 -0400)]
formatting fix

9 years agomenucolors parsing
PatR [Sat, 30 May 2015 08:25:46 +0000 (01:25 -0700)]
menucolors parsing

Revise the menucolor parsing (color and attribute portion, not the
regexp part) to switch to the string matching used for wishing in
order to allow space in the "light <foo>" entries instead of forcing
the two words to be run together.  Having them be run together still
works, as does use of dash or underscore to separate the two words.
So the canonical form for light blue is now "light blue" instead of
"lightblue", but all of "light blue", "lightblue", "light-blue", and
"light_blue" match it.  (So do weird things like "--li-gh_-_tbl ue _"
but I won't lose any sleep over that.)

Almost all of this if formatting; mostly blank line after declarations
but also there was new stuff that didn't match the recent reformat.

9 years agoadd warning glow for Orcrist & Grimtooth
PatR [Sat, 30 May 2015 00:42:15 +0000 (17:42 -0700)]
add warning glow for Orcrist & Grimtooth

Make Orcrist glow light blue when orcs are present, just like Sting.
(Sting supposedly glowed because it was made by the elves of Gondolin
rather than any particular attribute built into it, and Orcrist was
made there too.  I think it also glowed in the Hobbit; that was how
Bilbo recognized what the situation was when he first saw Sting glow.
Maybe it was the other sword rather than Orcrist, but they were treated
as being functionally equivalent.)

Also make Grimtooth glow red when elves are present.  That's from thin
air, to give it some novelty.  Unlike Sting, whose double-damage bonus
is restricted to orc targets, Grimtooth's weak 1d6 bonus still applies
to all targets.

9 years ago'Du' bug with non-empty containers
PatR [Fri, 29 May 2015 22:46:13 +0000 (15:46 -0700)]
'Du' bug with non-empty containers

ckunpaid() had the same coding error as allow_category().  A hero-owned
container holding hero-owned contents followed in invent an any unpaid
object was mis-classified unpaid.

9 years agoAdjust the getpos() hint for naming a floor object if the hero happens
PatR [Fri, 29 May 2015 22:14:38 +0000 (15:14 -0700)]
Adjust the getpos() hint for naming a floor object if the hero happens
to polymorphed into something which is hiding under an object.

Also, make the attempt to name a floor object while hallucinating give
a more interesting result.

9 years agoAdd vibrasquare symbol to Guidebooks
Pasi Kallinen [Fri, 29 May 2015 19:47:39 +0000 (22:47 +0300)]
Add vibrasquare symbol to Guidebooks

9 years agoRenumber glyphs for vibrasquare trap conversion
Pasi Kallinen [Fri, 29 May 2015 19:42:11 +0000 (22:42 +0300)]
Renumber glyphs for vibrasquare trap conversion

9 years agoFix typo in potion dilution message, found by Raisse
Pasi Kallinen [Fri, 29 May 2015 10:20:20 +0000 (13:20 +0300)]
Fix typo in potion dilution message, found by Raisse