]> granicus.if.org Git - nethack/log
nethack
5 years agoDehardcode wizard1 morgue secret door
Pasi Kallinen [Sat, 1 Feb 2020 18:18:56 +0000 (20:18 +0200)]
Dehardcode wizard1 morgue secret door

5 years agosplitting cmd.c, phase 1B
PatR [Sat, 1 Feb 2020 17:14:18 +0000 (09:14 -0800)]
splitting cmd.c, phase 1B

I neglected to use -f with 'git add' and the stub file didn't make
it into the previous commit.

5 years agosplitting cmd.c, phase I
PatR [Sat, 1 Feb 2020 16:59:19 +0000 (08:59 -0800)]
splitting cmd.c, phase I

Preparation for moving enlightenment and conduct into new source
file insight.c.  Right now it's a stub that shouldn't break anything
whether included or omitted.  Once makefiles and project files have
been updated to compile and link it, the actual code will be moved.

unix/Makefile.src has been updated;
vms/Makefile.src and vmsbuild.com have been updated but not tested.

5 years agoDehardcode minefill
Pasi Kallinen [Sat, 1 Feb 2020 16:29:55 +0000 (18:29 +0200)]
Dehardcode minefill

Instead of hardcoding the minefill levels in the core,
allow defining fill levels for a dungeon branch in the dungeon.lua

5 years agoloadlua() simplification
PatR [Fri, 31 Jan 2020 21:36:22 +0000 (13:36 -0800)]
loadlua() simplification

nhl_loadlua() went from too simple to too complicated, now somewhere
in between.  Still doesn't assume that an entire file can be scooped
up with a single fread(), but no longer mucks about with the contents
of the file in order to insert a comment containing the file's name.
In order to have useful filename feedback in Lua error messages, just
use a different liblua routine to feed the file's contents to it.

5 years agofix 'Couldn't place lregion type 1' on Orc town
PatR [Fri, 31 Jan 2020 20:58:24 +0000 (12:58 -0800)]
fix 'Couldn't place lregion type 1' on Orc town

Stairs up from Orcish Town variation of Mine Town were being forced
to be near the bottom of the left side of the level due to a bogus
exclusion region in the level description.  If that small area was all
solid rock then a warning was issued and no stairs up were created.

5 years agoroyal jelly
PatR [Fri, 31 Jan 2020 13:10:00 +0000 (05:10 -0800)]
royal jelly

Applying royal jelly listed all of inventory as likely candidates for
  what to rub it on, including itself.
Applying it to anything took no time.
After the "you smear royal jelly on <foo>" message,
  unsuccessfully applying it to non-eggs gave no other feedback;
  successfully applying it to eggs gave no additional feedback.

Allow #rub to use royal jelly too.

Also, require hands to apply or #rub anything.

Not done:  fumbling and/or slippery fingers should have a chance to
  drop the jelly or to drop whatever gets rubbed with it.

5 years agoAllow applying royal jelly on an egg
Pasi Kallinen [Fri, 31 Jan 2020 08:39:37 +0000 (10:39 +0200)]
Allow applying royal jelly on an egg

Royal jelly applied on an egg will change a killer bee egg to
a queen bee egg. Cursed jelly will kill the egg, uncursed and blessed
will revive it. Blessed jelly will also make the creature think
you're the parent.

Original patch was by Kenneth Call

5 years agoupdate EDITLEVEL for achievement tracking
PatR [Fri, 31 Jan 2020 02:28:55 +0000 (18:28 -0800)]
update EDITLEVEL for achievement tracking

5 years agomore simplification of achievement tracking
PatR [Fri, 31 Jan 2020 01:35:32 +0000 (17:35 -0800)]
more simplification of achievement tracking

Instead of hardcoding the "prize" type and then watching for that
to be created, specify it in the level description.

Also, instead of giving both Sokoban end levels 50:50 chance for
either prize, bias the one that used to always have the bag of
holding to now have 75% chance for that and 25% chance for amulet
of reflection, with the other one having those chances reversed.
So still 50:50 overall.

5 years agoreformatting for sp_lev.c
PatR [Fri, 31 Jan 2020 00:48:55 +0000 (16:48 -0800)]
reformatting for sp_lev.c

Also change a bunch of automatic arrays with initializers to static
so that they won't be reinitialized every time their block is entered.

get_table_buc() is changed to support bless/curse specifiers for
"not-cursed", "not-uncursed", and "not-blessed" but they aren't used
yet.

5 years agoreformatting for nhlua.c
PatR [Thu, 30 Jan 2020 23:44:55 +0000 (15:44 -0800)]
reformatting for nhlua.c

5 years agomore sys/winnt/Makefile.msc
nhmall [Thu, 30 Jan 2020 19:04:10 +0000 (14:04 -0500)]
more sys/winnt/Makefile.msc

Remove nmake conditional bits for some things that
aren't optional anymore

5 years agoupdates for Windows command line Makefile with visual studio
nhmall [Thu, 30 Jan 2020 18:50:26 +0000 (13:50 -0500)]
updates for Windows command line Makefile with visual studio

5 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Thu, 30 Jan 2020 01:17:10 +0000 (20:17 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

5 years agoGuidebook bits
PatR [Thu, 30 Jan 2020 01:10:38 +0000 (17:10 -0800)]
Guidebook bits

"The 'm' prefix before a movement command can be used" is awkwardly
worded.

"Various ... variations" is redundant all by itself but doubly so
when "various" is used again two sentences later.

mention_decor is missing a sentence between "Normally only shown
when obscured" and then an exception when it is enabled.

5 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Wed, 29 Jan 2020 18:17:12 +0000 (13:17 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

5 years ago'make depend' for unix/Makefile.src
PatR [Wed, 29 Jan 2020 20:16:24 +0000 (12:16 -0800)]
'make depend' for unix/Makefile.src

Add the new header file to HACKINCL which only matters to HSOURCES
which only matters for the 'tags' target.

'make depend' reordered some stuff that could have stayed as-is but
also found a missing dependency for nhlobj.{c,o}.

5 years agowands vs no-hands
PatR [Wed, 29 Jan 2020 18:35:02 +0000 (10:35 -0800)]
wands vs no-hands

Hero shouldn't be able to zap wands when polymorphed into a form which
lacks hands.

The other tweaks to dozap() shouldn't produce any change in behavior.

5 years agonew 'mention_decor' option
PatR [Wed, 29 Jan 2020 17:47:36 +0000 (09:47 -0800)]
new 'mention_decor' option

Somewhat similar to 'mention_walls', 'mention_decor' is a way to
request additional feedback when moving around the map.  It reports
furniture or unusual terrain when you step on that.  Normally stepping
on furniture only mentions it when it is covered by object(s).  And
moving onto (rather than into) water or lava or ice doesn't bother
saying anything at all.  With the new option set there will be a
message.  It uses Norep so won't repeat when moving from one water
spot to another or one lava spot to another or one ice spot to another
unless there has been at least one intervening message.  There is also
a one-shot message when moving from water or lava or ice onto ordinary
terrain (not Norep, just once since there's no land to land message).

Having the verbose flag Off doesn't inhibit these new messages but it
does shorten them: "A fountain." instead of "There is a fountain here."

The Guidebook gets a new subsection "Movement feedback" of the "Rooms
and corridors" section and it covers more than just 'mention_decor'.
As usual, Guidebook.tex is untested.

'mention_decor' persists across save/restore, so 'struct flags' has
changed and EDITLEVEL is being bumped, hence save files are invalided.

5 years agofnamesiz comment bit
nhmall [Wed, 29 Jan 2020 15:29:37 +0000 (10:29 -0500)]
fnamesiz comment bit

5 years agoFix quest text mistake
Pasi Kallinen [Wed, 29 Jan 2020 15:24:58 +0000 (17:24 +0200)]
Fix quest text mistake

5 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Wed, 29 Jan 2020 15:17:10 +0000 (10:17 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

5 years agofnamesiz bit
nhmall [Wed, 29 Jan 2020 15:09:45 +0000 (10:09 -0500)]
fnamesiz bit

5 years agorename new header file to fnamesiz.h
nhmall [Wed, 29 Jan 2020 14:56:43 +0000 (09:56 -0500)]
rename new header file to fnamesiz.h
Changes to be committed:
renamed:    include/filesize.h -> include/fnamesiz.h

5 years agorecover fix
nhmall [Wed, 29 Jan 2020 14:15:55 +0000 (09:15 -0500)]
recover fix

recover had deviated somewhat from NetHack in its
file expectations:
1) A couple of 3.7 fields needed to be accommodated.
2) hard-coded file size values had deviated.

The file sizes are now in an added header file named "filesize.h",
which is included at the bottom of config.h.

There will likely be another commit to write the filename size ahead
of the file name so that the precise number of characters can be read,
but since that will break existing saves, it can go in along with another
save-breaking commit.

This commit doesn't not alter savefiles written by nethack so does not
require an editlevel bump. It does alter the read-in expectation in
recover to match the game and this get recover working again.

5 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Wed, 29 Jan 2020 00:17:10 +0000 (19:17 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

5 years agomsdos has been tested with 3.7
nhmall [Wed, 29 Jan 2020 00:16:07 +0000 (19:16 -0500)]
msdos has been tested with 3.7

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Wed, 29 Jan 2020 00:10:07 +0000 (19:10 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoupdate some version bits
nhmall [Wed, 29 Jan 2020 00:09:40 +0000 (19:09 -0500)]
update some version bits

5 years agolevel teleport "you materialize" mesg sequencing
PatR [Tue, 28 Jan 2020 23:28:31 +0000 (15:28 -0800)]
level teleport "you materialize" mesg sequencing

If level teleport took you somewhere special, things like shop entry
or quest summons or valley atmosphere messages were being given first,
then "you materialize on a different level" after.  schedule_goto()
takes before-change-message and after-change-message arguments; it
ought to be extended to have a mid-change-message one too but I didn't
think of that until just now.

5 years agoblack and white ice
PatR [Tue, 28 Jan 2020 23:01:41 +0000 (15:01 -0800)]
black and white ice

Like lava when that looks the same as water with color Off, render ice
in inverse video if it looks the same as the floor of a room.  (I tried
bold first but the result didn't look very good.)

Done for tty and curses; others may want to follow suit.

5 years agobeauty no longer in eye of the beholder
PatR [Tue, 28 Jan 2020 20:49:38 +0000 (12:49 -0800)]
beauty no longer in eye of the beholder

There was a complaint that despite charisma of 13 being above average,
the character was described as "ugly".  The cut-off was actually >14
for "beautiful" or "handsome" vs <=14 for "ugly".  This adds several
more grades of appearance.

5 years agowhitespace cleanup on options.c
nhmall [Tue, 28 Jan 2020 01:54:09 +0000 (20:54 -0500)]
whitespace cleanup on options.c

5 years agomsdos follow-up bit
nhmall [Mon, 27 Jan 2020 22:54:13 +0000 (17:54 -0500)]
msdos follow-up bit

5 years agoMerge recent changes into NetHack-3.7 NetHack-3.7.0_WIP
nhmall [Mon, 27 Jan 2020 21:49:31 +0000 (16:49 -0500)]
Merge recent changes into NetHack-3.7

5 years agoAnother VMS tweak NetHack-3.6.5_PostRelease NetHack-3.6.5_Released
PatR [Mon, 27 Jan 2020 20:14:19 +0000 (12:14 -0800)]
Another VMS tweak

One of the new paragraphs inadvertently duplicated an existing one.

5 years agoone more missed inconsistency and README updates
nhmall [Mon, 27 Jan 2020 20:05:45 +0000 (15:05 -0500)]
one more missed inconsistency and README updates

5 years agoReadme tweaks
PatR [Mon, 27 Jan 2020 19:53:18 +0000 (11:53 -0800)]
Readme tweaks

Replace a few tabs, remove a few trailing spaces, and shorten a few
long lines.

Readme still needs another fix:  if falsely claims to contain all bug
fixes since 3.6.4.  I wasn't sure how to reword that so didn't try.

Also, fix a couple of old typos in Install.vms.

5 years agobit
nhmall [Mon, 27 Jan 2020 19:44:29 +0000 (14:44 -0500)]
bit

5 years agoRevert "This is cron-daily v1-Jan-20-2020. manpages updated: makedefs.txt"
nhmall [Mon, 27 Jan 2020 19:42:39 +0000 (14:42 -0500)]
Revert "This is cron-daily v1-Jan-20-2020.  manpages updated: makedefs.txt"

This reverts commit 9e0c450d2e266ed207d731162b7d65271a01db14.

5 years agoThis is cron-daily v1-Jan-20-2020. manpages updated: makedefs.txt
nhw_cron [Mon, 27 Jan 2020 19:17:12 +0000 (14:17 -0500)]
This is cron-daily v1-Jan-20-2020.  manpages updated: makedefs.txt

5 years agoThis is cron-daily v1-Jan-20-2020. files updated: Files
nhw_cron [Mon, 27 Jan 2020 19:17:12 +0000 (14:17 -0500)]
This is cron-daily v1-Jan-20-2020.  files updated: Files

5 years agoMerge branch 'NetHack-3.7-Jan2020' into NetHack-3.7
nhmall [Mon, 27 Jan 2020 18:24:15 +0000 (13:24 -0500)]
Merge branch 'NetHack-3.7-Jan2020' into NetHack-3.7

5 years agomore typo propagation
nhmall [Mon, 27 Jan 2020 17:56:34 +0000 (12:56 -0500)]
more typo propagation

5 years agoanother typo
nhmall [Mon, 27 Jan 2020 17:27:41 +0000 (12:27 -0500)]
another typo

5 years agotypo
nhmall [Mon, 27 Jan 2020 16:50:19 +0000 (11:50 -0500)]
typo

5 years agotravis updates
nhmall [Mon, 27 Jan 2020 16:28:21 +0000 (11:28 -0500)]
travis updates

5 years agoUse nh_getenv just in case
Pasi Kallinen [Mon, 27 Jan 2020 16:03:22 +0000 (18:03 +0200)]
Use nh_getenv just in case

5 years agoquiet a couple of warnings
nhmall [Mon, 27 Jan 2020 15:54:39 +0000 (10:54 -0500)]
quiet a couple of warnings

..\src\nhlua.c(893): warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'lua_CFunction'
..\src\nhlua.c(894): warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'lua_CFunction'

5 years agodoc/Guidebook.txt update from daily cron
nhmall [Mon, 27 Jan 2020 15:31:37 +0000 (10:31 -0500)]
doc/Guidebook.txt update from daily cron

5 years agoThis is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt
nhw_cron [Mon, 27 Jan 2020 15:17:10 +0000 (10:17 -0500)]
This is cron-daily v1-Jan-20-2020.  guidebook updated: doc/Guidebook.txt

5 years agoGuidebook date-stamp
nhmall [Mon, 27 Jan 2020 14:27:03 +0000 (09:27 -0500)]
Guidebook date-stamp

5 years agoGuidebook date stamp
nhmall [Mon, 27 Jan 2020 14:25:40 +0000 (09:25 -0500)]
Guidebook date stamp

5 years agoMerge updates from 'NetHack-3.6' into NetHack-3.7-Jan2020
nhmall [Mon, 27 Jan 2020 14:02:05 +0000 (09:02 -0500)]
Merge updates from 'NetHack-3.6' into NetHack-3.7-Jan2020

5 years agoMerge branch 'NetHack-3.7' into NetHack-3.7-Jan2020
nhmall [Mon, 27 Jan 2020 13:52:17 +0000 (08:52 -0500)]
Merge branch 'NetHack-3.7' into NetHack-3.7-Jan2020

5 years agoavoid link error with gcc 10 which enables -fno-common by default
nhmall [Mon, 27 Jan 2020 13:23:56 +0000 (08:23 -0500)]
avoid link error with gcc 10 which enables -fno-common by default

5 years agoavoid link error with gcc 10 which enables -fno-common by default
nhmall [Mon, 27 Jan 2020 13:23:56 +0000 (08:23 -0500)]
avoid link error with gcc 10 which enables -fno-common by default

5 years agoInstall.vms update
PatR [Mon, 27 Jan 2020 10:20:47 +0000 (02:20 -0800)]
Install.vms update

5 years agoDoc copypaste error
Pasi Kallinen [Mon, 27 Jan 2020 08:20:31 +0000 (10:20 +0200)]
Doc copypaste error

5 years agoDoc and sample config for MSDOS video resolution
Pasi Kallinen [Mon, 27 Jan 2020 08:05:08 +0000 (10:05 +0200)]
Doc and sample config for MSDOS video resolution

5 years agoMake background appear as a proper black
Ray Chason [Sun, 26 Jan 2020 01:44:17 +0000 (20:44 -0500)]
Make background appear as a proper black

5 years agoScale the font for large resolutions
Ray Chason [Sun, 26 Jan 2020 00:55:05 +0000 (19:55 -0500)]
Scale the font for large resolutions

5 years agoLift restrictions on tilesets
Ray Chason [Sun, 26 Jan 2020 00:04:44 +0000 (19:04 -0500)]
Lift restrictions on tilesets

Support full color tilesets with tiles of arbitrary size.

5 years agoMSDOS/VESA: Make clipy and clipymax available to MS-DOS
Ray Chason [Sun, 26 Jan 2020 00:03:48 +0000 (19:03 -0500)]
MSDOS/VESA: Make clipy and clipymax available to MS-DOS

VESA mode may need to scroll up and down as well as left and right.

5 years agoAdd set_tile_type, stretch_tile and free_tile
Ray Chason [Sun, 26 Jan 2020 00:02:18 +0000 (19:02 -0500)]
Add set_tile_type, stretch_tile and free_tile

set_tile_type frees tileset memory not in use for the current tile
type (paletted or full color).
stretch_tile and free_tile support resizing tiles at run time.

5 years agoFix bugs affecting full-color BMP files
Ray Chason [Sun, 26 Jan 2020 00:00:54 +0000 (19:00 -0500)]
Fix bugs affecting full-color BMP files

5 years agoMSDOS/VESA: Add video_width and video_height
Ray Chason [Sun, 26 Jan 2020 00:00:02 +0000 (19:00 -0500)]
MSDOS/VESA: Add video_width and video_height

To be used to set the video mode

5 years agoMore bits for linear frame buffer
Ray Chason [Sat, 25 Jan 2020 19:23:04 +0000 (14:23 -0500)]
More bits for linear frame buffer

5 years agoSupport the linear frame buffer if available
Ray Chason [Sat, 25 Jan 2020 19:05:16 +0000 (14:05 -0500)]
Support the linear frame buffer if available

If the linear frame buffer is in use, the entire frame buffer is
visible all at once, and no calls to the window function are needed.

5 years agoCall the window function directly if supported
Ray Chason [Sat, 25 Jan 2020 18:49:26 +0000 (13:49 -0500)]
Call the window function directly if supported

Some BIOSes allow calling the window function directly, bypassing the
logic that distinguishes this call from other BIOS calls. Should be
faster on some systems.

5 years agoUse 8 bit mode if available
Ray Chason [Sat, 25 Jan 2020 18:38:02 +0000 (13:38 -0500)]
Use 8 bit mode if available

This was not previously done because the palette was not correctly set
up, and QEMU gave incorrect colors. The palette setup function now
falls back to the standard BIOS function if the VESA BIOS function
fails, which resolves the issue with QEMU. The mode selection logic now
favors 8 bit color if the tile set is compatible.

Using 8 bit mode means fewer writes to memory and fewer uses of the
BIOS window function.

5 years agomore wizard mode wishing for terrain
PatR [Sun, 26 Jan 2020 20:23:50 +0000 (12:23 -0800)]
more wizard mode wishing for terrain

Try a lot harder to keep terrain/level flags in a sane state.  They're
overloaded so it's not simple.

Creating a fountain or sink incremented the corresponding counter (for
controlling ambient sounds) but removing one by wishing for something
else in its place didn't decrement.

Allow wish for "disturbed grave" to create a grave with the 'disturbed'
flag set, similar to existing "magic fountain" and 'blessedftn' flag.
(I didn't add "looted throne", "looted tree", and several other things
that use the 'looted' overload of 'rm.flags'.)

Automate block_point (tree, cloud, secret corridor, or secret door in
open doorway) and add unblock_point (use Pass_wall to move into wall
or tree or stone, or just walk onto a cloud, then make iron bars or
almost any other wishable terrain to replace the blocking feature).

5 years agodoc/Guidebook.txt update from daily cron
nhmall [Sun, 26 Jan 2020 15:03:15 +0000 (10:03 -0500)]
doc/Guidebook.txt update from daily cron

5 years agoleft out of "limit rate of long worm growth"
PatR [Sun, 26 Jan 2020 13:12:55 +0000 (05:12 -0800)]
left out of "limit rate of long worm growth"

5 years agolimit rate of long worm growth
PatR [Sun, 26 Jan 2020 12:57:13 +0000 (04:57 -0800)]
limit rate of long worm growth

Make long worms grow more slowly (although that didn't seem to make
as much a difference as expected) and limit the amount of HP they
acculate if they shrink and then re-expand.  Shrinking doesn't take
away max HP but growing used to always add to max.  Now it won't add
to max HP unless the number of segments is at that worm's peak, so
shrinking will inhibit the exhorbitant HP expansion that idle worms
have had.

5 years agoCloud wish should block vision
Pasi Kallinen [Sun, 26 Jan 2020 12:33:11 +0000 (14:33 +0200)]
Cloud wish should block vision

5 years agoAllow wizmode wishing for cloud terrain
Pasi Kallinen [Sun, 26 Jan 2020 12:05:11 +0000 (14:05 +0200)]
Allow wizmode wishing for cloud terrain

5 years agoachievement tracking oversight
PatR [Sun, 26 Jan 2020 10:58:18 +0000 (02:58 -0800)]
achievement tracking oversight

obj->record_achieve_special (overlay of obj->corpsenm) is no longer
used.

5 years agoMerge 'NetHack-3.6' updates into NetHack-3.7-Jan2020
nhmall [Sun, 26 Jan 2020 04:45:38 +0000 (23:45 -0500)]
Merge 'NetHack-3.6' updates into NetHack-3.7-Jan2020

5 years agorelease prep bits
nhmall [Sun, 26 Jan 2020 04:42:36 +0000 (23:42 -0500)]
release prep bits

5 years agoMerge 'NetHack-3.6' changes into NetHack-3.7-Jan2020
nhmall [Sun, 26 Jan 2020 03:17:42 +0000 (22:17 -0500)]
Merge 'NetHack-3.6' changes into NetHack-3.7-Jan2020

5 years agoMerge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into...
Bart House [Sun, 26 Jan 2020 01:07:59 +0000 (17:07 -0800)]
Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6

5 years agoFall back to executable path if we have trouble converting known path.
Bart House [Sun, 26 Jan 2020 01:07:45 +0000 (17:07 -0800)]
Fall back to executable path if we have trouble converting known path.

5 years agoMerge branch 'NetHack-3.7' into NetHack-3.7-Jan2020
nhmall [Sat, 25 Jan 2020 22:26:23 +0000 (17:26 -0500)]
Merge branch 'NetHack-3.7' into NetHack-3.7-Jan2020

5 years agoworm.c cleanup
PatR [Sat, 25 Jan 2020 22:12:10 +0000 (14:12 -0800)]
worm.c cleanup

Mostly removing 'register', but also clear stale wgrowtime[] values
at the time they become obsolete instead of waiting for initworm()
to replace them when eventually re-used.

5 years agounix 'make clean' update
PatR [Sat, 25 Jan 2020 20:08:28 +0000 (12:08 -0800)]
unix 'make clean' update

Remove dat/gitinfo.txt which has been getting overlooked.
Hardly urgent, but useful if this is the last 3.5.x release.

5 years agoXcode build fixes
nhmall [Sat, 25 Jan 2020 17:34:06 +0000 (12:34 -0500)]
Xcode build fixes

5 years agoMerge build tools updates from 'NetHack-3.6' into NetHack-3.7-Jan2020
nhmall [Sat, 25 Jan 2020 17:29:31 +0000 (12:29 -0500)]
Merge build tools updates from 'NetHack-3.6' into NetHack-3.7-Jan2020

5 years agoexec commands in MSBUILD *.proj files didn't handle spaces in directory names
nhmall [Sat, 25 Jan 2020 17:23:54 +0000 (12:23 -0500)]
exec commands in MSBUILD *.proj files didn't handle spaces in directory names

5 years agoMerge branch 'NetHack-3.7' into NetHack-3.7-Jan2020
nhmall [Sat, 25 Jan 2020 14:41:21 +0000 (09:41 -0500)]
Merge branch 'NetHack-3.7' into NetHack-3.7-Jan2020

5 years agodisclose achievements
PatR [Sat, 25 Jan 2020 01:00:49 +0000 (17:00 -0800)]
disclose achievements

When disclosing conduct at end of game (but not during except in
wizard mode), display achievements too.  They're also included in
dumplog if it's enabled.  Previously they were only output as an
extra field in xlogfile.

5 years agoMerge branch 'NetHack-3.7' into NetHack-3.7-Jan2020
nhmall [Fri, 24 Jan 2020 22:27:48 +0000 (17:27 -0500)]
Merge branch 'NetHack-3.7' into NetHack-3.7-Jan2020

5 years agosimplify achievement tracking for special objects
PatR [Fri, 24 Jan 2020 21:54:23 +0000 (13:54 -0800)]
simplify achievement tracking for special objects

This turned out to be a lot more work than I anticipated, but it is
definitely simpler (other than having #wizmakemap take achievements
away if you replace the level that contains the 'prize', which wasn't
handled before).

I cheated and made Mine's End into a no-bones level because the new
flagging scheme for luckstone, bag, and amulet can't carry over from
one game to another.  It probably should have been no-bones all along.
Sokoban didn't have this issue because it's already no-bones.

Existing save files are invalidated.

5 years agoloading Lua scripts
PatR [Fri, 24 Jan 2020 21:26:01 +0000 (13:26 -0800)]
loading Lua scripts

When loading a Lua script, modify it with a comment containing the
file name (or DLB module name) so that error reporting doesn't just
show the first 60 bytes of the script.  Also, don't assume that it's
possible to load an entire script in one fread().  Unfortunately
that got way out of hand and the result isn't pretty.  But something
of the sort is necessary.  (Reading the script into one string first
and then applying modifications while copying it into a second one
would probably be a lot cleaner than mixing the two operations.)

If a script starts with a comment or a blank line, the insertion of
the file name comment won't disturb the line number reported in an
error message.  But if the script starts out with code on its first
line, error reports will be off by one for the line number.  Showing
the file name is more useful than keeping that number accurate.

5 years agoLua error reporting buffer overflow
PatR [Fri, 24 Jan 2020 20:52:35 +0000 (12:52 -0800)]
Lua error reporting buffer overflow

nhl_error() was clobbering the stack.  I assume that the 'source'
field in the Lua debugging structure is normally a file name, but
nethack loads an entire Lua script into one long string because it
usually comes out of the DLB container, and 'source' contained the
full string.  That would overflow the local buffer in nhl_error()
if nethack encountered a Lua problem and tried to report it. (In
my case, the problem was in a level description file modification.)

[Not something under user control unless user can modify dat/*.lua
and put the result into $HACKDIR/nhdat.]

5 years agowizard mode un-polymorph
PatR [Wed, 22 Jan 2020 02:29:23 +0000 (18:29 -0800)]
wizard mode un-polymorph

When already polymorphed, polymorphing into 'human' (or character's
species) to revert to normal when at low level has the infuriating
tendency to yield "your new form isn't healthy enough to survive".
Allow specifying your own role as a way to rehumanize() instead of
going through newman() and level/sex/characteristics randomization
which that performs.

5 years agohalf poison gas damage from wearing a wet towel
PatR [Wed, 22 Jan 2020 01:03:54 +0000 (17:03 -0800)]
half poison gas damage from wearing a wet towel

Make wearing a wet towel confer new attribute Half_gas_damage in
addition to the usual blindness.  It reduces damage from being inside
a gas cloud region and from being hit by poison gas breath attack.
It also fully blocks breathing of potion vapors.

Might make the Plane of Fire easier although overcoming its blindness
with telepathy won't reveal elementals.  Definitely has the potential
to make blind-from-birth conduct easier which wasn't the intent and
probably isn't significant.

5 years agono more headless eyewear
PatR [Tue, 21 Jan 2020 23:36:33 +0000 (15:36 -0800)]
no more headless eyewear

Noticed while working on something else:  hero kept wearing a towel
after polymorphing into a form without any head.  And when not already
wearing one, could put on a blindfold/towel/lenses while in a headless
form.

5 years agowielded tin opener
PatR [Tue, 21 Jan 2020 23:11:59 +0000 (15:11 -0800)]
wielded tin opener

For simplified weapon description (used by ^X and a few other places),
show "tin opener" instead of generic "tool" for that item since there
are cases where it is expected to be wielded.

Also, don't describe a wielded "glob of <foo>" as "food".