Commit Graph
35 Commits
Author SHA1 Message Date
Patric Mueller 16d32b3002 Remove left over NH_DEVEL_STATUS bits from makedefs.c
Left bits from previous version info code caused compilation errors
if NH_DEVEL_STATUS was not set to NH_STATUS_WIP.
2020-02-19 01:43:51 +01:00
Patric Mueller 4b270099ec Stop monsters from interacting with protected items on the floor
This fixes the issue of chests with the wand of wishing on the castle level
being stolen by soldiers.

Commit b12ea03d1 revealed that searches_for_item() didn't check for onscary()
and allowed monsters to pick up items even though they were protected by a
scroll of scare monsters.
2020-02-17 10:41:03 +01:00
Patric Mueller 29da34b799 Adding missing basic taste "umami" as hallucinatory color 2020-02-02 20:16:13 +01:00
Patric Mueller 38fa93df73 Restrict the teleportation notification to actual teleportations
teleds() is used for more than just teleportations, the teleportation message
was also given when mounting a steed.

Trying out a new bit flags method parameter design pattern.
2020-01-11 19:51:54 +01:00
Patric Mueller 2965488525 Unpaid globs showed weight info unconditionally outside of wizmode
globwt() didn't check for wizmode, so unpaid globs would be shown with weight
information even for normal player.

Eliminated globwt() completely and consolidated the output of aum in one place
as we don't really care about the ordering of debug info in wizmode.
2020-01-08 11:34:53 +01:00
Patric Mueller 3a8990b8a0 Merge branch 'copperwater/sokoban_penalties' into NetHack-3.7
Closes #260
2020-01-06 01:00:46 +01:00
Patric Mueller 5267a50c7e Move enhance_tip into context and don't show tip if #enhance has been used before
Breaks save and bones compatibility.
2020-01-06 00:50:32 +01:00
Patric Mueller b55165ed07 Applying a spellbook hints about read charges left
Applying a spellbook allows the player to flip through the pages, providing an
indication of how many reads it has left before turning blank.

Originally from UnNetHack but code almost completely refactored and updated
for post 3.4 changes like deafness and novels.
2020-01-05 00:27:29 +01:00
Patric Mueller 9110302d42 When hallucinating, see hallucinated currencies instead of bits for an ale 2020-01-05 00:27:29 +01:00
Patric Mueller 49ef111bac Merge branch 'copperwater_consolidated_pull_request_265'
This includes most commits from GitHub pull request #265 with some code
adjustment and documentation in doc/fixes37.0.
2020-01-05 00:27:20 +01:00
Patric Mueller 25a248219a Update fixes37.0 2020-01-04 23:03:45 +01:00
Patric Mueller 0c89eb32f5 Show the teleportation messages only with flags.verbose 2020-01-04 22:54:14 +01:00
Patric Mueller 1acd631766 Candelabrum now reads "(n of 7 candles attached)"
It wasn't obvious enough before that the Candelabrum has seven candle
slots. This makes it show it clearly.
2020-01-04 22:54:14 +01:00
Patric Mueller 18b46449f0 Only output candelabrum tip if candles are in inventory 2020-01-04 22:54:14 +01:00
Patric Mueller 2ae7cf02ea Replace "money" in in-game texts with "gold"
When GOLDOBJ was activated unconditionally, several texts started referencing
"money" instead of "gold".

As we don't have the intention to introduce a complex coin system with
different denominations, change it back and also some other places that
reference "money".
2020-01-01 10:59:24 +01:00
Patric Mueller 9085093338 Fix compilation on platforms that split the ncurses and tinfo libraries
Some platforms compile ncurses in such a way that the tinfo library needs to
be separately linked in (e.g. Gentoo).

The tinfo library is a low-level library being used by and bundled with
ncurses.

Adding '-ltinfo' to WINTTYLIB in the hint files was considered the most robust
solution to this problem.  This still works on systems with ncurses 5.9.
Using pkg-config was ruled out as the default build of ncurses doesn't install
the necessary files.
2019-12-15 20:38:44 +01:00
Patric Mueller cb2e02ef75 Merge branch 'copperwater-vs_teleport' into NetHack-3.7
Closes #252
2019-12-08 20:00:31 +01:00
Patric Mueller b9f3a33ec9 Update depend.awk for the new Qt location and lua headers 2019-12-08 14:41:54 +01:00
Patric Mueller f7a2b9a8dc Merge branch 'NetHack-3.6' into NetHack-3.7 2019-05-26 18:16:22 +02:00
Patric Mueller b7edc7f8e8 Workaround for including stdint.h on older GCC versions
GCC doesn't set __STDC_VERSION__ for older versions. It is verified to
be set by default on 5.3.0.

Older versions set __INT64_MAX__ though (oldest version tested is
4.5.4).

If compilation with older GCC versions is required, set -std=c99. Even
3.4.6 is supported with this setting.
2019-01-29 15:10:01 +01:00
Patric Mueller bd730dbcaa workaround for C89 not supporting inline 2019-01-28 15:00:04 +01:00
Patric Mueller 97b8d0a50b Don't define Rand() if isaac64 is used 2019-01-28 10:02:09 +01:00
Patric Mueller f9433b2a87 integrate isaac64 into nethack
Also removed the float code from isaac64 as they are not used in
NetHack.
2019-01-28 10:02:08 +01:00
Patric Mueller c81db872fd add file for the isaac64 random number generator
This is the version from the Comprehensive C Archive Network, licensed
under the CC0 "No Rights Reserved" Creative Common License.
http://ccodearchive.net/info/isaac.html
2019-01-28 10:02:08 +01:00
Patric Mueller b3fde3eb41 fix check for stdc version in include/integer.h 2019-01-28 10:02:08 +01:00
Patric Mueller 52d4b1a1aa reseed during level change to prevent deduction of rng state
For platforms that read from the system's random number generator,
reseed during level change, before the map of a new level is created and
after level creation has finished.
2019-01-28 10:02:00 +01:00
Patric Mueller 86d694c61b read rng seed from random number source device
Linux and BSD system have random number source devices that can be used
as source for a unguessable seed source.

Other platforms fall back to generate the seed with gettime().
2019-01-28 10:01:45 +01:00
Patric Mueller 19f0a2d3ba Fix missing compilation dependency for cursinit.c 2018-12-28 15:21:33 +01:00
Patric Mueller 7d15535923 Fix always trapped castle chest 2018-12-15 22:40:30 +01:00
Patric Mueller 531ccca7d9 Revert "Revert "Send travis notification mails to mailing list""
This reverts commit 8edaa021d5.
2018-11-24 10:07:38 +01:00
Patric Mueller d60097b286 Send travis notification mails to mailing list 2018-11-23 18:56:25 +01:00
Patric Mueller a7ebb35d5e Adding a travis job for a minimal build 2018-11-23 17:44:31 +01:00
Patric Mueller 4c1a819511 Building tty, X11, and QT5 builds on Travis 2018-11-23 17:44:31 +01:00
Patric Mueller ae61fe6f27 Fix Qt compilation 2018-10-10 03:08:15 +02:00
Patric Mueller f87931a7bf fix typo of the Junethack tournament 2018-09-27 22:14:28 +02:00