Commit Graph

11589 Commits

Author SHA1 Message Date
nhmall
1d94e65e45 finish mapglyph() removal 2021-01-02 09:22:53 -05:00
nhmall
18116d4a7b update for 2021 2021-01-01 22:07:54 -05:00
nhmall
44b4b1f3d1 Merge branch 'actual-nh-patch-1' into NetHack-3.7 2020-12-31 22:57:52 -05:00
nhmall
985cffbfed Merge branch 'patch-1' of https://github.com/actual-nh/NetHack into actual-nh-patch-1 2020-12-31 22:57:33 -05:00
nhmall
eb14a7ddf2 Check bones data directly for deja vu messages PR #374
Closes #374
Closes #322
2020-12-31 21:31:13 -05:00
nhmall
cdfbae5529 Merge branch 'entrez-fix322' into NetHack-3.7 2020-12-31 21:25:16 -05:00
nhmall
02e465e643 Merge branch 'fix322' of https://github.com/entrez/NetHack into entrez-fix322 2020-12-31 21:18:51 -05:00
actual-nh
c3e94596f8 Missing quote mark
Again, checked vs my copy.
2020-12-31 19:54:39 -05:00
actual-nh
0a5852291e Typo (Hogfather)
One typo in a quotation from Hogfather; I have checked (Corgi edition (13th printing?), 1997, page 310) and corrected it to match the original.
2020-12-31 19:51:04 -05:00
PatR
db673ab791 termcap followup
A little more testing for ANSI_DEFAULT forced on has revealed
that hilites[Black] has also been left Null, a problem that
MS-DOS hid.
2020-12-31 16:09:46 -08:00
nhmall
862c4064ab gender-specific names can be used in .lua files with the gender upheld
Revert "monster name references in .lua files"
This reverts commit 0e0aa7bdf6.
2020-12-31 18:51:00 -05:00
PatR
e7e07cb067 pull request #411 - freeing termcap hilite entries
(strings to switch color) for ANSI_DEFAULT.  Instead of lumping
more conditional code into tty_shutdown() I put the new code
into a separate routine and also pulled the existing setup code
out of tty_startup() into a separate routine too.

It will be a miracle if this doesn't break anything due to the
crazy amount of convoluted conditionals present in termcap.c.

On the other hand, I found and fixed a bug while trying to test.
The ANSI_DEFAULT hilites for Gray and No_Color were null instead
of an empty string.  MS-DOS stdio apparently fixes that up, but
on OSX (after #undef UNIX and TERMLIB and TERMINFO and #define
ANSI_DEFAULT in termcap.c) I started seeing instances of "(null)"
on the map (OSX stdio does a different fix up for Null pointers)
as soon as I enabled 'color'.  It was an attempt to set No_Color.

Closes #411
2020-12-31 14:49:21 -08:00
PatR
4c8a8bcfee fix github issue #431 - failed displacing
Being able to swap places with peaceful monsters instead of just
with pets made it possible to cause them to flee. Shopkeepers
wouldn't abandon the shop door but temple priests would attack
if hero tried to chat while they were fleeing.
2020-12-31 11:23:29 -08:00
Michael Meyer
6ae7818346 Refactor bones search loop
Using a for loop instead of an if and a do/while makes the code much
more clear and concise, so that it's easier to understand what the
function does at a glance.  The actual approach to iterating through the
current level's bones files and searching for a match is more or less
unchanged.
2020-12-30 22:42:48 -05:00
PatR
565cdf3cba tribute typo: Lords and Ladies #5
Add a missing opening quote mark near the end of passage 5 of
Lords and Ladies.
2020-12-30 17:55:30 -08:00
nhmall
0e0aa7bdf6 monster name references in .lua files
Closes #434
2020-12-30 19:18:25 -05:00
nhmall
1cf9d0323a pmnames follow-up
replace references to "aligned priest" in several lua files with "aligned cleric"

also accept "aligned priest" during ^G parsing
2020-12-30 18:57:24 -05:00
Michael Meyer
47884d63ac Merge branch 'NetHack-3.7' into fix322 2020-12-30 14:05:16 -05:00
nhmall
d38a5fedd0 another vision table bit for gcc Makefile for Windows 2020-12-30 12:31:01 -05:00
nhmall
a7c804a965 Xcode updates for vision table removal part 3 2020-12-30 12:17:39 -05:00
PatR
99cc236d4a vis_tab removal for VMS
Get rid of vis_tab.{c,h}, also the commented out remnants of
{dgn_comp,lev_comp}.*, and put back sfstruct.* that erroneously
got removed along with some other stuff way back when.

Untested, and the lua stuff needs to be modularized.
2020-12-30 08:58:15 -08:00
nhmall
a7b662e3db remove some obsolete references from the outdated tree
untested, of course
2020-12-30 10:45:27 -05:00
nhmall
b8cb4ec81d Xcode updates for vision table removal part 2 2020-12-30 10:01:08 -05:00
nhmall
4d31563ca1 Xcode updates for vision table removal 2020-12-30 09:56:32 -05:00
PatR
ef4efdb125 ^G prompting revisited
CP_TRYLIM-1 was the right value when the prompt augmentation
was at the top of the loop before the first prompt, but should
been changed to CP_TRYLIM when that got moved to the bottom of
the loop.

First prompt:
|Create what kind of monster?
Second and subsequent prompts if first attempt is unsuccessful:
|Create what kind of monster? [type name or symbol]

Prior to this fix, the shorter prompt was being used on the
first and second tries and not switching to the longer one until
the third.
2020-12-30 02:24:59 -08:00
nhmall
5f486677d0 Merge branch 'win-novisiontables' into NetHack-3.7 2020-12-29 22:12:59 -05:00
Dean Luick
a4e7646f4c Remove src and unix VISION_TABLES
Remove all references to the unused vision tables in the main source
and unix build.  Leave makedefs able to generate the vision tables.
makdefs will be cleaned up in a different commit, once all ports
are clear of dependencies.
2020-12-29 20:38:37 -06:00
PatR
b735122c2c ^G prompting
Make the initial prompt for ^G be less verbose.  Only expand to
the verbose form if a second or further try is needed.

Also, remove an orphan comment about is_male() and is_female().
2020-12-29 15:44:06 -08:00
nhmall
a1678d62f3 fixes entry for PR #433
Closes #433
2020-12-29 18:02:01 -05:00
nhmall
00c9277cfe usage of whichpm in new gender code required a null ptr guard 2020-12-29 17:49:30 -05:00
PatR
9c6a65f49b fix github issue #432 - bad sanity check
The block of sanity check code that is causing impossible warnings
about the Wizard mimicking a monster was initially only used for
furniture and objects specifically because of the Wizard.  When it
got extended to check for mimicking monsters, an exception for the
Wizard was needed but not added.

Fixes #432
2020-12-29 14:34:37 -08:00
nhmall
1c2c5dae1b remove vision tables from Windows and msdos builds 2020-12-28 22:07:00 -05:00
nhmall
f30bb8aaa4 another monster gender name handling tweak
ensure that monster female name variation ends up as a female during ^G

arbitrate when there is a conflict between gender term (male or female) and
a gender-tied monster name (cavewoman) during ^G; gender term wins
2020-12-28 14:02:22 -05:00
PatR
524f9dd82b Qt map's "ttychar"
Change the glyphttychar[ROWNO][COLNO] array from uchar to
unsighed short.  DrawWalls() has handling for values in over 2000.

This also reformats pretty much all of the NetHackQtMapViewport
portion of qt_map.cpp.
2020-12-28 10:01:43 -08:00
nhmall
c31047984b typo in tilemap.c update 2020-12-28 09:19:07 -05:00
nhmall
30fe65b5e0 fix tilemap.c compile when STATUES_LOOK_LIKE_MONSTERS wasn't defined 2020-12-28 09:14:39 -05:00
nhmall
1d063218d3 another wishing gender processing tweak 2020-12-27 22:38:41 -05:00
nhmall
242a59ac19 have a ^G-created monster's gender done in makemon instead of after 2020-12-27 21:44:51 -05:00
nhmall
19583adca9 another extraneous file 2020-12-27 21:31:31 -05:00
nhmall
51e5e9c998 extraneous file 2020-12-27 21:28:50 -05:00
nhmall
aad56ab5d8 Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7 2020-12-27 21:22:48 -05:00
nhmall
881eccca9e some tile processing fix-ups.
Some of the new colors added to some monster tiles did not
have gray scale mappings. This fixes the processing by
mapping them to *something*, but optimal gray scale mappings
for the new colors will require follow-up evaluation at some
point.
2020-12-27 21:20:44 -05:00
PatR
953f0652c4 reformat Qt/qt_clust.cpp 2020-12-27 17:01:33 -08:00
nhmall
7e20be61df Art Contribution: Differentiating gendered monster tiles PR #430
From the pull request author NullCGT:

This pull request is a response to 0c3b964, in which nhmall expressed interest in contributions that would make gendered tiles visually distinguishable from one another. Since I've spent way too many hours editing NetHack's default tileset and the thought of trying to merge this commit into my variant gives me an absurdly massive headache, I thought I would have a go at it!

Making tiles of different genders distinct in NetHack presents an interesting problem. While it would be fun to create highly distinct tiles for every gender, doing so would reduce the accessibility of the game, since players would have to remember many more tiles, and might end up confusing one monster for another. Visual clarity is key.

Therefore, I had the following goals when creating this pull request:

1. If there is an interesting way to differentiate tiles by gender, do so.
2. Any sort of differentiation should be minor enough that a user can still tell what a monster is at a glance. Essentially, visual clarity comes before differentiation by gender.
3. Try to use a "TDTTOE method" of differentiating tiles. For example, female cats are more colorful than males, because generally male cats have only two colors of fur. Basically, I spent a lot of time on wikipedia researching sex characteristics of different species.
4. Try not to fall into "female = longer hair / eyelashes." While this feature will unfortunately require some gender-essentialist visual shorthand, this tropes is overdone and exhausting.

Please let me know what you think; I'm totally open to feedback on all of this and happy to make modifications. I've attached the resulting tiles file to this post in png form.

The alterations made in this pull request are as follows:

- Female ants are slightly larger than male ants, just like in real life. I could have added wings to the male ants, but I felt that doing so would lead to some confusion.
- Female wolves are slightly smaller than male wolves. There wasn't a great way to show this without making winter wolves look very similar to winter wolf cubs, so I just made the female wolves tails slightly shorter.
- Calico cats are almost exclusively female, so I turned the female cats into calico cats. The other piece of logic behind this choice was that players will probably really enjoy seeing different variants of their pets.
- Female hobbits, minotaurs, humans, werecreatures, and aleaxes wear slightly different clothing.
- Dwarfs are not differentiated in any way whatsoever. According to Terry Pratchett (in Unseen Academicals, if I remember correctly) it is almost impossible to tell what gender a dwarf is, even for fellow dwarfs. I strongly believe that NetHack should follow this tradition.
- Female leprechauns, archons, frost giants, guards, and all types of gnomes are clean-shaven. Although of course not one hundred percent accurate, it's convenient visual shorthand.
- Centaur tiles have no differentiation because the different types of centaurs are already extremely difficult to tell apart from one another.
- Female ogre tyrants and elven monarchs have slightly different crowns.
- Female quantum mechanics have a different hairstyle and no beard. Genetic engineers look the same, because the genetic engineer tile is perfect.
- Female barrow wights look like old grandmothers with flyaway hair. I kept the hair color the same and used a similar quantity of pixels so that they look similar enough to the males that you can tell they are barrow wights.
- Female archeologist tile is a reference to a certain archeologist known for raiding tombs.
2020-12-27 18:00:48 -05:00
nhmall
4b17aeae85 Merge branch 'NullCGT-feature/gendered-tiles' into NetHack-3.7 2020-12-27 17:59:30 -05:00
nhmall
86141b3196 Merge branch 'feature/gendered-tiles' of https://github.com/NullCGT/NetHack into NullCGT-feature/gendered-tiles 2020-12-27 17:50:29 -05:00
PatR
6499fc4dd9 some code cleanup, mostly Qt map
The Qt routine NetHackQtMapViewport::Clear() was broken, but
fixing it hasn't changed the glyph display issue.  None of the
other changes here would be expected to affect that but they
are in/among the sections of code under investigation.
2020-12-27 12:33:03 -08:00
Kestrel
5d0c1a94f4 More monster gender tiles additions. 2020-12-27 13:01:27 -06:00
nhmall
ea1ffe5112 tty unused parameter under some configs 2020-12-27 12:51:40 -05:00
Kestrel
f83b3e038a Differentiate male and female ant tiles.
Female ants are larger than male ants. I could have added wings to the male ants, but I felt that doing so would lead to a loss in visual clarity.
2020-12-27 10:56:30 -06:00