]> granicus.if.org Git - nethack/log
nethack
5 years agoGuidebook update from latest cron-daily NetHack-3.7.0_WIP-2020-02-14
nhmall [Fri, 14 Feb 2020 03:10:37 +0000 (22:10 -0500)]
Guidebook update from latest cron-daily

5 years agoWindows options dynamically
nhmall [Thu, 13 Feb 2020 21:57:37 +0000 (16:57 -0500)]
Windows options dynamically

There are two executables int the windows binary, each of which
have different options and capabilities. Sharing of one dat/options
file hasn't really been an accurate approach.

Produce that information dynamically for the Windows exe files.

This impacts alt-v results.

5 years agounseen pet drowning
PatR [Thu, 13 Feb 2020 23:38:59 +0000 (15:38 -0800)]
unseen pet drowning

The "you have a sad feeling for a moment" message was only given when
one monster kills another (and the latter is an unseen pet).  Give it
for drowning too.  There are probably a bunch of other circumstances
which warrant it as well but I've settled for handling minliquid().

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Thu, 13 Feb 2020 23:19:35 +0000 (18:19 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agostone/unexplored glyph follow-up
nhmall [Thu, 13 Feb 2020 22:26:39 +0000 (17:26 -0500)]
stone/unexplored glyph follow-up

typo

5 years agoAlloc sizeof struct instead of pointer-to-struct
Pasi Kallinen [Thu, 13 Feb 2020 20:06:50 +0000 (22:06 +0200)]
Alloc sizeof struct instead of pointer-to-struct

5 years agoeliminate an odd line wrapping noticed on windows
nhmall [Thu, 13 Feb 2020 05:59:04 +0000 (00:59 -0500)]
eliminate an odd line wrapping noticed on windows

5 years agoplug a couple of memory leaks in sp_lev.c, take II
PatR [Thu, 13 Feb 2020 02:56:41 +0000 (18:56 -0800)]
plug a couple of memory leaks in sp_lev.c, take II

[...]
| Change selection_free(foo) to also free(foo) after freeing foo's
| fields.  Every use was already
|   selection_free(foo);
|   free(foo);
| except for the two instances of memory leak.

And except for the three which aren't in sp_lev.c, one of which was
dealing with memory managed by Lua.  This time it seems to be working
as intended.

5 years agoGuidebook spelling mistake
PatR [Thu, 13 Feb 2020 00:22:33 +0000 (16:22 -0800)]
Guidebook spelling mistake

5 years agoadd some new, easier achievements
PatR [Wed, 12 Feb 2020 22:35:37 +0000 (14:35 -0800)]
add some new, easier achievements

Introduce eight achievements that can be attained by more players.
 Entered Gnomish Mines  - self explanatory
 Entered Mine Town      - the town portion, not just the level
 Entered a shop         - any tended shop on any level
 Entered a temple       - likewise for temple
 Consulted the Oracle   - bought at least one major or minor oracle
 Read a Discworld Novel - read at least one passage
 Entered Sokoban        - like mines
 Entered the Big Room   - not always possible since not always present

The novel and bigroom ones aren't always achieveable since novels are
only guaranteed if a book or scroll shop gets created and bigroom is
only guaranteed in wizard mode.  No one ever claimed that every
possible achievement can be attained in a single game.  (If one for
entering the Fort Ludios level--or perhaps entering the Fort itself--
eventually gets add, that won't be possible in every game either.)

The mine town one probably needs some tweaking.  Two of the town's
seven variants have no town boundary (despite a rectangular area of
pre-defined map) and at present simply arriving on either of those
levels is enough to be credited with the entered-town achievement.

Bump EDITLEVEL because u.uachieved[] has increased in size.  This
time it has been expanded to the maximum that xlogfile's bitmask of
achievements can handle, enough for up to 9 more achievements without
another EDITLEVEL increment.

5 years agoGuidebook.mn streamlining
PatR [Wed, 12 Feb 2020 19:43:25 +0000 (11:43 -0800)]
Guidebook.mn streamlining

Set up variable 'fF' once and use it to conditionalize between
fixed-width font Guidebook.txt and proportional-width font
Guidebook.ps instead of making the width comparison of 'f' and 'F'
each time.  There are four instances where it is used; three that
suppress some indentation for the plain text output and one that
manually wraps a couple of long lines for it.

This change shouldn't produce different output from before (last
night) and doesn't need any corresponding change in Guidebook.tex.

5 years agoGuidebook update: Achievements
PatR [Wed, 12 Feb 2020 10:35:35 +0000 (02:35 -0800)]
Guidebook update: Achievements

Redo the Achievements section in Guidebook.mn to be more compact.
It's also become more complicated because it formats Guidebook.txt
differently from Guidebook.ps/.pdf.

Finally add the Achievements section to Guidebook.tex to catch up.
Not as complicated but also not tested.

5 years agoGuidebook update: armor and other objects
PatR [Wed, 12 Feb 2020 01:21:39 +0000 (17:21 -0800)]
Guidebook update:  armor and other objects

Condense the clunky one entry per line table of suits of armor and
their AC values in Guidebook.mn.  Guidebook.tex uses a two-column table
that I've left alone.

Mention all the other types of armor instead of leaving out gloves and
shirts.  For armor commands, mention that P and R work.

Rings:  describe their interaction with gloves.  For ring commands,
include a pointer to amulets.

Amulets:  for amulet commands, mention that A, W, and T work.

Tools:  mention that some can be worn and include a pointer to amulets
for the relevant commands.  Also, that some can be wielded as weapons.

Boulders and statues:  boulders can be pushed and smashed, statues can
be smashed.

Gold:  not subject to blessing or cursing.  goldX option affects BUCX
filtering.

5 years agoimprove the g.multi condition results
nhmall [Tue, 11 Feb 2020 19:04:19 +0000 (14:04 -0500)]
improve the g.multi condition results

5 years agoupdate Guidebook.txt from cron-NetHack-3.7
nhmall [Tue, 11 Feb 2020 05:25:27 +0000 (00:25 -0500)]
update Guidebook.txt from cron-NetHack-3.7

5 years agoversion bit
nhmall [Tue, 11 Feb 2020 05:04:28 +0000 (00:04 -0500)]
version bit

5 years agobump Guidebook date
nhmall [Tue, 11 Feb 2020 04:56:46 +0000 (23:56 -0500)]
bump Guidebook date

5 years agoaccuracy bit
nhmall [Tue, 11 Feb 2020 04:39:37 +0000 (23:39 -0500)]
accuracy bit

5 years agominor correction to Guidebook.tex
nhmall [Tue, 11 Feb 2020 04:33:34 +0000 (23:33 -0500)]
minor correction to Guidebook.tex

5 years agoMerge branch 'chasonr-msdos-video-doc' into NetHack-3.7
nhmall [Tue, 11 Feb 2020 04:26:26 +0000 (23:26 -0500)]
Merge branch 'chasonr-msdos-video-doc' into NetHack-3.7

5 years agoGuidebook corrections for msdos video_width and video_height
nhmall [Tue, 11 Feb 2020 04:20:58 +0000 (23:20 -0500)]
Guidebook corrections for msdos video_width and video_height

merge pull request #294 from chasonr

Closes #294

5 years agoMerge branch 'msdos-video-doc' of https://github.com/chasonr/NetHack into chasonr...
nhmall [Tue, 11 Feb 2020 04:05:33 +0000 (23:05 -0500)]
Merge branch 'msdos-video-doc' of https://github.com/chasonr/NetHack into chasonr-msdos-video-doc

5 years agobump editlevel
nhmall [Tue, 11 Feb 2020 03:12:38 +0000 (22:12 -0500)]
bump editlevel

the code in pr298 altered the sound bit for one existing monster

5 years agosounds for minotaurs pr298
nhmall [Tue, 11 Feb 2020 03:04:10 +0000 (22:04 -0500)]
sounds for minotaurs pr298

Closes #298

5 years agoMerge branch 'NullCGT-minotaurs-pr298' into NetHack-3.7
nhmall [Tue, 11 Feb 2020 03:02:26 +0000 (22:02 -0500)]
Merge branch 'NullCGT-minotaurs-pr298' into NetHack-3.7

5 years agoRevert "plug a couple of memory leaks in sp_lev.c"
PatR [Mon, 10 Feb 2020 23:44:16 +0000 (15:44 -0800)]
Revert "plug a couple of memory leaks in sp_lev.c"

This reverts commit 1b7ac939306231a11ac44b24ef21b2ada40ecacc.

I just got a crash from within Lua when loading mine town and it
appears to be memory related, so back out the "plug leaks" commit
for the time being.

5 years agoplug a couple of memory leaks in sp_lev.c
PatR [Mon, 10 Feb 2020 22:23:47 +0000 (14:23 -0800)]
plug a couple of memory leaks in sp_lev.c

selection_floodfill() would free the contents of its temporary
selection structure when the check function was Null but neglected
to free the allocated structure itself.  I don't know whether that
was ever triggered.

generate_way_out_method() did likewise when trying to make a hole
or trapdoor.  It reused the 'ov3' pointer without freeing it first.
'heaputil' reported instances of non-freed memory that were
allocated at line 3612 by selection_clone(), only called within
generate_way_out_method().

Change selection_free(foo) to also free(foo) after freeing foo's
fields.  Every use was already
  selection_free(foo);
  free(foo);
except for the two instances of memory leak.

5 years agosimplify Achievements display
PatR [Mon, 10 Feb 2020 19:21:44 +0000 (11:21 -0800)]
simplify Achievements display

The you-acquired-the-Amulet achievement uses alternate wording when
you were carrying it but just gave it up via #offer to ascend.  That
wording looks much better when displayed right before "You ascended!",
without entered-endgame and entered-astral (and maybe always-blind or
never-wore-armor) achievements in between.  That was and still is done
by taking it away.  Adding it back in the desired spot is simpler than
leaving it out while tracking whether it was removed.

Effectively, ACH_UWIN (ascension) is forced to be very last--where it
will always be anyway, but at one point the blind and nudist ones came
after it--and ACH_AMUL (you obtained the Amulet) is sorted to right
before that.  For non-ascending games, the Amulet achievement is left
in the position where it was attained.

5 years agoredo achievement tracking
PatR [Mon, 10 Feb 2020 08:17:54 +0000 (00:17 -0800)]
redo achievement tracking

Instead of an assortment of bits, assign numeric indices to the
potential achievements and keep an array of those in the order they
were attained.  So disclosure might show the same subset occurring
differently in different games depending on the player's actions.
The encoded field in xlogfile doesn't care about that and remains
the same.

Modifies 'struct u', so EDITLEVEL has been incremented and existing
save files are invalidated.

5 years agoMerge branch 'feature/sounds' of https://github.com/NullCGT/NetHack into NullCGT...
nhmall [Mon, 10 Feb 2020 01:38:22 +0000 (20:38 -0500)]
Merge branch 'feature/sounds' of https://github.com/NullCGT/NetHack into NullCGT-minotaurs-pr298

5 years agoAchievements doc bit
PatR [Mon, 10 Feb 2020 00:56:23 +0000 (16:56 -0800)]
Achievements doc bit

Confusion on my part.  "Entered Gehennom" achievement is recorded if
you enter the Valley of the Dead rather than requiring that you get
past that level.

Guidebook.tex is still lagging but not forgotten.

5 years agoremove another unused variable
PatR [Sun, 9 Feb 2020 20:28:19 +0000 (12:28 -0800)]
remove another unused variable

5 years agoremove an unused variable
nhmall [Sun, 9 Feb 2020 20:21:35 +0000 (15:21 -0500)]
remove an unused variable

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sun, 9 Feb 2020 19:57:15 +0000 (14:57 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agomove status condition field selection to its own menu
nhmall [Sun, 9 Feb 2020 19:56:37 +0000 (14:56 -0500)]
move status condition field selection to its own menu

5 years agoUnify Bag of Holding item loss chance
Pasi Kallinen [Sun, 9 Feb 2020 16:39:46 +0000 (18:39 +0200)]
Unify Bag of Holding item loss chance

5 years agoFix the selection param unify
Pasi Kallinen [Sun, 9 Feb 2020 12:47:41 +0000 (14:47 +0200)]
Fix the selection param unify

5 years agoUnify lua setting wallprop
Pasi Kallinen [Sun, 9 Feb 2020 12:30:11 +0000 (14:30 +0200)]
Unify lua setting wallprop

5 years agoUnify some exported lua script params
Pasi Kallinen [Sun, 9 Feb 2020 11:44:04 +0000 (13:44 +0200)]
Unify some exported lua script params

5 years agoset g.opt_need_redraw on ingame cond_foo change
nhmall [Sun, 9 Feb 2020 02:38:14 +0000 (21:38 -0500)]
set g.opt_need_redraw on ingame cond_foo change

5 years agocatch-up on some updates to fixes37.0
nhmall [Sun, 9 Feb 2020 02:07:04 +0000 (21:07 -0500)]
catch-up on some updates to fixes37.0

Side note: Here's a correction for the commit
message for 330287da42a20017ec56de69099fd49afa0765d0:

The original incorrectly stated 'CONDITION_SIZE' (which
doesn't exist) instead of CONDITION_COUNT in one of the
paragraphs.

--- snip ---

eliminate the uses of the manually maintained BL_MASK_BITS

Use CONDITION_COUNT which does not require manual updating.

Also attempts to adjust win32 graphics window port for
the new fields.

That port has its own field names and should be adjusted
to using the following which are declared extern in
include/botl.h.

   struct conditions[CONDITION_COUNT];
   int cond_idx[CONDITION_COUNT];

The former contains the fields that were port-specifically
added to the win32 graphical port and more, plus it is
centrally maintained and currently utilized by tty and curses.

The cond_idx[] array contains the ranked ordering of the
condition fields from highest ranking to lowest. Instead
of indexing like this:
    int i;
    for (i = 0; i < CONDITION_COUNT; ++i) {
        ...conditons[i].enabled;
        ...condtions[i].text[0];
    }

you can use the ranked ordering like this:
    int i, ci;
    for (i = 0; i < CONDITION_COUNT; ++i) {
        ci = cond_idx[i];
        ...conditons[ci].enabled;
        ...condtions[ci].text[0];
    }

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sun, 9 Feb 2020 01:51:10 +0000 (20:51 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoeliminate the uses of the manually maintained BL_MASK_BITS
nhmall [Sun, 9 Feb 2020 01:40:38 +0000 (20:40 -0500)]
eliminate the uses of the manually maintained BL_MASK_BITS

Use CONDITION_SIZE which does not require manual updating.

Also attempts to adjust win32 graphics window port for
the new fields.

That port has its own field names and should be adjusted
to using the following which are declared extern in
include/botl.h.

   struct conditions[CONDITION_COUNT];
   int cond_idx[CONDITION_COUNT];

The former contains the fields that were port-specifically
added to the win32 graphical port and more, plus it is
centrally maintained and currently utilized by tty and curses.

The cond_idx[] array contains the ranked ordering of the
condition fields from highest ranking to lowest. Instead
of indexing like this:
int i;
for (i = 0; i < CONDITION_COUNT; ++i) {
    ...conditons[i].enabled;
      ...condtions[i].text[0];
}

you can use the ranked ordering like this:
int i, ci;
for (i = 0; i < CONDITION_COUNT; ++i) {
    ci = cond_idx[i];
    ...conditons[ci].enabled;
      ...condtions[ci].text[0];
}

5 years agomore level teleport feedback
PatR [Sun, 9 Feb 2020 01:15:18 +0000 (17:15 -0800)]
more level teleport feedback

Level teleporting to current level doesn't give any feedback but
is usually done intentionally to abort the level teleport.  Being
on the bottom level of branch and attempting to teleport even lower
failed silently like choosing the current level.  Have it give some
feedback about not being able to go any lower.

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sun, 9 Feb 2020 00:52:22 +0000 (19:52 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoranking of new status conditions
nhmall [Sun, 9 Feb 2020 00:51:04 +0000 (19:51 -0500)]
ranking of new status conditions

5 years agonew data.base quote: win/winner/winning
PatR [Sun, 9 Feb 2020 00:05:29 +0000 (16:05 -0800)]
new data.base quote: win/winner/winning

A quote about "winning team" doesn't fit nethack very well but this
is too good to pass up.  I considered adding "/Rule Six/" as a false
rumor, but the rumors don't offer any way to specify attribution.

Also, give full attribution for another Douglas Adams quote that's
used for a random ungraving.

5 years agoUnify revealing hiding monsters for mvm attacks
Pasi Kallinen [Sat, 8 Feb 2020 21:38:06 +0000 (23:38 +0200)]
Unify revealing hiding monsters for mvm attacks

Whether the monster-vs-monster hits or misses, hiders
are revealed the same way. Unify that part of the code.

Use git show --patience to have a better view of the changes.

5 years agomore condition_aliases
nhmall [Sat, 8 Feb 2020 19:26:03 +0000 (14:26 -0500)]
more condition_aliases

5 years agoadjust condition_aliases to include new macro masks
nhmall [Sat, 8 Feb 2020 19:01:57 +0000 (14:01 -0500)]
adjust condition_aliases to include new macro masks

5 years agoremove unused variable
PatR [Sat, 8 Feb 2020 17:59:08 +0000 (09:59 -0800)]
remove unused variable

5 years agoUnify finding room pos for some features
Pasi Kallinen [Sat, 8 Feb 2020 17:47:36 +0000 (19:47 +0200)]
Unify finding room pos for some features

5 years agoUnify (un)locking boxes in inventory
Pasi Kallinen [Sat, 8 Feb 2020 16:56:40 +0000 (18:56 +0200)]
Unify (un)locking boxes in inventory

5 years agoUnify inventory letter value for sortloot
Pasi Kallinen [Sat, 8 Feb 2020 16:42:06 +0000 (18:42 +0200)]
Unify inventory letter value for sortloot

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 8 Feb 2020 16:06:04 +0000 (11:06 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 8 Feb 2020 16:05:26 +0000 (11:05 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoUnify multishot class bonus code
Pasi Kallinen [Sat, 8 Feb 2020 16:04:54 +0000 (18:04 +0200)]
Unify multishot class bonus code

5 years agocondtests[bl_bareh] requires a couple of additional g.context.botl = 1
nhmall [Sat, 8 Feb 2020 16:03:46 +0000 (11:03 -0500)]
condtests[bl_bareh] requires a couple of additional g.context.botl = 1

5 years agoUnify finding a queen bee
Pasi Kallinen [Sat, 8 Feb 2020 15:35:52 +0000 (17:35 +0200)]
Unify finding a queen bee

5 years agoAdd some stair helper functions
Pasi Kallinen [Sat, 8 Feb 2020 15:02:18 +0000 (17:02 +0200)]
Add some stair helper functions

5 years agoFix digging through iron bars from adjacent pit
Pasi Kallinen [Sat, 8 Feb 2020 15:00:03 +0000 (17:00 +0200)]
Fix digging through iron bars from adjacent pit

It was possible to create a pit on top of iron bars, by first creating
a pit next to the bars, going down into the pit, and then digging sideways
towards the bars. This did not destroy the iron bars.

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 8 Feb 2020 12:40:47 +0000 (07:40 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agooptions.c initializers got misaligned
nhmall [Sat, 8 Feb 2020 12:39:21 +0000 (07:39 -0500)]
options.c initializers got misaligned

Correct the initializers in options.c for the cond_ options.

5 years agoUnify breamm and breamu
Pasi Kallinen [Sat, 8 Feb 2020 12:19:13 +0000 (14:19 +0200)]
Unify breamm and breamu

Monster vs monster breath attacks were using nearly the same code
as monster vs hero - unify the code

5 years agoOS X warning
nhmall [Sat, 8 Feb 2020 06:44:56 +0000 (01:44 -0500)]
OS X warning

5 years agofixes37.0 update for unexplored changes and new status conditions
nhmall [Sat, 8 Feb 2020 06:30:14 +0000 (01:30 -0500)]
fixes37.0 update for unexplored changes and new status conditions

5 years agoMerge branch 'new-status-conditions' into NetHack-3.7
nhmall [Sat, 8 Feb 2020 06:24:51 +0000 (01:24 -0500)]
Merge branch 'new-status-conditions' into NetHack-3.7

5 years agoexpand the pool of status condition fields
nhmall [Sat, 8 Feb 2020 06:03:25 +0000 (01:03 -0500)]
expand the pool of status condition fields

Most of the additional ones are "opt-in" meaning that unless you add them
to your config file to enable them, they won't show up.

Two that aren't "opt-in", but can be "opted-out" (as can they all) are
cond_grab (for an eel grabbing you and drowing being imminent) and
cond_lava which leads to a fatality.

All the ones that already existed are "opt-out" options, meaning that
they will still show if you do nothing.

Here's the complete list of status conditions following this patch:
 config option     internal     default mask id            mask        text1    tex2   text3
"cond_barehanded"  bl_bareh     opt_in  BL_MASK_BAREH      0x00000001L Bare     Bar    Bh
"cond_blind"       bl_blind     opt_out BL_MASK_BLIND      0x00000002L Blind    Blnd   Bl
"cond_busy"        bl_busy      opt_in  BL_MASK_BUSY       0x00000004L Busy     Bsy    By
"cond_conf"        bl_conf      opt_out BL_MASK_CONF       0x00000008L Conf     Cnf    Cf
"cond_deaf"        bl_deaf      opt_out BL_MASK_DEAF       0x00000010L Deaf     Def    Df
"cond_iron"        bl_elf_iron  opt_out BL_MASK_ELF_IRON   0x00000020L Iron     Irn    Fe
"cond_fly"         bl_fly       opt_out BL_MASK_FLY        0x00000040L Fly      Fly    Fl
"cond_foodPois"    bl_foodpois  opt_out BL_MASK_FOODPOIS   0x00000080L FoodPois Fpois  Poi
"cond_glowhands"   bl_glowhands opt_in  BL_MASK_GLOWHANDS  0x00000100L Glow     Glo    Gl
"cond_grab"        bl_grab      opt_out BL_MASK_GRAB       0x00000200L Grab     Grb    Gr
"cond_hallu"       bl_hallu     opt_out BL_MASK_HALLU      0x00000400L Hallu    Hal    Hl
"cond_held"        bl_held      opt_in  BL_MASK_HELD       0x00000800L Held     Hld    Hd
"cond_ice"         bl_icy       opt_in  BL_MASK_ICY        0x00001000L Icy      Icy    Ic
"cond_lava"        bl_inlava    opt_out BL_MASK_INLAVA     0x00002000L Lava     Lav    La
"cond_lev"         bl_lev       opt_out BL_MASK_LEV        0x00004000L Lev      Lev    Lv
"cond_paralyze"    bl_parlyz    opt_in  BL_MASK_PARLYZ     0x00008000L Parlyz   Para   Par
"cond_ride"        bl_ride      opt_out BL_MASK_RIDE       0x00010000L Ride     Rid    Rd
"cond_sleep"       bl_sleeping  opt_in  BL_MASK_SLEEPING   0x00020000L Zzz      Zzz    Zz
"cond_slime"       bl_slime     opt_out BL_MASK_SLIME      0x00040000L Slime    Slim   Slm
"cond_slip"        bl_slippery  opt_in  BL_MASK_SLIPPERY   0x00080000L Slip     Sli    Sl
"cond_stone"       bl_stone     opt_out BL_MASK_STONE      0x00100000L Stone    Ston   Sto
"cond_strngl"      bl_strngl    opt_out BL_MASK_STRNGL     0x00200000L Strngl   Stngl  Str
"cond_stun"        bl_stun      opt_out BL_MASK_STUN       0x00400000L Stun     Stun   St
"cond_submerged"   bl_submerged opt_in  BL_MASK_SUBMERGED  0x00800000L Sub      Sub    Sw
"cond_termIll"     bl_termill   opt_out BL_MASK_TERMILL    0x01000000L TermIll  Ill    Ill
"cond_tethered"    bl_tethered  opt_in  BL_MASK_TETHERED   0x02000000L Teth     Tth    Te
"cond_trap"        bl_trapped   opt_in  BL_MASK_TRAPPED    0x04000000L Trap     Trp    Tr
"cond_unconscious" bl_unconsc   opt_in  BL_MASK_UNCONSC    0x08000000L Out      Out    KO
"cond_woundedl"    bl_woundedl  opt_in  BL_MASK_WOUNDEDL   0x10000000L Legs     Leg    Lg

5 years agomake a distinction between rock and unexplored area
nhmall [Sat, 8 Feb 2020 05:48:03 +0000 (00:48 -0500)]
make a distinction between rock and unexplored area

This adds a pair of new glyphs: GLYPH_UNEXPLORED and GLYPH_NOTHING

GLYPH_UNEXPLORED is meant to be the glyph for areas of the map that
haven't been explored yet.

GLYPH_NOTHING is a glyph that represents that which cannot be seen,
for instance the dark part of a room when the dark_room option is
not set.  Since the symbol for stone can now be overridden to
a players choice, it no longer made sense using S_stone for the
dark areas of the room with dark_room off. This allows the same
intended result even if S_stone symbol is mapped to something visible.

GLYPH_UNEXPLORED is what areas of the map get initialized to now
instead of STONE.

This adds a pair of new symbols: S_unexplored and S_nothing.

S_nothing is meant to be left as an unseen character (space) in
order to achieve the intended effect on the display.

S_unexplored is the symbol that is mapped to GLYPH_UNEXPLORED, and
is a distinct symbol from S_stone, even if they are set to the same
character. They don't have to be set to the same character.

Hopefully there are minimal bugs, but it is a deviation from a
fairly long-standing approach so there could be some unintended
glitches that will need repair.

5 years ago'travel' option
PatR [Fri, 7 Feb 2020 22:37:51 +0000 (14:37 -0800)]
'travel' option

Change '!travel' to only prevent travel-by-mouse and leave '_' alone.

5 years agoYAFM tweak
Pasi Kallinen [Fri, 7 Feb 2020 21:44:06 +0000 (23:44 +0200)]
YAFM tweak

5 years agoYAFM when sitting on a towel
Pasi Kallinen [Fri, 7 Feb 2020 21:15:43 +0000 (23:15 +0200)]
YAFM when sitting on a towel

(via xNetHack)

5 years agoYAFM when restoring a game while hallu
Pasi Kallinen [Fri, 7 Feb 2020 21:08:15 +0000 (23:08 +0200)]
YAFM when restoring a game while hallu

(via xNetHack)

5 years agoAllow #wizgenesis quantity in the prompt
Pasi Kallinen [Fri, 7 Feb 2020 17:11:13 +0000 (19:11 +0200)]
Allow #wizgenesis quantity in the prompt

The #wizgenesis command can also accept a quantity in the input prompt,
previously it only accepted a command repeat prefix.

(via UnNetHack, originally from NetHack4)

5 years agopopulate insight.c
PatR [Fri, 7 Feb 2020 01:42:15 +0000 (17:42 -0800)]
populate insight.c

Move enlightenment and conduct from cmd.c to insight.c.  Also move
vanquished monsters plus genocided and/or extinct monsters from end.c
to there.  And move the one-line stethoscope/probing feedback for
self and for monsters from priest.c to there.

Achievement feedback has been overhauled a bit.  When no achievements
have been recorded, the header for them (after conducts) won't be
shown, and when at least one has been recorded, make the prompt for
asking whether to disclose conduct be about disclosing conduct and
achievements.  Also, describe achievements in the Guidebook.

I ran out of gas before updating Guidebook.tex; it will catch up to
Guidebook.mn eventually.

Some of the MS-DOS Makefiles haven't been updated yet so linking
without insight.{o,obj} will break there.

5 years agois_elf(), is_dwarf(), is_gnome(), is_orc(), is_human()
nhmall [Thu, 6 Feb 2020 17:09:24 +0000 (12:09 -0500)]
is_elf(), is_dwarf(), is_gnome(), is_orc(), is_human()

Those tests were only checking the permonst mflags2 field
so anytime those tests were used in the code, they came
up false for things like an elven ranger. An elven ranger
should return true for an is_elf() test, as an example.

That happens because the profession monsters in monst.c
are defined with M2_HUMAN.

This augments those is_*() race tests to also check for a
matching player race as well.

5 years agoUpdate minotaur monster definition.
Connor Gregorich-Trevor [Thu, 6 Feb 2020 02:03:34 +0000 (20:03 -0600)]
Update minotaur monster definition.

5 years agoAdded sounds for minotaurs.
Connor Gregorich-Trevor [Thu, 6 Feb 2020 01:54:01 +0000 (19:54 -0600)]
Added sounds for minotaurs.

5 years agoresolve a couple of build failures when STATUS_HILITES is not defined
nhmall [Wed, 5 Feb 2020 17:24:15 +0000 (12:24 -0500)]
resolve a couple of build failures when STATUS_HILITES is not defined

This addresses the build failures but it is unknown
whether the logic remains sound.

5 years agoversion bit
nhmall [Tue, 4 Feb 2020 12:57:43 +0000 (07:57 -0500)]
version bit

5 years agofix copy-and-paste error
nhmall [Mon, 3 Feb 2020 08:54:14 +0000 (03:54 -0500)]
fix copy-and-paste error

5 years agoadd recent file addition to msdos Makefile2.cross
nhmall [Mon, 3 Feb 2020 08:51:30 +0000 (03:51 -0500)]
add recent file addition to msdos Makefile2.cross

5 years agoremove an argument that is no longer necessary from a few functions
nhmall [Mon, 3 Feb 2020 03:54:44 +0000 (22:54 -0500)]
remove an argument that is no longer necessary from a few functions

Passing a boolean 'ghostly' argument to some functions that are also passed
an NHFILE * is unnecessary now.

5 years agowindows vs Makefile follow-up bit
nhmall [Mon, 3 Feb 2020 02:04:45 +0000 (21:04 -0500)]
windows vs Makefile follow-up bit

5 years agoadd recent file addition to windows visual studio project and Makefile
nhmall [Mon, 3 Feb 2020 01:59:41 +0000 (20:59 -0500)]
add recent file addition to windows visual studio project and Makefile

5 years agoadd recent file addition to Xcode project
nhmall [Mon, 3 Feb 2020 01:43:00 +0000 (20:43 -0500)]
add recent file addition to Xcode project

5 years agomuse looting
PatR [Sun, 2 Feb 2020 23:22:42 +0000 (15:22 -0800)]
muse looting

Give better feedback than "<Monster> rummages through something"
when hero sees a monster looting a container.

Have monster take out up to 4 items at a time instead of always 1.
(Hero can take out an arbitrary number in one move.)

When deciding what to try to take out, 'count' (now 'nitems') was
initialized to 1 instead of 0, giving the monster a 1 out of N+1
chance of not trying to take anything out.  It wasn't clear whether
that was intentional (there's already a chance for not taking things
out when deciding whether to use the container).  I kept that result
in and made it more explicit now.

When deciding whether the chosen item could be moved from container
to monster's inventory, the can_carry(item) check was counting the
weight of the item twice, once explicitly when considering adding it
to minvent but also implicitly as part of the carried container's
weight already in minvent.

5 years agoAdding missing basic taste "umami" as hallucinatory color
Patric Mueller [Sun, 2 Feb 2020 19:15:45 +0000 (20:15 +0100)]
Adding missing basic taste "umami" as hallucinatory color

5 years agoMerge branch 'NetHack-3.7' into msdos-video-doc
chasonr [Sun, 2 Feb 2020 15:15:32 +0000 (10:15 -0500)]
Merge branch 'NetHack-3.7' into msdos-video-doc

5 years agoAllow monsters to rummage through containers
Pasi Kallinen [Sun, 2 Feb 2020 09:04:08 +0000 (11:04 +0200)]
Allow monsters to rummage through containers

5 years agofix github issue #285 - spellcasting monster
PatR [Sun, 2 Feb 2020 08:55:26 +0000 (00:55 -0800)]
fix github issue #285 - spellcasting monster

After casting a spell, a monster got a chance to make a regular attack
despite the apparent attempt to set up a return value indicating that
it wouldn't move.

When looking over the return value situation, I noticed 'wormhitu()'
for the first time.  It gives worms additional attacks when the hero
is adjacent to some of the tail, that only works if the head is within
reach of a melee attack.  The hidden tail segment at head's location
always met that criterium so gave an extra attack that didn't make
sense; change wormhitu() to skip that segment.

Do some formatting in mcastu.c; no change in actual code there.

Fixes #285

5 years agomention a pair of recent file additions in Cross-compiling
nhmall [Sun, 2 Feb 2020 03:49:21 +0000 (22:49 -0500)]
mention a pair of recent file additions in Cross-compiling

[skip travis]

5 years agomsdos fix from chasonr
nhmall [Sun, 2 Feb 2020 03:08:41 +0000 (22:08 -0500)]
msdos fix from chasonr

5 years agoMerge branch 'chasonr-statue-glyphs' into NetHack-3.7
nhmall [Sun, 2 Feb 2020 03:08:22 +0000 (22:08 -0500)]
Merge branch 'chasonr-statue-glyphs' into NetHack-3.7

5 years agoMerge branch 'statue-glyphs' of https://github.com/chasonr/NetHack into chasonr-statu...
nhmall [Sun, 2 Feb 2020 03:05:55 +0000 (22:05 -0500)]
Merge branch 'statue-glyphs' of https://github.com/chasonr/NetHack into chasonr-statue-glyphs

5 years agoinsert omitted 'static' for two sp_lev.c variables
PatR [Sun, 2 Feb 2020 02:27:36 +0000 (18:27 -0800)]
insert omitted 'static' for two sp_lev.c variables

5 years agoGuidebook.tex: fix formatting typos
keni [Sun, 2 Feb 2020 02:17:49 +0000 (21:17 -0500)]
Guidebook.tex: fix formatting typos

5 years agofailing level change messsage confusion
PatR [Sun, 2 Feb 2020 01:53:07 +0000 (17:53 -0800)]
failing level change messsage confusion

While testing the changes to dungeon and special level handling, I got
|A mysterious force prevents you from descending!
|You materialize on a different level!
The mystery force is handled by goto_level() so level_tele() doesn't
know that the failure is going to happen when it sets up the message
for deferred delivery.  Suppress the message if you don't change levels.

5 years agoget_table_str use
PatR [Sun, 2 Feb 2020 01:33:50 +0000 (17:33 -0800)]
get_table_str use

Some cleanup when chasing a memory leak.  get_table_str() and
get_table_str_opt() return a value from dupstr() and it wasn't always
being freed.  I'm not sure that I found the problem--maybe it involved
pointers turned over to Lua garbage collection--but did find a couple
of suspicious things in dungeon setup.

5 years agosp_lev.c private variables
PatR [Sat, 1 Feb 2020 23:44:42 +0000 (15:44 -0800)]
sp_lev.c private variables

Make a start at reducing the size of 'g' by removing some special
level stuff that doesn't need to be there.