]> granicus.if.org Git - nethack/log
nethack
5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Sun, 3 Nov 2019 15:52:46 +0000 (07:52 -0800)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoChanges to windows based discussion of .nethackrc.
Bart House [Sun, 3 Nov 2019 15:52:33 +0000 (07:52 -0800)]
Changes to windows based discussion of .nethackrc.

5 years agouse new Windows file names
nhmall [Sun, 3 Nov 2019 02:43:25 +0000 (22:43 -0400)]
use new Windows file names

5 years agoWindows Makefile catch-up bits
nhmall [Sun, 3 Nov 2019 02:33:34 +0000 (22:33 -0400)]
Windows Makefile catch-up bits

5 years agoRenamed configuration file for windows to .nethackrc.
Bart House [Sun, 3 Nov 2019 02:11:26 +0000 (19:11 -0700)]
Renamed configuration file for windows to .nethackrc.

Also adjusted name of template files populated during windows builds.

5 years agoUpdated guidebook to discuss new loc and name of configuration file on win.
Bart House [Sun, 3 Nov 2019 01:18:48 +0000 (18:18 -0700)]
Updated guidebook to discuss new loc and name of configuration file on win.

5 years agoRenamed defaults.nh to .nethackrc for windows.
Bart House [Sun, 3 Nov 2019 01:18:02 +0000 (18:18 -0700)]
Renamed defaults.nh to .nethackrc for windows.

5 years agoRemoved the redundant #if definded(MSDOS).
Bart House [Sun, 3 Nov 2019 01:17:10 +0000 (18:17 -0700)]
Removed the redundant #if definded(MSDOS).

5 years agocouple of Guidebook.tex bits
PatR [Sun, 3 Nov 2019 00:15:54 +0000 (17:15 -0700)]
couple of Guidebook.tex bits

More symbols:  I left out a word on the continutation line for S_stone
and S_tool has been forcing narrow space where ordinary <comma><space>
was intended.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Sat, 2 Nov 2019 23:57:57 +0000 (16:57 -0700)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoUpdates to fixes36.3 for recent work.
Bart House [Sat, 2 Nov 2019 23:57:43 +0000 (16:57 -0700)]
Updates to fixes36.3 for recent work.

5 years agoGuidebook.tex catch up, Guideboon.mn bits
PatR [Sat, 2 Nov 2019 23:05:39 +0000 (16:05 -0700)]
Guidebook.tex catch up, Guideboon.mn bits

Guidebook.tex not tested.  The \, in the continuation of S_stone is
a narrow space in LaTeX.  It should be \hspace{ width of '(' } but
I don't remember how to measure something in LaTeX or TeX.

Guidebook.mn is getting two small changes:  I forgot about the
guideline that each sentence be on its own line.  Also, this adds the
fix for wide lines in the dungeoneers list although the reordering
accompanying a recent change might have made that moot (unless some
future reordering puts wide names on the same line again, assuming
that was the issue).

5 years agoMake type Win10 and gWin10 local to win10.c module.
Bart House [Sat, 2 Nov 2019 19:10:13 +0000 (12:10 -0700)]
Make type Win10 and gWin10 local to win10.c module.

5 years agoFix cut and paste error in output string.
Bart House [Sat, 2 Nov 2019 18:51:20 +0000 (11:51 -0700)]
Fix cut and paste error in output string.

5 years agoMove is_desktop_bridge() api to win10 wrapper.
Bart House [Sat, 2 Nov 2019 18:39:11 +0000 (11:39 -0700)]
Move is_desktop_bridge() api to win10 wrapper.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 2 Nov 2019 13:32:22 +0000 (09:32 -0400)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agomissing constants on mingw build fix
nhmall [Sat, 2 Nov 2019 13:23:34 +0000 (09:23 -0400)]
missing constants on mingw build fix

Errors seen during build:
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_ProgramData[.refptr.FOLDERID_ProgramData]+0x0): undefined reference to `FOLDERID_ProgramData'
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_LocalAppData[.refptr.FOLDERID_LocalAppData]+0x0): undefined reference to `FOLDERID_LocalAppData'
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_Profile[.refptr.FOLDERID_Profile]+0x0): undefined reference to `FOLDERID_Profile'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [Makefile:849: ../binary/NetHack.exe] Error 1

DEFINE_KNOWN_FOLDER is using this particular definition in the mingw
header files:

rather than this one:

So, the known folder values that recent code is using such as
FOLDERID_ProgramData, FOLDERID_LocalAppData, and FOLDERID_Profile are
being declared as external constants.

That is why the error is a link error. We need to include -luuid on
the link command line because those external constants are defined
in uuid.lib.

5 years agoGuidebook.mn Symbols section
PatR [Sat, 2 Nov 2019 10:32:35 +0000 (03:32 -0700)]
Guidebook.mn Symbols section

The table listing symset entries was ok for ps/pdf output but for
plain text output it was wrapping to a second line for S_xan,
S_pet_override, and S_player_override and also going past the right
margin for some others.  I've shortened the text for those three
and narrowed the first column to give more room for the third column,
bringing all the lines within their margin.

The entry for S_stone was rather surprising:  "dark part of a room".
It now says "solid rock or unexplored terrain or dark part of a room"
and needed to span two lines.

The first column has been labeled "Default" but that was why that
column was wider than necessary.  It now has a label of two spaces
and is left justified instead of being centered.  It is also now
forcing constant-width Roman as the font and every character in that
column should be the same size so one reason for centering is removed.

The title used to be centered but always looked a bit off due to the
fact that the three columns have differing widths and/or because of
the over-wide lines changing the location of "center".  It is now
left justified and looks a little bit like it's labeling the first
column.  Perhaps it needs a blank line separating it from the rest.

Guidebook.tex is lagging again.

5 years agoPrevent leashing monsters with no extremities
Pasi Kallinen [Sat, 2 Nov 2019 09:40:12 +0000 (11:40 +0200)]
Prevent leashing monsters with no extremities

... and also unsolid monsters.

5 years agoname correction
nhmall [Sat, 2 Nov 2019 05:44:00 +0000 (01:44 -0400)]
name correction

5 years agodungeoneers update
nhmall [Sat, 2 Nov 2019 05:40:58 +0000 (01:40 -0400)]
dungeoneers update

5 years agobump Windows supported version in mingw-w64 sys/winnt/Makefile.gcc
nhmall [Sat, 2 Nov 2019 05:03:02 +0000 (01:03 -0400)]
bump Windows supported version in mingw-w64 sys/winnt/Makefile.gcc

mingw-w64 sys/winnt/Makefile.gcc required a Windows version bump from
0x0501 to 0x0601 (XP level to Windows 7 level) during compile in
order for the mingw system header files to include some of the
needed support for recent Windows port changes.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Fri, 1 Nov 2019 20:33:30 +0000 (16:33 -0400)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoRevert "quiet a mingw warning"
nhmall [Fri, 1 Nov 2019 20:33:04 +0000 (16:33 -0400)]
Revert "quiet a mingw warning"

This reverts commit e33dfed4561d8184d17f751dde901294387183f7.

5 years agoFix pet polyed to long worm staying leashed
Pasi Kallinen [Fri, 1 Nov 2019 17:04:24 +0000 (19:04 +0200)]
Fix pet polyed to long worm staying leashed

Long worms cannot be leashed, but polymorphing a leashed pet
into a long worm kept it leashed.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Fri, 1 Nov 2019 16:49:15 +0000 (12:49 -0400)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agomore doc updates and tweaks
nhmall [Fri, 1 Nov 2019 16:48:09 +0000 (12:48 -0400)]
more doc updates and tweaks

5 years agoNew package submitted to microsoft store.
Bart House [Fri, 1 Nov 2019 03:37:43 +0000 (20:37 -0700)]
New package submitted to microsoft store.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Fri, 1 Nov 2019 03:18:41 +0000 (20:18 -0700)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoChanges to player selection dialog support to respond to per-monitor DPI.
Bart House [Fri, 1 Nov 2019 03:18:27 +0000 (20:18 -0700)]
Changes to player selection dialog support to respond to per-monitor DPI.

5 years agoquiet a mingw warning
nhmall [Thu, 31 Oct 2019 23:43:59 +0000 (19:43 -0400)]
quiet a mingw warning

5 years agotry to improve some reported TeX Guidebook to pdf results
nhmall [Thu, 31 Oct 2019 23:22:05 +0000 (19:22 -0400)]
try to improve some reported TeX Guidebook to pdf results

5 years agodoc updates
nhmall [Thu, 31 Oct 2019 17:27:10 +0000 (13:27 -0400)]
doc updates

5 years agounintentional change
nhmall [Thu, 31 Oct 2019 16:50:12 +0000 (12:50 -0400)]
unintentional change

5 years agoGuidebook.tex fix
nhmall [Thu, 31 Oct 2019 16:46:33 +0000 (12:46 -0400)]
Guidebook.tex fix

5 years agoWindows: link with ole32.lib and shell32.lib
nhmall [Thu, 31 Oct 2019 16:16:03 +0000 (12:16 -0400)]
Windows: link with ole32.lib and shell32.lib

5 years agomsdos build fix following recent files.c change
nhmall [Thu, 31 Oct 2019 16:00:59 +0000 (12:00 -0400)]
msdos build fix following recent files.c change

5 years agofix #H9374 - initial rendering of guardian angel
PatR [Thu, 31 Oct 2019 13:57:16 +0000 (06:57 -0700)]
fix #H9374 - initial rendering of guardian angel

Creation of guardian angel bypasses tamedog() and marks it tame
directly but it wasn't updating the map after changing the monster.
So if 'hilite_pet' was On when entering the Astral Plane level, the
angel appeared to be ordinary monster rather than a tame one until
it moved or the screen was redrawn.  Also, the message about it
appearing was issued before marking it tame, so a tiny bit of code
reordering has been done to get the sequence correct.

5 years agocatch Guidebook.tex up with Guidebook.mn
PatR [Thu, 31 Oct 2019 12:31:39 +0000 (05:31 -0700)]
catch Guidebook.tex up with Guidebook.mn

Only with the past couple of changes, not a complete reconciliation.

Not tested.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Thu, 31 Oct 2019 02:17:20 +0000 (19:17 -0700)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoSave a copy of the symbols file to symbols.save when updating.
Bart House [Thu, 31 Oct 2019 02:17:03 +0000 (19:17 -0700)]
Save a copy of the symbols file to symbols.save when updating.

5 years agoGuidebook tweak
PatR [Thu, 31 Oct 2019 00:37:04 +0000 (17:37 -0700)]
Guidebook tweak

This sample comment attending the sample SYMBOLS statement fit ok in
the pdf output but wrapped to another line in the plain text output,
so shorten it.

S_xan, S_pet_override, and S_player_override still wrap, but by a bit
less than before.  Their width causes the line of dashes at the top
of the table to wrap too.

Guidebook.tex is still lagging behind.

5 years agoThis is cron-daily v1-Oct-30-2019. files updated: Files
nhw_cron [Wed, 30 Oct 2019 22:53:52 +0000 (18:53 -0400)]
This is cron-daily v1-Oct-30-2019.  files updated: Files

5 years agoThis is cron-daily v1-Oct-30-2019. guidebook updated: doc/Guidebook.txt
nhw_cron [Wed, 30 Oct 2019 22:50:59 +0000 (18:50 -0400)]
This is cron-daily v1-Oct-30-2019.  guidebook updated: doc/Guidebook.txt

5 years agoattempt to get mingw building correctly after recent changes
nhmall [Wed, 30 Oct 2019 22:48:28 +0000 (18:48 -0400)]
attempt to get mingw building correctly after recent changes

make typedef of boolean match mingw header files
link with shell32 and ole32 as Makefile.msc now had to do
kludge some stuff missing from mingw headers in sys/winnt/windmain.c

5 years agofunction didn't match prototype
nhmall [Wed, 30 Oct 2019 22:40:48 +0000 (18:40 -0400)]
function didn't match prototype

5 years agofix 'roff warning
PatR [Wed, 30 Oct 2019 15:20:22 +0000 (08:20 -0700)]
fix 'roff warning

I think it was issued by tbl but it wasn't about any of the tables.
 warning: numeric expression expected (got 'R')
was complaining about
 .lp SYMBOLS, ROGUESYMBOLS
Exclosing the paragraph label within quotes to make it one argument
to the lp macro or command would have fixed this, but I've split
them into two paragraphs.  And reordered several of the paragraphs
which were alphabetized just enough to make the out of order ones
seem like mistakes.

Guidebook.tex needs to catch up.

5 years agoWindows Store support for NetHack 3.6.
Bart House [Wed, 30 Oct 2019 04:28:39 +0000 (21:28 -0700)]
Windows Store support for NetHack 3.6.

5 years ago"and and" bit
nhmall [Wed, 30 Oct 2019 03:02:37 +0000 (23:02 -0400)]
"and and" bit

5 years agotry travis pre-release zip build again with update powershell command NetHack-3.6.3.wip.2019.10.30
nhmall [Tue, 29 Oct 2019 21:54:58 +0000 (17:54 -0400)]
try travis pre-release zip build again with update powershell command

5 years agowhitespace bit
nhmall [Tue, 29 Oct 2019 17:19:41 +0000 (13:19 -0400)]
whitespace bit

5 years agotravis deploy zip file name refinement NetHack-3.6.3.wip.2019.10.29 v3.6.3.wip.2019.10.29
nhmall [Tue, 29 Oct 2019 13:34:21 +0000 (09:34 -0400)]
travis deploy zip file name refinement

5 years agotypo in README
nhmall [Tue, 29 Oct 2019 00:36:32 +0000 (20:36 -0400)]
typo in README

5 years agoREADME update for 3.6.3 work-in-progress
nhmall [Tue, 29 Oct 2019 00:34:36 +0000 (20:34 -0400)]
README update for 3.6.3 work-in-progress

5 years agoavoid warning
PatR [Mon, 28 Oct 2019 23:02:16 +0000 (16:02 -0700)]
avoid warning

and check whether pushing commits has been straightened out.

5 years ago.travis.yml update
nhmall [Mon, 28 Oct 2019 16:59:00 +0000 (12:59 -0400)]
.travis.yml update

5 years agofix parse character count typo
nhmall [Mon, 28 Oct 2019 03:37:16 +0000 (23:37 -0400)]
fix parse character count typo

5 years agosome symbol tweaks
nhmall [Mon, 28 Oct 2019 03:12:11 +0000 (23:12 -0400)]
some symbol tweaks

A few symbol-related modifications:

- fulfill a request from a blind player to allow them to
  specify a unique/recognizable character for all pets and/or
  the player in the config file for use when using a screen
  reader (S_player_override, S_pet_override). Requires sysconf
  setting ACCESSIBILITY to be set to have an effect, although
  they can still be specified in the config file.

- Config file SYMBOLS entries were not working properly on
  the rogue level. Allow ROGUESYMBOLS as well as SYMBOLS to be
  specified in the config file independently.

- When values are moved into showsyms[], the overriding SYMBOLS
  or ROGUESYMBOLS entry from the config file is used if there is
  one; if there is no overriding value for a particular symbol,
  the loaded symset value is used; if there is no symset entry
  loaded for the symbol then a default symbol is used.

5 years agotravis bits
nhmall [Mon, 28 Oct 2019 00:42:22 +0000 (20:42 -0400)]
travis bits

5 years agotravis updates for Windows deploy
nhmall [Mon, 28 Oct 2019 00:36:03 +0000 (20:36 -0400)]
travis updates for Windows deploy

travis updates for Windows deploy

Change zip file name from NetHack.zip
to
NetHack-x86-beta$TRAVIS_TAG.zip
where $TRAVIS_TAG represents the tag info.

Also, log the commands from the sh script in win/win32/vs2017 to the build log.

5 years agoChange ZIP file layout to be flat.
Bart House [Sun, 27 Oct 2019 03:39:24 +0000 (20:39 -0700)]
Change ZIP file layout to be flat.

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Sun, 27 Oct 2019 03:12:09 +0000 (20:12 -0700)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoChanged travis email to once again send to devteam.
Bart House [Sun, 27 Oct 2019 03:11:21 +0000 (20:11 -0700)]
Changed travis email to once again send to devteam.

5 years agoModified travis builds to deploy the x86 windows build to github if tagged.
Bart House [Sun, 27 Oct 2019 03:09:14 +0000 (20:09 -0700)]
Modified travis builds to deploy the x86 windows build to github if tagged.

Moved the travis visual studio build bash script to live outside of
the travis YML file.  Updated the script to use powershell to generate
ZIP file form the binary results.

Deploy Windows build ZIP file to github releases if build has commit
has been tagged.  Build will be marked pre-release.

5 years agoparanoid_query bulletproofing
PatR [Sun, 27 Oct 2019 02:01:49 +0000 (19:01 -0700)]
paranoid_query bulletproofing

Make paranoid_query() (yn question requiring explicit "yes" answer)
protect itself from overly long prompt strings.  I'm not aware of
any specific overflowing queries so I temporary reduced QBUFSZ within
paranoid_query() in order to test.

For EDIT_GETLIN, don't use previous response as default if we loop
after neither "yes" nor "no" was given for paranoid confirm.

5 years agoFix wizmakemap leaving genocided monsters on map
Pasi Kallinen [Sat, 26 Oct 2019 16:56:03 +0000 (19:56 +0300)]
Fix wizmakemap leaving genocided monsters on map

If a genocided monster was in "limbo" (migrating to the same level),
wizmakemap put it back on map.

5 years agofix github issue #238 - 'scores' option v3.6.3.757eca7
PatR [Sat, 26 Oct 2019 06:11:06 +0000 (23:11 -0700)]
fix github issue #238 - 'scores' option

Fixes #238

For the three fields in the 'scores' option's argument: top, around,
and own, if any was separated from preceding one by space(s) rather
than slash and lacked a count prefix, the argument parsing skipped
over it.  So "10t/3a/o" and "10t 3a 1o" worked but "10t 3a o" ignored
the 'o'.  The issue report was about 'own' but there's nothing special
about 'own' itself; just that it doesn't warrant a count prefix and is
usually last (in other words, normally preceded by one or both of the
other two) so more likely to trip over this.

[I thought there was another report about 'scores' misbehaving (from
quite a while ago) but couldn't find one.  If it exists, it might have
been about the same thing.]

5 years agopull request #236 - tty's 'maxwin'
PatR [Tue, 22 Oct 2019 23:31:25 +0000 (16:31 -0700)]
pull request #236 - tty's 'maxwin'

'maxwin' was not being get up to date.  Just get rid of it.

5 years agofix H9344: remove_object: obj not on floor (heavy iron ball & chain)
nhmall [Tue, 22 Oct 2019 14:02:53 +0000 (10:02 -0400)]
fix H9344: remove_object: obj not on floor (heavy iron ball & chain)

5 years agofix recent bypass of obj placement
nhmall [Tue, 22 Oct 2019 13:40:10 +0000 (09:40 -0400)]
fix recent bypass of obj placement

5 years agoone new rumor
nhmall [Sun, 20 Oct 2019 15:21:47 +0000 (11:21 -0400)]
one new rumor

5 years agomimicking slime molds
PatR [Sun, 20 Oct 2019 00:38:27 +0000 (17:38 -0700)]
mimicking slime molds

Mimic-as-slime_mold needs to keep track of the fruit index the same
way that mimic-as-corpse keeps track of corpse's monster type.  The
mimic description was changing (for '/' and ';' feedback) whenever
the player assiged a new fruit name.

That wasn't noticeable when applying a stethoscope because
mimic-as-slime_mold always yielded "that fruit is really a mimic".
Change it to report the fruit's type instead of generic "fruit".

5 years agogrammar fix for "That walking shoes is really a small mimic"
nhmall [Sat, 19 Oct 2019 16:05:33 +0000 (12:05 -0400)]
grammar fix for "That walking shoes is really a small mimic"

5 years agosymset and roguesymset options
PatR [Sat, 19 Oct 2019 01:23:47 +0000 (18:23 -0700)]
symset and roguesymset options

For 'O's menu, make the current symbol set be pre-selected so that
the set in use is clearly marked while contemplating changing it.
Using Return or Enter will pick it again; Escape is now needed to
deliberately not make any selection.

Also, change several symbol set initializations to use the new method
of deciding whether the default symbols are still in place.

5 years agocontainers in shops
PatR [Fri, 18 Oct 2019 22:00:16 +0000 (15:00 -0700)]
containers in shops

Fix a couple of bugs I stumbled across while testing something else.
The sell prompt for a container dropped in a shop had phrasing issues.
This fixes a couple but there are more.  The message composition
assumes that contents fall into two categories:  those already owned
by the shop and those the shopkeeper is offering to buy from the hero.
But there is a third:  stuff the shopkeeper doesn't care about so
won't buy.  The count_contents() routine can supply total contents or
shop-owned contents.  Subtracting one from the other yields combined
hero-owned without any way to separate out shk-cares and don't-care.

5 years agoMerge branch 'NHTangles-NetHack-3.6' into NetHack-3.6
nhmall [Fri, 18 Oct 2019 15:00:45 +0000 (11:00 -0400)]
Merge branch 'NHTangles-NetHack-3.6' into NetHack-3.6

5 years agocurses - remove unused variable in curses_str_remainder()
k21971 [Thu, 17 Oct 2019 12:49:22 +0000 (08:49 -0400)]
curses - remove unused variable in curses_str_remainder()

and remove incorrect use of 'count' which could result in messages being
repeated indefiitely.

5 years agorevert part of 4b87e858aa - partly eaten food
PatR [Fri, 18 Oct 2019 01:55:35 +0000 (18:55 -0700)]
revert part of 4b87e858aa - partly eaten food

Partly eaten globs is seems to be can'o'worms and the hack I just
added to get_pricing_units() made things worse, so back that out.

5 years agofix #H9312 - partly eaten food in bones shop
PatR [Fri, 18 Oct 2019 01:45:56 +0000 (18:45 -0700)]
fix #H9312 - partly eaten food in bones shop

Dying in a shop while carrying partly eaten food would place that food
on the floor without marking it no_charge.  But marking it that way
wouldn't have helped because as bones data gets saved, every object on
the level has its no_charge flag cleared.  So 'no_charge' needs to be
explicitly set for partly eaten food in tended shops as a bones level
gets loaded.

Most of the shk.c diff is reformatting, but it does change the
get_pricing_units() routine to lie that the quantity is zero for
partly eaten food so that when multiplying with price it won't matter
whether the price has been forced to zero or been left non-zero.

5 years agospelling mistake in comment in recent commit
nhmall [Fri, 18 Oct 2019 01:26:59 +0000 (21:26 -0400)]
spelling mistake in comment in recent commit

5 years agozap colors
PatR [Thu, 17 Oct 2019 22:50:33 +0000 (15:50 -0700)]
zap colors

One of the comments for pull request #234 mentions that the colors
for sleep and poison are backwards.  Yellow dragons had green breath.
Green dragons would have had yellow breath if they used the normal
zap symbols, but they use the poison cloud one which is green so
they had green breath.  I rarely have color enabled and had never
noticed.  (At the moment I can't find where the switch from zap to
cloud is being done.)

Pull request #234 is based on #231, about control of the shield
effect animation when resisting.  But it changes struct flags so
would break 3.6.x save file compatibility.

5 years agogithub pull request #233 - plural of Nazgul
PatR [Thu, 17 Oct 2019 21:58:16 +0000 (14:58 -0700)]
github pull request #233 - plural of Nazgul

Fixes #233

makeplural() and makesingular() know that the plural of Nazgul is
Nazgul, but one of the hard-coded rumors didn't.

5 years agogithub pull request #235 - curses symbol set init
PatR [Thu, 17 Oct 2019 21:38:45 +0000 (14:38 -0700)]
github pull request #235 - curses symbol set init

Fixes #235

For initial options under curses, specifying 'DECgraphics' as a
boolean rather than as 'symset:DECgraphics' wasn't overriding the
new default 'symset:curses'.  Since previously DECgraphics was
rejected for curses, it's possible that no one noticed.

5 years agoanother thinko
PatR [Thu, 17 Oct 2019 12:17:08 +0000 (05:17 -0700)]
another thinko

5 years agocouple of curses symbol handling bits
PatR [Thu, 17 Oct 2019 12:07:03 +0000 (05:07 -0700)]
couple of curses symbol handling bits

Primary and rogue symbols were being set to default if primary hadn't
been given a value, possibly clobbering rogue symbols if those had
been given a value.  Initialize them independenly.

Return early from curses_convert_glyph() if the value doesn't have
the 8th bit set since it now deals exclusively with DECgraphics
handling.  Force a sane value for returning early on rogue level.

5 years agosymbol set reorganization
PatR [Thu, 17 Oct 2019 12:00:58 +0000 (05:00 -0700)]
symbol set reorganization

Change the way symbol sets are loaded to make them have the same order
as they appear in the symbols file rather than being reversed.

Revise dat/symbols so that the new ordering yields a result similar
to the old ordering, more or less.  I've added a few set descriptions.
The only substantive change is marking DECgraphics as primary-only
(not available on rogue level) and adding new set DECgraphics_2 which
is commented out near the end.

Define symbol handling H_MAC since one of the sets specifies
'handling: MAC'.  All H_MAC is used for now is to avoid showing
MACgraphics as a symset when compiled without MAC_GRAPHICS_ENV (which
was used for pre-OSX Mac by the old code in sys/mac/), so it will be
hidden for everyone.

I left handling H_CURS even though curses doesn't implement anything
for it.  It could do something when rendering the map or assign a
function to 'cursesgraphics_mode_callback' for special init or both
but hasn't needed to.  Since curses is now supporting DECgraphics,
define 'decgraphics_mode_callback' for it.  No value is being
assigned so that doesn't do anything; curses seems to be setting up
the primary character set as text and secondary one as line-drawing
without the need for that hook.

With the added set descriptions, 'O's symset menu looked horrible for
curses due to the way curses decides to set the width of menus and
the resulting line wrapping which took place because of a too-narrow
menu.  I've added a chunk of code to the options handling code which
shouldn't really be there but makes the menu much easier to read.

Lastly, do some formatting cleanup in files.c.

5 years agofix curses build warning and update fixes36.3
PatR [Wed, 16 Oct 2019 23:19:51 +0000 (16:19 -0700)]
fix curses build warning and update fixes36.3

Move a declaration that became mid-block when a preceding 'if () {'
got removed to top of block suppress warning about C99 feature.

Add new entry for the curses symset change to fixes36.3.

5 years agogithib pull request #232 - curses symset
PatR [Wed, 16 Oct 2019 22:52:00 +0000 (15:52 -0700)]
githib pull request #232 - curses symset

This time I'm putting things in as-is before making a few tweaks.

The pull request was three or four separate changes.  I used the
patch instead so they've been collected into one commit.

5 years agocomment typo
PatR [Mon, 14 Oct 2019 23:02:30 +0000 (16:02 -0700)]
comment typo

5 years agocurses decgraphics bit
PatR [Mon, 14 Oct 2019 09:53:19 +0000 (02:53 -0700)]
curses decgraphics bit

Array bounds error; thinko rather than typo.

5 years agofix use_inverse (aka wc_inverse) for curses
PatR [Mon, 14 Oct 2019 09:28:27 +0000 (02:28 -0700)]
fix use_inverse (aka wc_inverse) for curses

Highlighting for monsters shown due to extended monster detection and
for lava shown in black and white didn't work because that keys off
of 'iflags.use_inverse' (actually a macro for 'iflags.wc_inverse') and
curses wasn't enabling that window-capability option.  To be fair, it
was probably unconditional at the time the curses interface was first
developed.  It checked for whether a monster was supposed to be drawn
with inverse highlighting but wouldn't draw it that way because the
flag was always false.  Inverse b&w lava is relatively new and curses
hadn't been taught about it.

Various other things such as pets (if hilite_pet is on) and object
piles (if hilite_pile is on) get highlighted with inverse video when
use_color is off, regardless of whether use_inverse is on or off.
That's probably a bug.

5 years agopull request 229/#H9299 - DECgraphics for curses
PatR [Mon, 14 Oct 2019 00:41:24 +0000 (17:41 -0700)]
pull request 229/#H9299 - DECgraphics for curses

Fixes #230

Incorporate github pull request #230, support for DECgraphics-style
line drawing in the curses interface.  I've rewritten the
curses_convert_glyph() part so that it doesn't require C99 and
doesn't reinitialize its pair of arrays for every character written
to the map.  The DECgraphics conversion is now a straight char for
char one, DEC line drawing code to ACS, without regard to what map
symbol is intended or what 'cursesgraphics' uses for that symbol.

5 years agoFix monster triggering land mine accessing deleted trap
Pasi Kallinen [Sun, 13 Oct 2019 17:52:34 +0000 (20:52 +0300)]
Fix monster triggering land mine accessing deleted trap

mintrap -> thitm -> mondied -> relobj -> mdrop_obj ->
flooreffects -> deltrap

after calling thitm, the mintrap code was trying to access the trap.

5 years agoFix launched object accessing a deleted trap
Pasi Kallinen [Sun, 13 Oct 2019 17:40:54 +0000 (20:40 +0300)]
Fix launched object accessing a deleted trap

In launch_obj, the code first got the trap, then called ohitmon
(which can delete the trap by doing mondied -> fill_pit ->
flooreffects -> deltrap), then after that used the trap variable.

5 years agoFix addressing deleted trap when helping monster out of a pit
Pasi Kallinen [Sun, 13 Oct 2019 16:57:05 +0000 (19:57 +0300)]
Fix addressing deleted trap when helping monster out of a pit

Move reward_untrap before fill_pit, as the trap may get deleted.

5 years agoFix hero hiding under a statue shattered by land mine
Pasi Kallinen [Sun, 13 Oct 2019 16:16:38 +0000 (19:16 +0300)]
Fix hero hiding under a statue shattered by land mine

Trigger a land mine while being polymorphed into a monster that
automatically hides (eg. scorpion). Have the statue on the land mine
shatter and all items on that square scatter away. Avoid falling
into the pit left by the land mine.

5 years agofix part of #H9299 - DECgraphics symset comments
PatR [Sat, 12 Oct 2019 22:33:57 +0000 (15:33 -0700)]
fix part of #H9299 - DECgraphics symset comments

For the DECgraphics symbol set, down ladder is the greater-than-or-
equal-to character as intended and up ladder is less-than-or-equal-to,
but comments in dat/symbols had their descriptions transposed.

5 years agofix #H9298 - corpse mismatch
PatR [Sat, 12 Oct 2019 09:31:47 +0000 (02:31 -0700)]
fix #H9298 - corpse mismatch

Corpses for dying monsters were being created with the wrong type,
caused by incorrect block nesting for 'if (ptr)' from commit
ad302fb8a99a5795c4d206870ea6573349b2d92a (Oct 10).

5 years agoSouth Park reference - gnomes' business plan
PatR [Sat, 12 Oct 2019 01:33:32 +0000 (18:33 -0700)]
South Park reference - gnomes' business plan

If you chat with a peaceful gnome while hallucinating, you might
get a silly message from the TV show South Park.

To make it work for non-gnome characters, I changed the speech of
monsters who normally just grunt (gnomes, orcs, ogres, a couple
of other groups) to full humanoid when the hero is hallucinating.
(It already does that for orcs if the hero--hallucinating or not--
is an orc and for gnomes when the hero is a gnome.)

5 years agoFix priests and shopkeepers moving on other monsters
Pasi Kallinen [Fri, 11 Oct 2019 17:24:17 +0000 (20:24 +0300)]
Fix priests and shopkeepers moving on other monsters