]> granicus.if.org Git - nethack/log
nethack
5 years agodo not mark multiple luckstones as the prize in mines-end
nhmall [Sat, 25 May 2019 15:58:32 +0000 (11:58 -0400)]
do not mark multiple luckstones as the prize in mines-end

if one of the random objects happened to be a luckstone then
it and the explicit one got marked as a prize.

Following this change, only one will be marked as the prize,
but a follow-up on the order of things in mines.des may be
warranted to ensure it is the explicitly placed luckstone.

5 years agowhitespace bit
nhmall [Sat, 25 May 2019 04:42:29 +0000 (00:42 -0400)]
whitespace bit

5 years agoswap places with pet onto boulder location
nhmall [Sat, 25 May 2019 04:33:47 +0000 (00:33 -0400)]
swap places with pet onto boulder location

when co-located with a boulder you could sometimes swap places
with pets of any size

bg72

5 years agovortex database update
nhmall [Sat, 25 May 2019 02:36:21 +0000 (22:36 -0400)]
vortex database update

Reported:
"The data.base entry for "vortex" is erronous, as fire and energy vortices have passive attacks (which count as "touching")"

5 years agocurses message window vs prompting
PatR [Fri, 24 May 2019 08:33:45 +0000 (01:33 -0700)]
curses message window vs prompting

Fix a problem introduced by f218e3f15e2d5525e817fb07e6a8b4773f296073
and/or a19e64e470f21ef30b96122dd2d40c26ef9b1527.  Sometimes the line
after a prompt would be empty and the next message get shown on the
line after that.  a19e64e470 was intended to fix the opposite problem
so probably overshot the mark....

5 years agocurses message window refresh
PatR [Fri, 24 May 2019 01:56:20 +0000 (18:56 -0700)]
curses message window refresh

Sometimes curses tears down and recreates all its windows (when the
display is resized, for instance) and after doing that it repopulates
the message window with data saved for use by ^P.  But it was showing
the oldest messages available rather than the most recent ones.

There is still room for improvement.  That process combines short
messages but the refresh is based on the available number of lines;
combining messages can result in lines at the bottom of the message
window being left blank.  This could be fixed by reverse-scrolling the
window and inserting more messages at the top, or by combining short
messages in history data instead of at refresh time.  The second seems
easier but won't handle changing the message window's width sensibly,
and neither method handles wrapped, long lines well.  A More>> prompt
(possibly more than one) is issued if the refresh shows too many lines
(either because long messages already took multiple lines or because
the window has become narrower and ones which used to fit now need to
be wrapped).

5 years agocurses: remove duplicate wincap2 bit
PatR [Fri, 24 May 2019 00:54:37 +0000 (17:54 -0700)]
curses: remove duplicate wincap2 bit

WC2_HITPOINTBAR was OR'd into wincap2 bitmask twice.

5 years agovs 2019 update bit
nhmall [Thu, 23 May 2019 04:11:18 +0000 (00:11 -0400)]
vs 2019 update bit

5 years agoxans fly, but could not reach your feet if you flew
nhmall [Wed, 22 May 2019 22:27:03 +0000 (18:27 -0400)]
xans fly, but could not reach your feet if you flew

5 years agofix #H8769 - steed drowns on Plane of Water
PatR [Wed, 22 May 2019 21:59:43 +0000 (14:59 -0700)]
fix #H8769 - steed drowns on Plane of Water

Air bubble movement on the Plane of Water manipulated <u.ux,u.uy>
directly when changing hero's coordinates, leaving steed with old
coordinates, resulting in dunking it when the old spot switched from
air to water.  Switch to u_on_newpos() which moves the steed with
the hero and also handles clipping when the screen is too small to
show the whole map at once.

5 years agoball and chain sanity check revisited
PatR [Wed, 22 May 2019 00:40:57 +0000 (17:40 -0700)]
ball and chain sanity check revisited

Move some duplicated debugging code into its own routine.

5 years agocloses #79
nhmall [Tue, 21 May 2019 03:45:51 +0000 (23:45 -0400)]
closes #79

5 years agoMerge branch 'spixi-engravings' into NetHack-3.6
nhmall [Tue, 21 May 2019 03:43:18 +0000 (23:43 -0400)]
Merge branch 'spixi-engravings' into NetHack-3.6

5 years agoMerge branch 'NetHack-3.6.0' of https://github.com/spixi/NetHack into spixi-engravings
nhmall [Tue, 21 May 2019 03:41:40 +0000 (23:41 -0400)]
Merge branch 'NetHack-3.6.0' of https://github.com/spixi/NetHack into spixi-engravings

5 years agowintty.c comments
PatR [Tue, 21 May 2019 01:08:32 +0000 (18:08 -0700)]
wintty.c comments

Some minor stuff I had pending that I stripped away for the status
conditions patch.

5 years agostatus line count (word two) bit
nhmall [Mon, 20 May 2019 19:16:57 +0000 (15:16 -0400)]
status line count (word two) bit

5 years agostatus_sanity_check is most useful in WIP and beta so restrict it
nhmall [Mon, 20 May 2019 16:08:51 +0000 (12:08 -0400)]
status_sanity_check is most useful in WIP and beta so restrict it

5 years agomore #H8609 - tty status condition rendering
PatR [Mon, 20 May 2019 12:26:19 +0000 (05:26 -0700)]
more #H8609 - tty status condition rendering

The earlier fix removed a valid optimization which happened to be
implemented incorrectly.  Put that back.  It also left an invalid
optimization when applied to conditions.  Remove that one.

I don't think either of these explains truncating 'y' off of "Hungry"
which was shown in one of the reports.

5 years agomake it tougher for incomplete render_status() to go unnoticed
nhmall [Mon, 20 May 2019 05:33:33 +0000 (01:33 -0400)]
make it tougher for incomplete render_status() to go unnoticed

Adds a sanity check that will write a paniclog
message if a code change prevents completion of
render_status() for each dirty (changed) field.

5 years agofix a botl status display issue
nhmall [Mon, 20 May 2019 03:35:21 +0000 (23:35 -0400)]
fix a botl status display issue

Reported as #H8609 (1679)

Some code recently added to render_status() for BL_CONDITION:
    if (!tty_condition_bits)
        continue;
was short-circuiting the required copy of NOW
values to BEFORE values for later comparison
further down in the for-loop.
    tty_status[BEFORE][idx] = tty_status[NOW][idx];

This caused some fields to be bypassed for rendering
once no more tty_condition_bits were set because the
length comparisons would match.

5 years agoremove a debug bit from Makefile.msc
nhmall [Sun, 19 May 2019 15:55:05 +0000 (11:55 -0400)]
remove a debug bit from Makefile.msc

5 years agoMakefile.msc bit for Windows
nhmall [Sun, 19 May 2019 15:48:20 +0000 (11:48 -0400)]
Makefile.msc bit for Windows

5 years agofixes github issue #190 - EDIT_GETLIN for curses
PatR [Sun, 19 May 2019 06:52:04 +0000 (23:52 -0700)]
fixes github issue #190 - EDIT_GETLIN for curses

Fixes #190

Add EDIT_GETLIN support for curses.  It remains disabled by default.

5 years agodon't merge globs with differing BUC status
nhmall [Sun, 19 May 2019 02:56:27 +0000 (22:56 -0400)]
don't merge globs with differing BUC status

5 years agogrammar bit
nhmall [Sat, 18 May 2019 20:44:57 +0000 (16:44 -0400)]
grammar bit

5 years agofurther improve additional glob interaction scenarios within a shop
nhmall [Sat, 18 May 2019 20:24:48 +0000 (16:24 -0400)]
further improve additional glob interaction scenarios within a shop

Scenarios:
1. shop_owned glob merging into shop_owned glob
2. player_owned glob merging into shop_owned glob
3. shop_owned glob merging into player_owned glob
4. player_owned glob merging into player_owned glob

5 years agocurses followup
PatR [Sat, 18 May 2019 15:12:43 +0000 (08:12 -0700)]
curses followup

Some prompts were being overwritten by the message that followed.

And clear_nhwindow(WIN_MESSAGE) gets called for just about every
keystroke so try to reduce the overhead I unwittingly added.  The
"scroll up one line earlier than the next message" mentioned in
the prior commit is much more obvious that I realized and prompt
erasure might need to be redone.

5 years agofix #H8753 - curses message window anomalies
PatR [Sat, 18 May 2019 09:25:48 +0000 (02:25 -0700)]
fix #H8753 - curses message window anomalies

Autodescribe feedback and multi-digit count prompts are always shown
on the last line of the message window and are suppressed from message
history (both ^P and DUMPLOG).  When the message window is using all
available lines, the last one was being overwritten (until the count
or the feedback was completed or dismissed, then last line returned).
Adopt the suggestion that it be scrolled up a line instead of being
overwritten.  [I haven't been able to reproduce the reported problem
where shorter overlaid text left some of longer underlying text visible
but that should now become moot.]

Bonus fix:  while testing, I noticed that if your screen only has room
for a one-line message window and you used ESC to cancel 'pick a spot
with cursor' prompting before moving the cursor, the prompt was left
intact on the message line.  tty erases it in that situation, but the
clear_nhwindow(WIN_MESSAGE) was a no-op for curses because it usually
doesn't erase old messages.  This changes the curses behavior when the
core asks it to erase the message window:  now it forces one blank line
of fake autodesribe feedback (causing the prompt or other most recent
message to scroll off top), then removes that fake feedback (leaving
a blank message line).  For multi-line message window, the old messages
scroll up by one line sooner than they would when waiting for the next
real message but are otherwise unaffected.

5 years agounpaid glob formatting
PatR [Fri, 17 May 2019 20:38:34 +0000 (13:38 -0700)]
unpaid glob formatting

Make unpaid (shop owned, that is) globs show same weight information
as for-sale globs.  And don't treat required arguments to globwt() as
if they were optional.

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

5 years agowarning bit
nhmall [Fri, 17 May 2019 20:30:52 +0000 (16:30 -0400)]
warning bit

5 years agoobj sanity checking specific to globs
PatR [Fri, 17 May 2019 20:28:41 +0000 (13:28 -0700)]
obj sanity checking specific to globs

Verify that objects with the globby bit set are actually glob objects,
that their quantity is 1, and that their weight at least superficially
makes sense.

5 years agocomment typo and an unused variable
nhmall [Fri, 17 May 2019 20:15:24 +0000 (16:15 -0400)]
comment typo and an unused variable

5 years agoMakefile.msc update for Windows
nhmall [Fri, 17 May 2019 19:57:04 +0000 (15:57 -0400)]
Makefile.msc update for Windows

5 years agofix some billing and pricing issues when globs coalesce
nhmall [Fri, 17 May 2019 16:04:01 +0000 (12:04 -0400)]
fix some billing and pricing issues when globs coalesce

payment issue caused by glob coalescing
glob pricing did not consider coalesced weight

5 years agoglob floor merge message
nhmall [Fri, 17 May 2019 15:44:39 +0000 (11:44 -0400)]
glob floor merge message

Make it more obvious that globs that just merged on the
floor may be at an adjacent location.

5 years agofarlook feedback for overloaded symbols
PatR [Thu, 16 May 2019 22:26:35 +0000 (15:26 -0700)]
farlook feedback for overloaded symbols

When using '/' or ';' and picking--not just viewing the autodescribe
feedback for--a space or '#' on the map, the game would produce
 That can be many things (stone)
or
 That can be many things (corridor)
unlike the usual
 -     the interior of a monster or a wall or an open door (wall)
when the symbol matched more than 4 things.  I first changed it to
append the full sentence's missing period, but ultimately switched to
 #     can be many things (corridor)
so that the symbol that "many things" refers to isn't hidden.  This
works better for ^P where player isn't looking at the symbol anymore.

5 years agoversion number 3.6.3 for vms
PatR [Sun, 12 May 2019 22:52:04 +0000 (15:52 -0700)]
version number 3.6.3 for vms

5 years agoadd VERSION_IN_DLB_FILENAME to makedefs detection
nhmall [Sun, 12 May 2019 19:14:31 +0000 (15:14 -0400)]
add VERSION_IN_DLB_FILENAME to makedefs detection

5 years agosupport version-specific dlb file
nhmall [Sun, 12 May 2019 18:51:26 +0000 (14:51 -0400)]
support version-specific dlb file

There was a post-3.6.2 discussion on a forum where someone had
tried to copy the NetHack 3.6.2 exe file overtop of an
existing NetHack 3.6.0 playground, and then try to run it.

We have never suggested trying that, nor do we attempt to
provide any backward or forward compatibility between the
supporting files found in nhdat that would allow that. Any
particular version of NetHack expects to have matching
support files designed and matched to that version.

This adds optional support for helping to prevent the
opening of nhdat containing support files from an
unmatched version of NetHack.

If you #define VERSION_IN_DLB_FILENAME in your
platform's include/*conf.h file, it will use a
name such as nhdat362, instead of plain nhdat, and
will exit more gracefully than the fault/crash
mentioned in the discussion if it doesn't find the
file it is looking for.

Developers - please note that if you do
to cause NetHack to look for an nhdat* file with
the version info appended to the name, you will likely
have to modify your build/clean/spotless mechanics
beyond the C compile itself to properly deal with the
new generated file name.

5 years agoadd windows startup msg fix to fixes36.3
nhmall [Sun, 12 May 2019 02:01:23 +0000 (22:01 -0400)]
add windows startup msg fix to fixes36.3

5 years agoReport of no error msg deliverd by NetHackw.exe for some startup issues
nhmall [Sun, 12 May 2019 01:55:27 +0000 (21:55 -0400)]
Report of no error msg deliverd by NetHackw.exe for some startup issues

5 years agofix #H8712 - curses menu selector overflow
PatR [Sat, 11 May 2019 10:04:53 +0000 (03:04 -0700)]
fix #H8712 - curses menu selector overflow

The curses interface would assign menu selector characters a-z, A-Z,
and then 0-9, but trying to type 0-9 would start a count rather than
select an entry, and if the display was tall enough for more than 62
entries, the ones after '9' were ASCII punctuation characters.
Limit the number of entries per page to 52 + number_of_'$'_entries
(which should be 0 or 1) so that it won't run out of normal letters.

The perm_invent window, if enabled, ought to allow more than that
because it isn't used to make selections and might have an arbtirary
number of '#' overflow entries.  But I'll leave that for somebody
else to tackle.

Tested by temporarily setting the limit to 26 instead of 52 since
I'm not able to display anything tall enough to exercise the latter.

5 years agoplace_object vs multiple boulders
PatR [Fri, 10 May 2019 22:21:59 +0000 (15:21 -0700)]
place_object vs multiple boulders

When place_object() puts a non-boulder underneath a boulder, make it
put the non-boulder under all the boulders there rather than just under
the topmost one.  Otherwise the map display will show the non-boulder
rather than the 2nd boulder if the top boulder gets moved away by some
means other than pushing.  (Pushing explicitly brings lower boulder to
top of pile in order to try to push it next.)

Reproduce by:  wish for boulder--it will drop.  Drop something else--
the something-else will end up under the boulder.  Repeat.  The second
boulder will be on top but the second something-else will be next in
the pile, above the first boulder.  Now polymorph into a giant and pick
up the first boulder, then move away from that spot.  Map will show
second something-else instead of the remaining boulder.

This fairly simple fix should work reliably on new games since boulders
will end up being consecutive on the top of piles.  For old games,
boulders after the topmost could be anywhere and still yield a display
glitch, but since that's all the problem is (I hope...), we ought to
be able to live with that until old games eventually go away.

[A map display glitch doesn't explain a corrupted 'uball' so this fix
doesn't solve that.]

5 years agocomment bit
nhmall [Fri, 10 May 2019 19:08:59 +0000 (15:08 -0400)]
comment bit

5 years agoinstead of BETA or not, have devel states of release, wip, beta
nhmall [Fri, 10 May 2019 18:59:03 +0000 (14:59 -0400)]
instead of BETA or not, have devel states of release, wip, beta

Now that development sources are made public prior to
BETA testing, it is useful to have a work-in-progress
state prior to BETA.

5 years agoensure go-forward builds of branch NetHack-3.6 don't still say 3.6.2
nhmall [Fri, 10 May 2019 17:47:59 +0000 (13:47 -0400)]
ensure go-forward builds of branch NetHack-3.6 don't still say 3.6.2

5 years agotry to extract a bit more info from impossible obfree: not on bill
nhmall [Fri, 10 May 2019 17:11:39 +0000 (13:11 -0400)]
try to extract a bit more info from impossible obfree: not on bill

5 years agofixes36.2 update for posterity
PatR [Fri, 10 May 2019 00:15:14 +0000 (17:15 -0700)]
fixes36.2 update for posterity

Change of couple entries which describe fixed bugs to use past tense
instead of present tense.  Fix a typo or two and a couple of instances
of clumsy wording.  Move a dead-fake-hero-on-trap entry from normal
fixes section to exposed-by-git section since it was a post-3.6.1 bug.
Move two VMS entries from exposed-by-git section to interface-specific
section where they were intended.

I didn't make it through the whole file so there may be more room for
improvement.  It's too late for 3.6.2 but the copy of doc/fixes36.2 in
later versions will be 'better'.

5 years agonew fixes36.3 NetHack-3.6.3_WIP
nhmall [Wed, 8 May 2019 23:32:35 +0000 (19:32 -0400)]
new fixes36.3

5 years agoThis is cron-daily v1-Feb-22-2019. guidebook updated: doc/Guidebook.txt NetHack-3.6.2 NetHack-3.6.2_Release NetHack-3.6.2_Released
nhw_cron [Tue, 7 May 2019 19:29:25 +0000 (15:29 -0400)]
This is cron-daily v1-Feb-22-2019.  guidebook updated: doc/Guidebook.txt

5 years agoNetHack 3.6.2 release-related updates
nhmall [Tue, 7 May 2019 18:39:24 +0000 (14:39 -0400)]
NetHack 3.6.2 release-related updates

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Tue, 7 May 2019 18:11:33 +0000 (14:11 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoGuidebook.mn: drop unneeded escaping NetHack-3.6.2-beta01
keni [Tue, 7 May 2019 17:53:24 +0000 (13:53 -0400)]
Guidebook.mn: drop unneeded escaping

5 years agotop level Files take 2
nhmall [Tue, 7 May 2019 13:10:48 +0000 (09:10 -0400)]
top level Files take 2

5 years agoMake Files match the most recent beta version
nhmall [Tue, 7 May 2019 12:53:43 +0000 (08:53 -0400)]
Make Files match the most recent beta version

5 years ago3.6.2 release bits into Guidebook
nhmall [Tue, 7 May 2019 12:40:46 +0000 (08:40 -0400)]
3.6.2 release bits into Guidebook

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Mon, 6 May 2019 03:20:34 +0000 (23:20 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoVMS update
PatR [Sun, 5 May 2019 23:56:58 +0000 (16:56 -0700)]
VMS update

Long overdue.  Install.vms ought to be rewritten from scratch but that
will probably never happen.

5 years agocomment/formatting tidbits
PatR [Sun, 5 May 2019 22:20:09 +0000 (15:20 -0700)]
comment/formatting tidbits

Some miscellaneous stuff I don't want to discard of lose track of.
No change it actual code.

5 years agobones bit: crysknife vs green slime
PatR [Sun, 5 May 2019 21:48:43 +0000 (14:48 -0700)]
bones bit: crysknife vs green slime

Being turned into green slime never drops hero's inventory so invent
objects shouldn't be subject to obj_not_held() handling.

obj_not_held() does apply to undead.  Arising as a mummy or vampire
doesn't go through the trouble of dropping everything and picking it
back up, but there is a point in the die...arise sequence where the
hero is implicitly a corpse so nobody is holding his/her stuff.

5 years agocouple of interface comments
PatR [Sun, 5 May 2019 20:38:58 +0000 (13:38 -0700)]
couple of interface comments

5 years agoball&chain sanity checking
PatR [Sun, 5 May 2019 20:33:30 +0000 (13:33 -0700)]
ball&chain sanity checking

Add a bc sanity check.  It seems to work ok--in other words, not
trigger--under normal punishment.  I don't have any test cases to
exercise its warnings.

This dragged in a couple of minor bc changes that were pending.  I
should have cleared those out before tackling the sanity checking.

5 years agoFix monster trapped state being wrong
Pasi Kallinen [Sun, 5 May 2019 19:49:21 +0000 (22:49 +0300)]
Fix monster trapped state being wrong

When cloning a monster, clear the clone trapped and hiding states.
When splitting a monster (eg. a black pudding), the clone could
be placed on a trap, so do mintrap.
When removing a monster from the map, clear the trapped state.

5 years agoFix impossible if monster cannot be relocated from tele region
Pasi Kallinen [Sun, 5 May 2019 19:29:47 +0000 (22:29 +0300)]
Fix impossible if monster cannot be relocated from tele region

5 years agosync recent wording change in history
nhmall [Sun, 5 May 2019 18:16:49 +0000 (14:16 -0400)]
sync recent wording change in history

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Sun, 5 May 2019 17:36:45 +0000 (13:36 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoMerge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource...
nhmall [Sun, 5 May 2019 17:34:38 +0000 (13:34 -0400)]
Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01

5 years agosome updates for 3.6.2
nhmall [Sun, 5 May 2019 17:29:40 +0000 (13:29 -0400)]
some updates for 3.6.2

5 years agoThis is cron-daily v1-May-5-2019. guidebook updated: doc/Guidebook.txt
keni [Sun, 5 May 2019 17:32:53 +0000 (13:32 -0400)]
This is cron-daily v1-May-5-2019.  guidebook updated: doc/Guidebook.txt
to 948099800b722f9be0e8f9c8d4d96cfda5cea98e

5 years agosome updates for 3.6.2
nhmall [Sun, 5 May 2019 17:29:40 +0000 (13:29 -0400)]
some updates for 3.6.2

5 years agodisplay.c formatting
PatR [Thu, 2 May 2019 22:22:29 +0000 (15:22 -0700)]
display.c formatting

Miscellaneous cleanup of display.c.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Wed, 1 May 2019 13:06:37 +0000 (09:06 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoDatabase fixes
Pasi Kallinen [Wed, 1 May 2019 10:38:53 +0000 (13:38 +0300)]
Database fixes

Merge barbed devil entry to already existing one.
Replace spaces in the beginning of lines with tabs.

5 years agofix github issue #188 - #chat to succubus/incubus
PatR [Tue, 30 Apr 2019 18:35:06 +0000 (11:35 -0700)]
fix github issue #188 - #chat to succubus/incubus

Fixes #188

The change to fix setting SEDUCE=0 in sysconf broke chatting with
seductive demons by unintentionally changing the way Null attack
argument was handled.  It's still handled differently than it used
to be, but I think this difference is correct.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Mon, 29 Apr 2019 17:52:06 +0000 (13:52 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoAdd the missing int param
Pasi Kallinen [Mon, 29 Apr 2019 17:45:18 +0000 (20:45 +0300)]
Add the missing int param

5 years agoUnify code for cure self spell
Pasi Kallinen [Mon, 29 Apr 2019 15:50:08 +0000 (18:50 +0300)]
Unify code for cure self spell

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Mon, 29 Apr 2019 11:49:58 +0000 (07:49 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agofix github issue #187 - 'reassess' panic with Qt5
PatR [Mon, 29 Apr 2019 00:32:16 +0000 (17:32 -0700)]
fix github issue #187 - 'reassess' panic with Qt5

Fixes #187

Qt5 gave "status 'reassess' before init" panic at start of new game.
Don't call status_initialize(REASSESS) from set_usamon()--used for
hero setup as well as for hero polymorph--unless it was previously
called from display_gamewindows() with !REASSESS [which happens when
windowprocs.wincap2 has WC2_STATUS_HILITES or WC2_FLUSH_STATUS set].

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Fri, 26 Apr 2019 23:47:18 +0000 (19:47 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agofix #H8612 - splashes of venom might stay intact
PatR [Thu, 25 Apr 2019 14:11:42 +0000 (07:11 -0700)]
fix #H8612 - splashes of venom might stay intact

If a poly'd hero spits venom and it lands at a 'soft' spot such as
water, it would remain as an intact venom object.  (Venom spat by
monsters seems to always be used up regardless of where it lands.)

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Thu, 25 Apr 2019 01:16:07 +0000 (21:16 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agovampshifting Vlad
PatR [Wed, 24 Apr 2019 23:59:44 +0000 (16:59 -0700)]
vampshifting Vlad

Vlad keeps his own form when carrying the Candelabrum, but if you
manage to get that away from him he should behave like other vampires.
He wasn't though; a high level wizard casting polymorph on him would
change him into an arbitrary monster rather than into a wolf/bat/cloud
that revives as Vlad when killed.

5 years agofix #H8619 - hallucination vs vampire transform
PatR [Wed, 24 Apr 2019 21:02:09 +0000 (14:02 -0700)]
fix #H8619 - hallucination vs vampire transform

|The seemingly dead vampire bat rises as a vampire.
was overriding hallucination when describing both old and new forms.
In 3.6.0 it only overrode the dying shape (explicitly so, presumeably
because the feature was brand new) and honored hallucination for the
revived shape.  The 3.6.1 fix to prevent non-hallucinating:  'The
seemingly dead Foo rises as Foo.' for a named vampire unintentionally
overrode hallucination for the revived shape.

Change it to honor hallucination for both before and after monsters
|The seemingly dead grid bug rises as a microscopic space fleet.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Mon, 22 Apr 2019 18:31:18 +0000 (14:31 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoenum bit
nhmall [Mon, 22 Apr 2019 18:27:41 +0000 (14:27 -0400)]
enum bit

5 years agopreserve dknown field between fakeobj instances
nhmall [Mon, 22 Apr 2019 18:17:18 +0000 (14:17 -0400)]
preserve dknown field between fakeobj instances

Preserve temporary fake object's previous dknown value by storing it
as a flag value within the m_ap_type field of the posing monster, and
recalling it when it is needed.

This is intended to help eliminate observable differences in price display
between real objects and mimics posing as objects.

98% of this is just switching the code to utilize macro M_AP_TYPE(mon)
everywhere to ensure that the flag bits are stripped off when needed.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Sun, 21 Apr 2019 08:00:47 +0000 (04:00 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agomimicking a corpse
PatR [Sat, 20 Apr 2019 23:00:29 +0000 (16:00 -0700)]
mimicking a corpse

Noticed while looking over mimic hiding.  When on an object, a mimic
will hide as that type of object.  But for a corpse, it picked a random
monster type and could choose one that doesn't leave a corpse.  Also as
a tin it would always be an empty one, but there doesn't seem to be any
way for a player to learn that.

5 years agoquantum mechanic hits
PatR [Sat, 20 Apr 2019 00:32:36 +0000 (17:32 -0700)]
quantum mechanic hits

Noticed while trying to find the reason for the wildmiss impossible(),
you could be teleported and then drop dead at the destination.  A QM's
AD_TLPT hit also does 1d4 physical damage which gets applied after the
teleport.  Getting "You die." seemed pretty strange, particularly after
picking the destination with telport control.  This makes sure that the
damage will never be fatal when teleport is attempted.

5 years agoVMS config1.h
PatR [Fri, 19 Apr 2019 19:42:35 +0000 (12:42 -0700)]
VMS config1.h

Some port of yacc was generating '#include <stdlib.h>' before our
'#include "config.h" and needed a specific define from config1.h to
be supplied on the command line to avoid conflicting contents within
that header file, but then config1.h drew complaints about redefining
the macro.  Guard against that.

5 years agostatus 'fieldorder'
PatR [Fri, 19 Apr 2019 19:28:14 +0000 (12:28 -0700)]
status 'fieldorder'

DEC C in one of its non-ANSI modes didn't like
 fieldorder = test ? &array1 : &array2;
It first complained that '&' applied to an array has no effect (which
was typically true in pre-ANSI environments) and once those '&'s are
ignored, the attempted assignment didn't match the variable's type.
That code was actually more complicated that it needed to be; slightly
simpler code works as intended.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Fri, 19 Apr 2019 12:55:39 +0000 (08:55 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agofix #H8579 - mimics mimicking shop objects
PatR [Thu, 18 Apr 2019 22:41:54 +0000 (15:41 -0700)]
fix #H8579 - mimics mimicking shop objects

Showing the price of a shop object when examining it with '/' or ';'
didn't include a price if it was actually a mimic.  This makes fake
objects have prices when appropriate, but it is only a partial fix
because moving away from a mimic causes nethack to forget the fake
object's dknown flag for most types of objects.

That could be solved by adding an mobj field to mon->mextra, which
will break save compatibility, or by adding a whole extra set of
object glyphs for object-with-dknown-set.  The latter could probably
be done without breaking backwards save compatibility (new program
using old files) but it seems like more effort that it'd be worth and
it would break forwards save compatibility (old program attempting to
use new files--something we've never claimed to support).

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Thu, 18 Apr 2019 12:17:56 +0000 (08:17 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agoanother bit of reformatting
PatR [Thu, 18 Apr 2019 02:01:47 +0000 (19:01 -0700)]
another bit of reformatting

5 years agomonster movement comments
PatR [Thu, 18 Apr 2019 01:57:14 +0000 (18:57 -0700)]
monster movement comments

A bit of reformatting and a couple of new comments.  No change in
behavior.

5 years agoMerge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
nhmall [Wed, 17 Apr 2019 18:29:50 +0000 (14:29 -0400)]
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2

5 years agovms update revisited
PatR [Mon, 15 Apr 2019 20:48:27 +0000 (13:48 -0700)]
vms update revisited

Redo the UCHAR_P handling from df84da3ec2f38460e137a4bdfb25148262d544c2
(5 weeks ago) and 02b21865fd288626db6984d963078afd0ec34716 followup.
The earlier #define was happening too late in the #include sequence;
tradstdc.h is processed before global.h+(vmsconf.h,unixconf.h,...).

Also, DEC C in 'common' mode complains about indented '#' starting a
line but not in column 1.  Putting #pragma in column 2 was deliberate
in case of an ancient compiler which doesn't understand that directive.
Splitting the difference via non-indented '# pragma' may or may not
mollify the latter when it's bypassing conditionally excluded code.