NetHack Patch Database v0.27

323 patches

Datafile Conditionals

NameDatafile Conditionals v1.2
RatingNot rated
AuthorPasi Kallinen
ForNetHack 3.4.2
DescriptionImplements a subset of C-like preprocessing directives for certain text data files.
 This patch implements conditional parts of text data files, (small subset of C-like preprocessing) and makes all the text data files behave in similar way:

Also adds many new random epitaphs.

Does not affect saves or bones, but does affect dlb.
Patch only updates the UNIX Makefiles.

# lines beginning with '#' are comments, except...
#ifdef AMIGA UNIX
this line will be processed on both amiga and unix. (AMIGA or UNIX)
#endif

# these ifdefs can be nested:
#ifdef AMIGA
# ifdef ELBERETH
this line will be processed on amiga only if elbereth is also in. (AMIGA and ELBERETH)
# endif
#endif

#ifdef UNIX
this line will be processed on unix systems.
#else
this line will be processed if not on unix system.
#endif

#ifndef WIN32
this line will be processed if not on Win32.
#endif
Downloadhttp://bilious.alt.org/~paxed/nethack/nh342-dat_ifdef.diff (86.2 Kb)
AddedJanuary 30, 2005 17:27
ChangedFebruary 20, 2006 22:37
Submit an update to this patch

Add a comment

Name ()required
Rating (0 is worst, 5 is best) 
Commentrequired
You can use up to 1024 characters.
Only supported tag is [url]clickable_link[/url].

You will need to answer the following question correctly: What symbol represents a scroll?