Pasi Kallinen [Tue, 21 Apr 2015 08:22:30 +0000 (11:22 +0300)]
Solidify the astral plane
...to prevent xorns appearing in the inaccessible map fringes
PatR [Tue, 21 Apr 2015 02:45:13 +0000 (19:45 -0700)]
mongone vs vault guard
mongone() would send away a vault guard, whether alive or already
dead and parked at <0,0>, losing the information needed to remove
the temporary vault corridor once whatever obstacle (ie, the hero)
that's keeping it in place has been cleared. Have mongone() call
grddead() like mondead() does, so that a guard will just be moved
to <0,0> with 0 HP and kept there rather than being purged during
the next dead monster removal.
Move polearm context reset to m_detach() [and, unfortunately,
duplicated in grddead()] rather than in having it in dmonsfree()
since execution of the latter is deferred. I'm not sure offhand
whether a fast hero could get a second move before end-of-turn
purging of dead monsters.
keni [Tue, 21 Apr 2015 00:49:51 +0000 (20:49 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Tue, 21 Apr 2015 00:49:18 +0000 (20:49 -0400)]
Developer.txt: add notes about branches
Pasi Kallinen [Mon, 20 Apr 2015 15:09:59 +0000 (18:09 +0300)]
Make sure can't chat out of the map
PatR [Mon, 20 Apr 2015 07:05:00 +0000 (00:05 -0700)]
tribute in-game bonus
Give 20 experience points the first time the hero reads a passage
from a tribute novel. It's enough to go from level 1 to 2 or from
2 to 3. By the time a book store is found, that's too trivial for
most to care about, but it's potentially useful to a pacifist.
nhmall [Sun, 19 Apr 2015 22:56:49 +0000 (18:56 -0400)]
invalid escape
Changes to be committed:
modified: win/share/tiletext.c
nhmall [Sun, 19 Apr 2015 21:17:03 +0000 (17:17 -0400)]
Update the tile RGB values and mappings
Changes to be committed:
modified: win/share/monsters.txt
modified: win/share/objects.txt
modified: win/share/other.txt
modified: win/share/tile2bmp.c
modified: win/share/tiletext.c
nhmall [Sun, 19 Apr 2015 17:31:59 +0000 (13:31 -0400)]
extend the tty statue patch to tiles
Changes to be committed:
modified: doc/fixes35.0
modified: win/share/gifread.c
modified: win/share/monsters.txt
modified: win/share/objects.txt
modified: win/share/other.txt
modified: win/share/tile2bmp.c
modified: win/share/tilemap.c
The tty code already had the statue patch included, where
statues are represented by stone versions similar in
appearance to their monster likeness.
This extends it to tiles.
A new pass through the monsters.txt file is done
in tile2bmp to include new modified tiles to the output
file that are gray-scaled versions for mapping to the
NetHack statue glyphs.
Pasi Kallinen [Sun, 19 Apr 2015 07:46:21 +0000 (10:46 +0300)]
Fix dark room glyphs when searching
Searching while blind showed room glyphs as lit even when
dark_room option was on.
PatR [Sun, 19 Apr 2015 03:18:43 +0000 (20:18 -0700)]
fix "bad fruit #0"
When minimal_xname() set up a dummy object containing as few details
as possible, it wasn't setting up the fruit id field, so xname()
couldn't figure out what type of fruit it had and issued a warning.
I haven't managed a test case that uses minimal_xname so testing of
the fix is less than comprehensive. [Pasi got it through dopay, but
that only resorts to minimal_xname if the formatted name is really
long and would otherwise cause the shopkeeper's prompt to overflow.
Long fruit name combined with long individual object name wasn't
long enough to trigger that. Maybe uncursed, greased, rustproof
the like, or possibly just a longer shopkeeper name than I had?]
PatR [Sun, 19 Apr 2015 03:02:40 +0000 (20:02 -0700)]
revisit the forcefight crash fix
The previous fix prevents the crash from 'the()' when NO_GLYPH was
used as an index into the defsyms array, but it resulted in giving
feedback of "you attack thin air" regardless of what was at the
target location, reverting to the situation that the buggy code was
attempting to address in the first place. Handle that differently
by removing the unseen monster glyph sooner. Also, the underwater
handling wasn't working as intended.
I blamed Derek's pudding farming patch for introducing the problem,
but all that did was replace the offending line(s) with different
indentation. The older post-3.4.3 patch which produced the problem
was mine. Sorry, Derek.
PatR [Sun, 19 Apr 2015 01:50:38 +0000 (18:50 -0700)]
revert unneeded lookat() change
The enclosing switch statement is only reached when `glyph_is_cmap' is
known to be true, so remove the redundant extra test.
nhmall [Sat, 18 Apr 2015 21:45:27 +0000 (17:45 -0400)]
suggested booktribute mods
Changes to be committed:
modified: include/extern.h
modified: src/files.c
modified: src/objects.c
modified: src/spell.c
- charge a little more.
- no free read in the bookstore.
nhmall [Sat, 18 Apr 2015 19:29:37 +0000 (15:29 -0400)]
prevent a couple of reported array index segfaults
Changes to be committed:
modified: src/hack.c
modified: src/pager.c
Don't use glyph_to_cmap as an array index into
the defsyms[] array unless it really is a cmap.
Recent situation: glyph_to_cmap will return
NO_GLYPH for the unknown monster glyph 'I', which
is not a valid index for the defsyms[] array.
Pasi Kallinen [Sat, 18 Apr 2015 14:25:52 +0000 (17:25 +0300)]
Allow wishing for polearm or hammer
which gives a random weapon with the matching skill,
so a random polearm, or a war hammer, respectively.
Pasi Kallinen [Fri, 17 Apr 2015 07:35:05 +0000 (10:35 +0300)]
Fix saving xlogfile realtime
nhmall [Fri, 17 Apr 2015 04:46:54 +0000 (00:46 -0400)]
add an initializer
nhmall [Fri, 17 Apr 2015 04:31:22 +0000 (00:31 -0400)]
protect against bad dates
A recent fault on mingw32 revealed that faulty
code which passes a bad or out-of-range date
value could have game-fatal consequences.
Add some protection.
nhmall [Fri, 17 Apr 2015 04:12:53 +0000 (00:12 -0400)]
date verification
Pasi Kallinen [Wed, 15 Apr 2015 18:05:42 +0000 (21:05 +0300)]
Prevent divide by zero in newman
...which happened when your max power was 0
Pasi Kallinen [Wed, 15 Apr 2015 17:35:48 +0000 (20:35 +0300)]
Prevent illegal positions for tmp_at
It seems like m_throw() can call tmp_at() with !isok coordinates,
so prevent those in both functions
Pasi Kallinen [Wed, 15 Apr 2015 17:06:38 +0000 (20:06 +0300)]
Prevent infinite loop
...if the map is filled with monsters, and for some reason
the drowning just won't kill you.
Infinite looping cannot currently happen, because no-one who
can drown can keep surviving the drowning once their amulet
of life saving is used up.
Pasi Kallinen [Wed, 15 Apr 2015 16:43:32 +0000 (19:43 +0300)]
Prevent out-of-bounds coords when closing a door
Pasi Kallinen [Wed, 15 Apr 2015 14:06:39 +0000 (17:06 +0300)]
Prevent segfault when looking around inside monster
A recent change by me introduced a segfault when
counting swallowed hero as a monster inventory item.
Pasi Kallinen [Tue, 14 Apr 2015 17:33:30 +0000 (20:33 +0300)]
Move triplicate defines into single place
Pasi Kallinen [Tue, 14 Apr 2015 17:04:46 +0000 (20:04 +0300)]
YAFM for magic flute
Pasi Kallinen [Tue, 14 Apr 2015 16:41:44 +0000 (19:41 +0300)]
Unify description of hero's visage into single function
Pasi Kallinen [Tue, 14 Apr 2015 16:21:32 +0000 (19:21 +0300)]
Sinks may be teleported or polymorphed by rings
Original patches by Leon Arnott and me.
Pasi Kallinen [Tue, 14 Apr 2015 05:55:43 +0000 (08:55 +0300)]
Guard against merge segfaults
Trying to throw a quivered object resulted in a segfault, when
the code tried to merge the quivered object into itself.
Pasi Kallinen [Tue, 14 Apr 2015 05:45:29 +0000 (08:45 +0300)]
YAFM for dragon sitting on gold
PatR [Tue, 14 Apr 2015 00:50:17 +0000 (17:50 -0700)]
lint bits
PatR [Tue, 14 Apr 2015 00:21:59 +0000 (17:21 -0700)]
regex lint
For the POSIX regexp interface, move local declaration to beginning
of block to avoid requiring C99. Also switch to alloc() from bare
malloc() so that MONITOR_HEAP won't log a free which doesn't match
up to any allocation. This results in a change in behavior: if
the allocation fails, nethack will panic rather than report an
option parsing error. In practice there will be no difference
because nethack is not going to run out of dynamic memory during
initial options processing.
keni [Mon, 13 Apr 2015 23:33:26 +0000 (19:33 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Mon, 13 Apr 2015 23:32:51 +0000 (19:32 -0400)]
nhsub: handle git add/commit options that take an argument
Pasi Kallinen [Mon, 13 Apr 2015 17:49:38 +0000 (20:49 +0300)]
Add Auto open doors -patch
Pasi Kallinen [Mon, 13 Apr 2015 16:50:54 +0000 (19:50 +0300)]
Inaccessible niches occasionally have iron bars
Pasi Kallinen [Mon, 13 Apr 2015 16:36:49 +0000 (19:36 +0300)]
Some monsters can eat through iron bars
Any monster with rusting or corrosion attack can eat through
the bars. This includes rust monsters, grey oozes, and black puddings.
Original patch by Malcolm Ryan
Pasi Kallinen [Mon, 13 Apr 2015 15:54:20 +0000 (18:54 +0300)]
A camera may contain a picture-painting demon
Original patch by Leon Arnott
Pasi Kallinen [Mon, 13 Apr 2015 15:30:49 +0000 (18:30 +0300)]
Add litmus test
Original patch by Dylan O'Donnell
Pasi Kallinen [Mon, 13 Apr 2015 07:07:12 +0000 (10:07 +0300)]
Use our dupstr instead of strdup
Pasi Kallinen [Mon, 13 Apr 2015 05:30:47 +0000 (08:30 +0300)]
Fix gitignored
nhmall [Sun, 12 Apr 2015 17:27:36 +0000 (13:27 -0400)]
more regex integration bits
nhmall [Sun, 12 Apr 2015 16:16:59 +0000 (12:16 -0400)]
Makefile bit following merge
nhmall [Fri, 10 Apr 2015 23:24:06 +0000 (19:24 -0400)]
Add some new files to top level Files
Derek S. Ray [Fri, 10 Apr 2015 22:33:12 +0000 (18:33 -0400)]
add cppregex.cpp to NetHackW so it'll link properly
Sean Hunt [Thu, 9 Apr 2015 14:38:15 +0000 (10:38 -0400)]
Add POSIX implementation of regex.
This also includes documentation of the regex engine in posixregex.c,
because I couldn't think of anywhere better to put it.
Sean Hunt [Fri, 3 Apr 2015 20:25:17 +0000 (16:25 -0400)]
Catch regex matching errors to avoid crashing.
Sean Hunt [Fri, 3 Apr 2015 19:08:29 +0000 (15:08 -0400)]
Use extern.h for regexes.
I was planning to do this anyway, but it created an include loop that
was breaking it on Windows.
Sean Hunt [Fri, 3 Apr 2015 18:07:53 +0000 (14:07 -0400)]
Implement a new system-based matching harness.
The intent is to look for platform-specific facilities for regex
matching, to provide portable MENUCOLORS configuration files.
This is a prototype implementation being committed to see if Windows can
use the POSIX regex implementation provided with the C++11 standard
library. If this works, I will write a harness for POSIX regexes and for
pmatch(), and those can be linked in by platforms as appropriate.
pmatch() should be used only as a very last resort, because it breaks
compatibility between platforms.
Sean Hunt [Fri, 10 Apr 2015 23:11:47 +0000 (19:11 -0400)]
Document wallification changes.
nhmall [Sun, 12 Apr 2015 14:31:26 +0000 (10:31 -0400)]
tribute post-merge smoothing
Changes to be committed:
modified: src/mon.c
modified: win/share/objects.txt
nhmall [Sun, 12 Apr 2015 14:02:17 +0000 (10:02 -0400)]
Merge branch 'master' into nhmall-booktribute
Conflicts:
doc/fixes35.0
include/extern.h
src/mkobj.c
src/mon.c
src/objnam.c
win/share/objects.txt
nhmall [Sun, 12 Apr 2015 12:58:16 +0000 (08:58 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 12:57:41 +0000 (08:57 -0400)]
More Guidebook
Changes to be committed:
modified: doc/Guidebook.mn
modified: doc/Guidebook.tex
PatR [Sun, 12 Apr 2015 08:48:01 +0000 (01:48 -0700)]
revised menu searching
Convert search in tty menus from pmatch to case-insensitive pmatchi;
convert search in X11 menus from substring strstri to wildcard pmatchi.
tty bug: if the menu is full screen, the search prompt and subsequent
user input clobbers the menu header.
nhmall [Sun, 12 Apr 2015 04:34:06 +0000 (00:34 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 04:33:30 +0000 (00:33 -0400)]
windows team update
PatR [Sun, 12 Apr 2015 02:39:59 +0000 (19:39 -0700)]
new pmatch variations
Add pmatchi() to perform case-insensitive wildcard matching, and
pmatchz() which is also case-insensitive and ignores spaces, dashes,
and underscores like the type of matching done during wish parsing.
At the moment, neither is being used, although DEBUGFILES handling
uses pmatch and needs to be taught to distinguish between case-
sensitive and case-insensitive filenames so will eventually use
pmatchi when appropriate.
PatR [Sun, 12 Apr 2015 01:51:03 +0000 (18:51 -0700)]
color of mithril armor
From a bug report two years ago, mithril armor should have color
HI_SILVER rather than HI_METAL. Tolkien describes mithril as "like
silver which never tarnishes". (The bug report had a more precise
quote, and a github URL for a patch which I've ignored.) The Amulet
of Yendor has material set to MITHRIL but I haven't changed its color.
All amulets are HI_METAL, so if any modification is needed for it,
change the material rather than the color.
Mithril-coats are displayed as cyan both before and after this patch,
so it's hard to tell whether any change actually happened.
nhmall [Sun, 12 Apr 2015 01:07:02 +0000 (21:07 -0400)]
Files correction
nhmall [Sun, 12 Apr 2015 01:02:11 +0000 (21:02 -0400)]
text file error corrections
Changes to be committed:
modified: DEVEL/code_features.txt
modified: Files
modified: dat/history
On 4/11/2015 6:45 PM, Dion Nicolaas wrote:
> Errors in text files:
> - DEVEL/code_features.txt, line 10: 'alterting' should be 'alerting'
fixed
> - dat/history: Is it intentional that I'm no longer mentioned as
> maintaining the Windows port? I am for 3.4, but not for 3.6.
fixed
> - Files: The Files file is incomplete. Notably, the new files in dat/
> are missing (bogusmon.txt, engrave.txt, epitaph.txt),
fixed
> the DEVEL directory, doc/Guidebook.*
> - Some files in Files have the wrong case: NetHack.sln,
> NetHackW.vcxproj. I know it doesn't matter on windows but it looks wrong.
fixed
Pasi Kallinen [Sat, 11 Apr 2015 18:07:57 +0000 (21:07 +0300)]
Allow disabling savefile UID checking in sysconf
Pasi Kallinen [Sat, 11 Apr 2015 17:45:37 +0000 (20:45 +0300)]
Fix comment typo
PatR [Sat, 11 Apr 2015 01:31:11 +0000 (18:31 -0700)]
obj_nexto_xy lint
Derek S. Ray [Fri, 10 Apr 2015 22:18:05 +0000 (18:18 -0400)]
restore accidentally consumed tmp_config
Derek S. Ray [Fri, 10 Apr 2015 21:14:41 +0000 (17:14 -0400)]
turn off annoying warnings in Visual Studio
Derek S. Ray [Fri, 10 Apr 2015 21:08:31 +0000 (17:08 -0400)]
lock MENU_COLOR_REGEX away since it isn't Win32 yet
Derek S. Ray [Fri, 10 Apr 2015 20:56:30 +0000 (16:56 -0400)]
Merge branch 'master' into derek-farming
Reverse merge before final reintegration.
* master: (40 commits)
Fix magic mapped dark room symbols
Disclose extinct species alongside genocided ones
...
Conflicts:
doc/fixes35.0
src/do.c
src/files.c
src/invent.c
src/objnam.c
sys/share/pcmain.c
Pasi Kallinen [Fri, 10 Apr 2015 19:43:13 +0000 (22:43 +0300)]
Fix magic mapped dark room symbols
Pasi Kallinen [Fri, 10 Apr 2015 18:59:45 +0000 (21:59 +0300)]
Disclose extinct species alongside genocided ones
Pasi Kallinen [Fri, 10 Apr 2015 17:55:24 +0000 (20:55 +0300)]
Fix warnings, unused and shadowed variables
Pasi Kallinen [Fri, 10 Apr 2015 16:47:17 +0000 (19:47 +0300)]
Cast time_t into unsigned long
Pasi Kallinen [Fri, 10 Apr 2015 16:45:04 +0000 (19:45 +0300)]
Update precompiled lex and yacc files
Pasi Kallinen [Fri, 10 Apr 2015 16:20:31 +0000 (19:20 +0300)]
Fix attribution of sortloot patch
nhmall [Fri, 10 Apr 2015 16:15:14 +0000 (12:15 -0400)]
Merge branch 'master' into nhmall-booktribute
Pasi Kallinen [Fri, 10 Apr 2015 13:47:29 +0000 (16:47 +0300)]
Minor special level and compiler tweakage
Fix allowed map characters.
Make some predefined MAPs blend in better with randomly
generated parts.
Sean Hunt [Fri, 10 Apr 2015 13:09:02 +0000 (09:09 -0400)]
Fix Sanctum phasing bug.
Sean Hunt [Thu, 9 Apr 2015 17:50:11 +0000 (13:50 -0400)]
Restore the insect legs on Baalzebub's level.
PatR [Fri, 10 Apr 2015 08:39:55 +0000 (01:39 -0700)]
revisit variable arguments in new lev_comp
The previous USE_OLDARGS worked with gcc on Intel, but was inherently
unsafe. This method is completely safe, just obnoxiously intrusive.
It you disliked debugpline*(), you're bound to hate this....
Sean Hunt [Thu, 9 Apr 2015 17:26:43 +0000 (13:26 -0400)]
Make WALLIFIED_MAZE into a level flag.
It should now be randomly disabled for a 3rd of Gehennom, to make things
a tad more interesting there. It's also disabled in Baalzebub's lair,
to make things a little more interesting.
Still don't know why the beetle is disappearing.
Pasi Kallinen [Thu, 9 Apr 2015 14:53:40 +0000 (17:53 +0300)]
Add sortloot -patch
Adds the "sortloot" compound option, with possible values
of "none", "loot", or "full". It controls the sorting of
item pickup lists for inventory and looting.
PatR [Thu, 9 Apr 2015 10:09:00 +0000 (03:09 -0700)]
support pre-ansi varargs in new lev_comp
Remove the requirement for <stdarg.h> that was introduced to lev_comp.
USE_STDARG still works. USE_OLDARGS required hackery but has been
tested and actually works, although I wouldn't trust it on platforms
where 'long' and 'char *' aren't the same size. USE_VARARGS didn't
require any hackery--aside from the conversion to core's pline code--
but has not been tested: <varargs.h> supplied with OSX won't compile,
with an #error directive that basically says "switch to <stdarg.h>".
I changed several printf formats of %i and %li to %d and %ld because
I'm not sure how widespread the 'i' variant was back in days of yore.
[TODO: avoid use of snprintf since pre-ANSI systems won't have it.]
Pasi Kallinen [Wed, 8 Apr 2015 17:38:32 +0000 (20:38 +0300)]
Add 2 new Medusa variants
Pasi Kallinen [Wed, 8 Apr 2015 15:31:32 +0000 (18:31 +0300)]
Add 10 new bigroom variants
keni [Wed, 8 Apr 2015 14:32:11 +0000 (10:32 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Wed, 8 Apr 2015 14:31:49 +0000 (10:31 -0400)]
nhsub docs and fixes
Sean Hunt [Wed, 8 Apr 2015 00:44:54 +0000 (20:44 -0400)]
Do not clean tribute file on Unix.
Pasi Kallinen [Tue, 7 Apr 2015 18:34:57 +0000 (21:34 +0300)]
Renumber other.txt tiles
Pasi Kallinen [Tue, 7 Apr 2015 17:12:53 +0000 (20:12 +0300)]
Clive Crous' Dark Room patch
This patch adds a new glyph that represents dark parts of room,
splitting the dual functionality of the "unexplored/dark area" glyph.
Sean Hunt [Tue, 7 Apr 2015 16:47:43 +0000 (12:47 -0400)]
Add quotes for Eric and Moving Pictures.
Pasi Kallinen [Tue, 7 Apr 2015 15:18:49 +0000 (18:18 +0300)]
Indicator glyph for good target positions
Add a new glyph, S_goodpos, to indicate valid locations
instead of reusing the camera flash beam glyph.
PatR [Tue, 7 Apr 2015 08:23:16 +0000 (01:23 -0700)]
tty fix for bad curs positioning (-1,n)
DEBUGFILES set to "wintty.c" reported a bad cursor positioning attempt
at the end of the RIP tombstone, and when set to "questpgr.c wintty.c"
reported a whole bunch right at the start of the game when enumerating
all the quest messages for the chosen role. Both were triggered by
this x==0 call to tty_curs() near the end of process_text_window().
if (i == cw->maxrow) {
if(cw->type == NHW_TEXT){
tty_curs(BASE_WINDOW, 0, (int)ttyDisplay->cury+1);
cl_eos();
}
...
The x value is always decremented in tty_curs, so passing in 0 yields
a bad value of -1. The bad call returns without doing anything, and
when DEBUG is disabled, it does so silently.
No fixes entry; it was caused by a post-3.4.3 fix for something else.
nhmall [Tue, 7 Apr 2015 03:16:14 +0000 (23:16 -0400)]
attempt to fix Makefile issue with tribute
nhmall [Tue, 7 Apr 2015 02:41:00 +0000 (22:41 -0400)]
Merge branch 'nhmall-booktribute' of https://rodney.nethack.org:20040/git/NHsource into nhmall-booktribute
nhmall [Tue, 7 Apr 2015 02:38:01 +0000 (22:38 -0400)]
function definitition to match prototype const
karnov [Tue, 7 Apr 2015 01:46:51 +0000 (21:46 -0400)]
Adding quotes for The Light fantastic
karnov [Mon, 6 Apr 2015 23:03:02 +0000 (19:03 -0400)]
Reformat and passage for The Truth
keni [Mon, 6 Apr 2015 21:48:48 +0000 (17:48 -0400)]
nhsub: handle some more cases
nhmall [Mon, 6 Apr 2015 21:47:11 +0000 (17:47 -0400)]
Merge branch 'master' into nhmall-booktribute