]> granicus.if.org Git - nethack/log
nethack
4 years agoFix segfault when the Wizard tried teleporting on the planes
Pasi Kallinen [Mon, 14 Dec 2020 15:46:57 +0000 (17:46 +0200)]
Fix segfault when the Wizard tried teleporting on the planes

The wizard of Yendor tried teleporting to the stairs on the
plane of Earth, but there are none there.

This was caused by the stairs structure reworking.

Fixes #422

4 years agoMakefile.msc update for visual studio 16.8.3
nhmall [Mon, 14 Dec 2020 12:46:23 +0000 (07:46 -0500)]
Makefile.msc update for visual studio 16.8.3

4 years agodocument typo fixes in README.xcode
nhmall [Mon, 14 Dec 2020 12:20:14 +0000 (07:20 -0500)]
document typo fixes in README.xcode

Closes #424

4 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Mon, 14 Dec 2020 09:24:05 +0000 (04:24 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

4 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Mon, 14 Dec 2020 04:24:07 +0000 (23:24 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

4 years agogithub pull request #417 - disclosing apron text
PatR [Mon, 14 Dec 2020 11:30:58 +0000 (03:30 -0800)]
github pull request #417 - disclosing apron text

Adopt the patch to show the writing on any alchemy smocks in
hero's inventory during end of game disclosure.

I also added one more saying among the choices for alchemy
smock/apron.  It's based on a T-shirt descibed in a movie.
(I remember the description of the text but I don't remember
noticing anybody wearing the T-shirt that lead to that.)
Since so many of the smock quotes are about cooking, it seems
better to add it as an alchemy quote instead of just another
T-shirt where there'd be no context to explain it.

Closes #417

4 years agoQt 'game' menu tweak for OSX
PatR [Mon, 14 Dec 2020 10:11:53 +0000 (02:11 -0800)]
Qt 'game' menu tweak for OSX

Change "_Quit-without-saving" in the Game dropdown menu to be
"\177Quit-without-saving".  That makes the prefix used on OSX to
prevent matching "^[&]?[Qq][Uu][Ii][Tt].*" be invisible.

Also change the order of the choices for the command+Q and
application dropdown menu entry "quit nethack" so that "cancel
and return to game" is the default for arbitrary response to the
confirmation prompt.  <return> and <space> select "quit without
saving".  Note that the nethack dropdown menu is OSX-specific
(a Qt feature to emulate other OSX applications) and its
nethack->Quit action is separate-from/in-addition-to Game->Quit
menu action mentioned above (which runs nethack's #quit command).

4 years agohave <del> run #terrain
PatR [Mon, 14 Dec 2020 09:00:19 +0000 (01:00 -0800)]
have <del> run #terrain

Having recently noticed that using <del> aka <delete> aka <rubout>
could work as a command, assign it to #terrain.  #terrain was the
only command in the "game" subset of commands as shown by '? i'
that didn't have any key assignment.

Since <delete> might be swapped with <backspace> on some terminals
and is a keypad key on the typical PC keyboard, it might not work
reliably depending on nethack's number_pad mode or the hardware
Num-Lock setting.  Players in either of those situations haven't
lost anything; they can still use extended command #terrain.

4 years agoAdded mingw build.
Bart House [Mon, 14 Dec 2020 08:28:36 +0000 (00:28 -0800)]
Added mingw build.

4 years agoMake compiling the lua interpreter optional.
Bart House [Mon, 14 Dec 2020 08:24:05 +0000 (00:24 -0800)]
Make compiling the lua interpreter optional.

4 years agoWorking on getting WinGW building with Azure pipeline.
Bart House [Mon, 14 Dec 2020 04:38:56 +0000 (20:38 -0800)]
Working on getting WinGW building with Azure pipeline.

Fix typo recently introduced.  Allow LUATOP to be specified by pipeline.

4 years agoSwitch mingw build to use submodules in default path.
Bart House [Mon, 14 Dec 2020 04:31:01 +0000 (20:31 -0800)]
Switch mingw build to use submodules in default path.

4 years agoMerge branch 'master' into NetHack-3.7
Bart House [Mon, 14 Dec 2020 04:17:12 +0000 (20:17 -0800)]
Merge branch 'master' into NetHack-3.7

4 years agoAdding pdcurses submodule for MinGW build.
Bart House [Mon, 14 Dec 2020 03:44:15 +0000 (19:44 -0800)]
Adding pdcurses submodule for MinGW build.

4 years agoImprovements to azure pipeline.
Bart House [Mon, 14 Dec 2020 02:55:35 +0000 (18:55 -0800)]
Improvements to azure pipeline.

4 years agobargethrough/monster-vs-monster displacing
PatR [Sun, 13 Dec 2020 23:51:23 +0000 (15:51 -0800)]
bargethrough/monster-vs-monster displacing

Fix the regression that monster movement flag unification
introduced for monsters able to swap places with adjacent
monsters.  It used to be restricted in order to prevent
Riders swapping places with other Riders so that they didn't
repeatedly exchange places when one was right behind the other
and the farther one moved first.  Then when displacer beasts
were added, that restriction was extended to prevent them
swapping places with Riders (but not the other way around.)
The flags change inadvertently let any displacer swap with any
other displacer.

4 years agoQt: remove "Search [______]" from Help menu
PatR [Sun, 13 Dec 2020 21:45:04 +0000 (13:45 -0800)]
Qt: remove "Search [______]" from Help menu

Prevent Qt from inserting an extra entry in the Help dropdown
menu displayed in the menu bar across the top of the screen
when nethack has focus.  "Search [______]" lets the user enter
a string to search for but doesn't give nethack any control
over that so we can't have it.

I haven't found a sane way to get rid of it.  The insane way
of not naming any menu "Help" works.  This uses "\177Help" so
that it still looks like "Help" but won't match that string.

4 years agoXcode updates
nhmall [Sun, 13 Dec 2020 17:24:35 +0000 (12:24 -0500)]
Xcode updates

4 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Sun, 13 Dec 2020 16:24:07 +0000 (11:24 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

4 years agoensure a rebuild of include/nhlua.h after fetching Lua source
nhmall [Sun, 13 Dec 2020 15:40:02 +0000 (10:40 -0500)]
ensure a rebuild of include/nhlua.h after fetching Lua source

4 years agopurge trampoli.h
nhmall [Sun, 13 Dec 2020 15:27:49 +0000 (10:27 -0500)]
purge trampoli.h

4 years agoMake Death revive faster
Pasi Kallinen [Sun, 13 Dec 2020 10:28:42 +0000 (12:28 +0200)]
Make Death revive faster

Death will revive faster than the other riders.
Make all the riders revive after 67 turns, instead of 500.
There was practically a zero chance a rider would revive at 500,
so keep it somewhat sensible.

4 years agoImprove consistency of polearm targeting rules
Michael Meyer [Fri, 11 Dec 2020 23:13:56 +0000 (18:13 -0500)]
Improve consistency of polearm targeting rules

Multiple functions are involved in the process of targeting and
attacking an enemy with a polearm or lance, and these functions
previously used inconsistent tests to determine which targets were
legal.  For instance, find_poleable_mon would give up immediately if the
hero was blind, while neither get_valid_polearm_position nor use_pole
cared as long as the hero could detect a target on the square (e.g. by
ESP).  find_poleable_mon considered warning symbols as potential
targets, but use_pole discarded them.  get_valid_polearm_position
considered moats and pools to be illegal targets, but use_pole would
let the hero successfully hit a monster on those squares; on the
other hand, get_valid_polearm_position would mark squares that were not
visible and did not contain a known monster as legal targets, while
find_poleable_mon and use_pole would exclude them.

Obviously this was inconsistent and could introduce confusion for
polearm users, who would potentially need to explicitly target squares
marked "(illegal)" at some point over the course of their game, among
other problems.  This commit makes polearm targeting tests more
consistent; the following rules are applied to positions within the
appropriate range:

* Monsters which are detected by any means that reveals an actual
  monster glyph are legal to target, even if the hero is blind

* Monsters the hero cannot detect, but is aware of -- i.e. those
  represented by an 'I' -- are similarly legal to target

* Monsters detected via warning are not legal targets, since the hero
  does not have as strong a sense of where exactly they are, their shape
  and size, etc

* Statues are legal targets, but will not be suggested by
  find_poleable_mon unless the hero is impaired (confused, stunned, or
  hallucinating); the same is true of tame/peaceful monsters

* Apparently empty squares, including those containing an undetected
  monster, are legal to target unless they cannot be seen (whether due
  to blindness or a very dark room/level)

* Positions which are otherwise legal but are blocked by an obstruction like a
  tree or pillar are not legal targets

4 years agoFix azure pipeline build for linux/mac.
Bart House [Sun, 13 Dec 2020 05:41:24 +0000 (21:41 -0800)]
Fix azure pipeline build for linux/mac.

4 years agotowel adjustments
PatR [Sat, 12 Dec 2020 22:22:21 +0000 (14:22 -0800)]
towel adjustments

Consolidate a small amount of duplicate code from wet_a_towel()
and dry_a_towel().

4 years agoMakefile vs lua fix
PatR [Sat, 12 Dec 2020 22:10:18 +0000 (14:10 -0800)]
Makefile vs lua fix

I've been ignoring submodules so far.  For the old method of
dealing with lua, the instructions

You might need to do
  make spotless
  make fetch-lua

aren't adequate.  They should be

When lua version has changed in Makefile.top, before running
setup.sh to put that new Makefile in place, do
  make spotless
then
  sys/unix/setup.sh [hints/...]
  make fetch-lua

otherwise it will try to clean up the not yet fetched new lua
version instead of the old one.

4 years agofix github pull request #418 - towel wetness
PatR [Sat, 12 Dec 2020 20:04:20 +0000 (12:04 -0800)]
fix github pull request #418 - towel wetness

Fire damage would dry out a wet towel but never all the way to 0.
Water damage would wet a towel but if it was already wet, its
wetness might decrease.

This uses the pull request's change for increasing the wetness
but changes dry_a_towel so that the original code for decreasing
that will work as is.  Using wet_a_towel() to set wetness to 0
doesn't make much sense, so still won't do so; dry_a_towel() does
and now will.

This also adds missing perm_invent update for towels in inventory
changing wetness.

Fixes #418

4 years agoFix Azure pipeline introduced by only checking out a single repository.
Bart House [Sat, 12 Dec 2020 19:47:44 +0000 (11:47 -0800)]
Fix Azure pipeline introduced by only checking out a single repository.

If checking out a single repository, the repository is checked out
to the path $(Agent.BuildDirectory)\s instead of
$(Agent.BuildDirectory)\s\<name of repository>.  Modified checkout
to hard code path to avoid this change in behavior.

4 years agoAdd some new demonic and angelic maledictions
Pasi Kallinen [Sat, 12 Dec 2020 18:53:48 +0000 (20:53 +0200)]
Add some new demonic and angelic maledictions

From SpliceHack

4 years agofix #H3134 - selling container for credit
PatR [Sat, 12 Dec 2020 06:32:38 +0000 (22:32 -0800)]
fix #H3134 - selling container for credit

If a container holds anything that a shop wouldn't ordinarily
buy and sell and you sell it for gold, the 'foreign' contents
are marked no_charge and hero still owns them.  But selling the
same container+contents for credit instead of gold would take
shop possession of all the contents without increasing the
credit amount.

The fixes entry is longer than the fix.  It solves cited case but
I won't be surprised much if it messes up some other case(s).

4 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Sat, 12 Dec 2020 03:24:07 +0000 (22:24 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

4 years agouse .Substring to limit maintenance to major Lua version releases only
nhmall [Sat, 12 Dec 2020 03:35:37 +0000 (22:35 -0500)]
use .Substring to limit maintenance to major Lua version releases only

4 years agoFix Windows build break caused by bump to lua 5.4.2.
Bart House [Sat, 12 Dec 2020 02:45:44 +0000 (18:45 -0800)]
Fix Windows build break caused by bump to lua 5.4.2.

Modified Windows build to use submodules/lua for lua source.

4 years agoQt text search crash fix
PatR [Sat, 12 Dec 2020 02:11:27 +0000 (18:11 -0800)]
Qt text search crash fix

About 5 weeks ago, commit e4106bb1613da808ae87780dfeedb4c80e6afc2a
changed Qt's searching in text windows to be able to find a match
on the very first line.  It assumed that the first line would be
the current line except when repeating the same search after a
match.  But after a failed search the current line index is -1 and
starting a new search would crash trying to look that line up.

4 years agodowhatis formatting for Qt
PatR [Sat, 12 Dec 2020 01:15:21 +0000 (17:15 -0800)]
dowhatis formatting for Qt

The '/' command's variants /o, /O, /m, and /M use spaces to
align output in columns and that looks quite bad if rendered in
a proportional font.  Qt normally uses proportional font for
text windows but it watches the supplied lines for any with four
consecutive spaces and forces fixed-width font if it sees any.
So changing the existing separator line from "" to "    " makes
Qt format the dowhatis data as intended.

4 years agowarning suppression - unused static routine
PatR [Sat, 12 Dec 2020 01:01:43 +0000 (17:01 -0800)]
warning suppression - unused static routine

4 years agodon't miss the special furniture checks during liquid flow
nhmall [Fri, 11 Dec 2020 21:28:59 +0000 (16:28 -0500)]
don't miss the special furniture checks during liquid flow

Closes #405

4 years agoanother Lua version bit, this one a recent addition
nhmall [Fri, 11 Dec 2020 20:34:43 +0000 (15:34 -0500)]
another Lua version bit, this one a recent addition

4 years agoMonsters can revive corpses on floor with undead turning
Pasi Kallinen [Fri, 11 Dec 2020 17:49:21 +0000 (19:49 +0200)]
Monsters can revive corpses on floor with undead turning

... but only if the corpse is in direct line from the monster to hero

4 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Fri, 11 Dec 2020 14:24:07 +0000 (09:24 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

4 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Fri, 11 Dec 2020 14:24:04 +0000 (09:24 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

4 years agomore Lua 5.4.2 bits
nhmall [Fri, 11 Dec 2020 14:25:01 +0000 (09:25 -0500)]
more Lua 5.4.2 bits

4 years agosupport for build with current Lua version 5.4.2
nhmall [Fri, 11 Dec 2020 14:20:26 +0000 (09:20 -0500)]
support for build with current Lua version 5.4.2

This may require
     make spotless
     make fetch-lua
for some platforms.

4 years agomove .travis.yml to outdated for now
nhmall [Fri, 11 Dec 2020 14:11:09 +0000 (09:11 -0500)]
move .travis.yml to outdated for now

4 years agoGuidebook date bump
nhmall [Fri, 11 Dec 2020 13:46:39 +0000 (08:46 -0500)]
Guidebook date bump

4 years agofix Guidebook thinko
PatR [Fri, 11 Dec 2020 13:26:00 +0000 (05:26 -0800)]
fix Guidebook thinko

Fix the recently revised description of "#version".
'windowtype' doesn't have an underscore in it.

4 years agoadd the hardcoded menu control keys to key help
PatR [Fri, 11 Dec 2020 13:10:43 +0000 (05:10 -0800)]
add the hardcoded menu control keys to key help

'? k' shows menu controls in a fancy layout and '? i' lists the
same things in basic layout but both only showed the keys that
can be changed via option settings.  Add <return>, <space>, and
<escape> so that all relevant keys are listed together whether
re-bindable or not.  The description of <space> is accurate for
tty and curses but possibly not for other interfaces.

This also reorders how the controls are listed, moving next page
and previous page before first page and last page, and placing
invert between select and deselect rather than after both.

4 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Fri, 11 Dec 2020 00:24:07 +0000 (19:24 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

4 years agokey rush.numpad/M-5 doc
PatR [Thu, 10 Dec 2020 23:32:23 +0000 (15:32 -0800)]
key rush.numpad/M-5 doc

4 years agomore key bindings
PatR [Thu, 10 Dec 2020 23:06:26 +0000 (15:06 -0800)]
more key bindings

number_pad==1 adds
 '5' => 'G'
 M-5 => 'g'
 '0' => 'i'
number_pad==2 swaps 5 and M-5 and adds M-0
 '5' => 'g'
 M-5 => 'G'
 '0' => 'i'
 M-0 => 'I'

M-5 and M-0 were missing from the bound key handling; they still
used hardcoded digits even though the actions for plain 5 and
plain 0 can be bound to other keys these days.  This implements
the M-5 variation as NHKF_RUSH2.  Changing numpad from 1 to 2
or vice versa will swap the NHKF_RUN2 and NHKF_RUSH2 actions
regardless of what keys they're assigned to.  I haven't done
anything for unimplemented NHKF_DOINV2 though (and am not
planning to in case someone else wants to jump in...).

This also fixes the description of the 'I' command.  The extended
command name for that still misleadingly refers to "type" rather
than "class" though.

4 years agoRemove accidental compile warning flags
Pasi Kallinen [Thu, 10 Dec 2020 20:14:07 +0000 (22:14 +0200)]
Remove accidental compile warning flags

4 years agoMark unused parameters
Pasi Kallinen [Thu, 10 Dec 2020 20:08:32 +0000 (22:08 +0200)]
Mark unused parameters

4 years agoFixes bit for unifying the traps
Pasi Kallinen [Thu, 10 Dec 2020 17:04:04 +0000 (19:04 +0200)]
Fixes bit for unifying the traps

4 years agoRemove unused variables
Pasi Kallinen [Thu, 10 Dec 2020 16:51:40 +0000 (18:51 +0200)]
Remove unused variables

4 years agoUnify trap selector
Pasi Kallinen [Thu, 10 Dec 2020 16:39:09 +0000 (18:39 +0200)]
Unify trap selector

4 years agoUnify vibrating square
Pasi Kallinen [Thu, 10 Dec 2020 16:28:00 +0000 (18:28 +0200)]
Unify vibrating square

4 years agoUnify magic portals
Pasi Kallinen [Thu, 10 Dec 2020 16:10:05 +0000 (18:10 +0200)]
Unify magic portals

4 years agoRemove unused label
Pasi Kallinen [Thu, 10 Dec 2020 16:07:30 +0000 (18:07 +0200)]
Remove unused label

4 years agoUnify rolling boulder traps
Pasi Kallinen [Thu, 10 Dec 2020 16:06:49 +0000 (18:06 +0200)]
Unify rolling boulder traps

4 years agoUnify landmines
Pasi Kallinen [Thu, 10 Dec 2020 16:03:06 +0000 (18:03 +0200)]
Unify landmines

4 years agoUnify polymorph traps
Pasi Kallinen [Thu, 10 Dec 2020 15:58:48 +0000 (17:58 +0200)]
Unify polymorph traps

4 years agoUnify anti magic traps
Pasi Kallinen [Thu, 10 Dec 2020 15:55:06 +0000 (17:55 +0200)]
Unify anti magic traps

4 years agoUnify fire traps
Pasi Kallinen [Thu, 10 Dec 2020 15:38:25 +0000 (17:38 +0200)]
Unify fire traps

4 years agoUnify statue traps
Pasi Kallinen [Thu, 10 Dec 2020 15:35:14 +0000 (17:35 +0200)]
Unify statue traps

4 years agoUnify webs
Pasi Kallinen [Thu, 10 Dec 2020 15:17:22 +0000 (17:17 +0200)]
Unify webs

4 years agoUnify holes, level teleport and teleport traps
Pasi Kallinen [Thu, 10 Dec 2020 15:09:15 +0000 (17:09 +0200)]
Unify holes, level teleport and teleport traps

4 years agoUnify pits
Pasi Kallinen [Wed, 9 Dec 2020 17:36:52 +0000 (19:36 +0200)]
Unify pits

4 years agoUnify fire trap
Pasi Kallinen [Wed, 9 Dec 2020 17:10:46 +0000 (19:10 +0200)]
Unify fire trap

4 years agoUnify rust trap
Pasi Kallinen [Wed, 9 Dec 2020 17:06:10 +0000 (19:06 +0200)]
Unify rust trap

4 years agoUnify sleeping gas trap
Pasi Kallinen [Wed, 9 Dec 2020 17:01:15 +0000 (19:01 +0200)]
Unify sleeping gas trap

4 years agoUnify bear trap
Pasi Kallinen [Wed, 9 Dec 2020 16:57:51 +0000 (18:57 +0200)]
Unify bear trap

4 years agoUnify squeaky board
Pasi Kallinen [Wed, 9 Dec 2020 16:50:55 +0000 (18:50 +0200)]
Unify squeaky board

4 years agoUnify rocktrap
Pasi Kallinen [Wed, 9 Dec 2020 16:47:54 +0000 (18:47 +0200)]
Unify rocktrap

4 years agoUnify dart trap
Pasi Kallinen [Wed, 9 Dec 2020 16:31:25 +0000 (18:31 +0200)]
Unify dart trap

4 years agoUnify arrow trap
Pasi Kallinen [Wed, 9 Dec 2020 16:27:31 +0000 (18:27 +0200)]
Unify arrow trap

4 years agoSplit trap effects out of dotrap
Pasi Kallinen [Wed, 9 Dec 2020 16:02:31 +0000 (18:02 +0200)]
Split trap effects out of dotrap

4 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Thu, 10 Dec 2020 09:24:07 +0000 (04:24 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

4 years agoyet more key bindings - lack of same...
PatR [Thu, 10 Dec 2020 09:07:07 +0000 (01:07 -0800)]
yet more key bindings - lack of same...

When ?i shows key bindings, at the end of each group (movement,
prefixes, general, game, debug) report any commands for that
group which don't have any key assigned.  Movement and prefixes
all have keys; they'd be pretty useless without and key bindings
won't override movement commands. For general, the "keyless" are
|#exploremode
|#herecmdmenu
|#therecmdmenu
after this adds the relevant flag to their command definitions;
for game, "#terrain" is the only one; the debug section has 20.

There is a known problem that I've going to pretend that I didn't
notice:  if I use BIND=D:takeoffall then 'A' becomes unassigned,
'D' invokes #takeoffall, "#droptype" becomes keyless, and ?i
reports those correctly.  But if I use BIND=M:takeoffall, 'A'
becomes unassigned, 'M' continues to be its usual prefix, and
the "#takeoffall" command is nowhere to be seen.  The code that
tracks assignments is letting that case fall through the cracks.
'M' ends up assigned to both and the ?i code deliberately only
shows the first.

4 years agoGuidebook catchup
PatR [Thu, 10 Dec 2020 09:01:04 +0000 (01:01 -0800)]
Guidebook catchup

The command rename "#seegold" to "#showgold" that also revised
a few of the short command desctipions didn't include a Guidebook
update.  So here one is.

4 years agotxt2key() - parsing key binding specifications
PatR [Thu, 10 Dec 2020 00:52:54 +0000 (16:52 -0800)]
txt2key() - parsing key binding specifications

While testing some addtional ?i (list of key assignments)
changes, I wanted to give every key a binding.  When I tried
BIND=M-^A:exploremode
the text to key conversion didn't like that.  This adds support
for M-^x and M-C-x plus variations where dashes are omitted.

This adds support for ^? even though that isn't really a
control character.  I bound #terrain to it and surprising--to
me at least--the <delete> key worked to invoke that command.

Also changes 'char txt2key(...)' to be 'uchar txt2key(...)'.

4 years agokeylist help (? i) fixes
PatR [Tue, 8 Dec 2020 23:58:02 +0000 (15:58 -0800)]
keylist help (? i) fixes

I was implementing a routine to show all the key bindings
when I discovered that we already have one.  This fixes a few
small problems:  'n' prefix for number entry was missing for
number_pad mode.  Meta+<direction> for running in number_pad
mode was missing too.  ^A was present but being suppressed by
lack of #define for obsolete #if REDO.  And ^C was shown as ^c
while all other ^ characters appear in upper case.  Once ^A
appeared as the line before it, the inconsistency stood out.

I also changed the slightly verbose "Shift-<direction>" and
"Ctrl-<direction>" entries below the direction grid to use plus
instead of minus signs.  Plus emphasizes that two things are
combined so seems more intuitive.  (I left "M-c" alone.)

4 years agoNOSUSPEND
PatR [Tue, 8 Dec 2020 20:58:36 +0000 (12:58 -0800)]
NOSUSPEND

Provide a hook to inhibit unixconf.h from defining SUSPEND
without the need to modify it:  #define NOSUSPEND in config.h
or add -DNOSUSPEND to CFLAGS.  Similar to long-standing NOSHELL
for inhibiting SHELL.

4 years agoUpdate to azure pipeline.
Bart House [Tue, 8 Dec 2020 18:27:30 +0000 (10:27 -0800)]
Update to azure pipeline.

4 years agoDetection map redisplay routine code deduplication
Pasi Kallinen [Tue, 8 Dec 2020 15:08:57 +0000 (17:08 +0200)]
Detection map redisplay routine code deduplication

4 years agoFix: genetic engineers dropping Schroedinger's cat box.
k21971 [Mon, 7 Dec 2020 20:53:01 +0000 (20:53 +0000)]
Fix: genetic engineers dropping Schroedinger's cat box.

Only quantum mechanics are supposed to have a chance of death-dropping the
Schroedinger's cat box.

Slash'Em already had this but it was missed when Genetic engineers were ported
over.

4 years agofix #3120,#3122 - dwarf pass_wall without digging
PatR [Mon, 7 Dec 2020 20:46:46 +0000 (12:46 -0800)]
fix #3120,#3122 - dwarf pass_wall without digging

I couldn't reproduce this so can't confirm that this fix works,
but inspection of the code reveals that something was missing
in the unified mon movement flags code.  I think what has been
happening is that a dwarf without a pick-axe might not bother
wielding that but movement behaved as if it had, then digging
decided it wasn't.

4 years agominor corrections to Cross-compiling doc
nhmall [Mon, 7 Dec 2020 13:00:30 +0000 (08:00 -0500)]
minor corrections to Cross-compiling doc

4 years agoextended command help
PatR [Mon, 7 Dec 2020 11:08:32 +0000 (03:08 -0800)]
extended command help

The two or three (wizard mode) menu choices at the start of
the '# ?' help menu look enough like headers that it can be
confusing.  They're asking about changing the view of commands
to what those entries describe, but if considered as headers
they're describing the opposite of what is currently displayed.
Make them more verbose to try to clarify the situation.

This also moves the 'm' flag in front of the 'A' in the middle
column (of name, flag(s), description) when they both apply.

4 years agoQt extended commands: menu teardown and rebuild
PatR [Mon, 7 Dec 2020 09:05:37 +0000 (01:05 -0800)]
Qt extended commands: menu teardown and rebuild

Change qt_get_ext_cmd() to handle calling the extended command
selection menu again after player clicks on Filter/Layout/Reset
instead of relying on the core to do that.  (In order to change
the menu, instead of attempting to reconfigure that on the fly
it returns to caller and then puts up a new menu with different
settings when called back.  Initial checkin relied on the core
for the call back; this maintains full control for that within
the Qt interface code.)

4 years agoRemove duplicate wallify_map code
Pasi Kallinen [Sun, 6 Dec 2020 16:36:37 +0000 (18:36 +0200)]
Remove duplicate wallify_map code

4 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Sun, 6 Dec 2020 02:24:07 +0000 (21:24 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

4 years agoUnify spitmu and spitmm
Pasi Kallinen [Sun, 6 Dec 2020 11:57:50 +0000 (13:57 +0200)]
Unify spitmu and spitmm

4 years agoQt extended commands enhancement
PatR [Sun, 6 Dec 2020 10:58:05 +0000 (02:58 -0800)]
Qt extended commands enhancement

For Qt's pick-an-exetended-command dialog, allow a player to
toggle the grid layout from column-oriented to row-oriented
and vice versa and when in wizard mode to cycle the set of
shown (and typable) commands from 'all' to 'normal mode-only'
to 'wizard mode-only' back to 'all'.  The most recent values
are saved by Qt along with tile size, font size, and some other
stuff.  The extended command dialog has a Reset button to force
them (the two extended command values) back to their defaults.

The dialog layout has a slight change to conserve screen space
as well as three additional control buttons:
Was                                  Now
| [             Cancel            ]  | [Cancel] [Filter][Layout][Reset ]
|#                                   |#            Grid Title
|             Grid title             | [cmd 1] [cmd R+1] [cmd 2*R+1] ...
| [cmd 1] [cmd R+1] [cmd 2*R+1] ...  | [cmd 2] [cmd R+2]
| [cmd 2] [cmd R+2]                  |...
|...                                 | [cmd R] [cmd 2*R]
| [cmd R] [cmd 2*R]
'#' is the prompt where typed text gets echoed and 'R' is the
number of rows in the grid and varies by the set of commands
from the current filter.  Grid dimensions have been adjusted:
'all' is 13x9, 'normal' is 13x7, and 'wizard' is 7x4 or 4x7
depending on layout orientation.

The wizard mode-only filter setting probably isn't very useful
because you can only type--or click on--commands which are
visible.  So when set to wizard mode-only, you can't #quit for
instance.  (Via extended command; there are still menu choices
for that particular action.  And it's trivial to change filter.)

4 years agoQt's window menus
PatR [Sun, 6 Dec 2020 03:37:03 +0000 (19:37 -0800)]
Qt's window menus

Qt on OSX is inserting "Search [_____]" as the first entry in
the Help dropdown menu (the one in the toolbar at the top of the
desttop).  While trying--and failing--to figure out how to get
rid of that, I cleaned up a little bit of the old menu hackery
(that tries to workaround the fact that Qt on OSX insists that
some menu actions--based solely on their names--should go into
the appication menu rather than whichever menu the program is
trying to insert them into).  The only observeable difference
is that 'About NetHack-Qt' will be at the top (actually second
because of that Search one) of the Help dropdown, where it is on
non-OSX builds, rather than last.

This tries to make the program name consistent too, changing
several instances of "Qt NetHack" to be "NetHack-Qt".  The latter
is the name being set up as ApplicationName in qt_bind.cpp that
gets used when Qt stashes the Qt-specific settings wherever it
stashes them.

It also makes another tweak in formatting of 'About NetHack-Qt',
inserting one explicit line break to avoid some poor looking line
wrapping.  I still haven't figured out how to control that popup's
size.

4 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Sun, 6 Dec 2020 01:32:17 +0000 (17:32 -0800)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

4 years agoAdding Azure pipeline YAML.
Bart House [Sun, 6 Dec 2020 01:31:59 +0000 (17:31 -0800)]
Adding Azure pipeline YAML.

4 years agoTypo in impossible message in spitmm
Patric Mueller [Sat, 5 Dec 2020 23:27:56 +0000 (00:27 +0100)]
Typo in impossible message in spitmm

4 years agoconflicting 'bullets'
PatR [Sat, 5 Dec 2020 20:32:52 +0000 (12:32 -0800)]
conflicting 'bullets'

This was pointed out several years ago.  Since tho different
'static bullets[]' contain different values, give them distinct
names.

4 years agoreadable conical hats
PatR [Sat, 5 Dec 2020 20:29:38 +0000 (12:29 -0800)]
readable conical hats

Let tourists read cornuthaum ("WIZZARD") and dunce cap ("DUNCE").
One out of three will have those words, the other two will yield
"you can't find anything to read on this ___" where ___ is either
"conical hat" or "cornuthaum" or "dunce cap" depending upon hat
type and discovery status.

Even when a dunce cap says "DUNCE" it won't become discovered,
just offer the player an opportunity to apply a name.

Other roles still fall through to the "That's a silly thing to
read" feedback.

Not intended to be logical...

4 years agoIncrement EDITLEVEL
Pasi Kallinen [Sat, 5 Dec 2020 17:38:16 +0000 (19:38 +0200)]
Increment EDITLEVEL

Forgot to increment EDITLEVEL when I did the stairs change,
and again after fixing the Oracle bones stairs. Lets do it now.