Merge branch 'paxed-lua-merged3' into paxed-lua-v2-merged
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 artilist.h $NHDT-Date: 1433050874 2015/05/31 05:41:14 $ $NHDT-Branch: master $:$NHDT-Revision: 1.16 $ */
|
||||
/* NetHack 3.6 artilist.h $NHDT-Date: 1564351548 2019/07/28 22:05:48 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.20 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2017. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -31,7 +31,7 @@ static const char *artifact_names[] = {
|
||||
#define STUN(a,b) {0,AD_STUN,a,b} /* magical attack */
|
||||
/* clang-format on */
|
||||
|
||||
STATIC_OVL NEARDATA struct artifact artilist[] = {
|
||||
static NEARDATA struct artifact artilist[] = {
|
||||
#endif /* MAKEDEFS_C */
|
||||
|
||||
/* Artifact cost rationale:
|
||||
@@ -57,8 +57,16 @@ STATIC_OVL NEARDATA struct artifact artilist[] = {
|
||||
DRLI(5, 2), DRLI(0, 0), NO_CARY, 0, A_CHAOTIC, NON_PM, NON_PM, 8000L,
|
||||
NO_COLOR),
|
||||
/*
|
||||
* Mjollnir will return to the hand of the wielder when thrown
|
||||
* if the wielder is a Valkyrie wearing Gauntlets of Power.
|
||||
* Mjollnir can be thrown when wielded if hero has 25 Strength
|
||||
* (usually via gauntlets of power but possible with rings of
|
||||
* gain strength). If the thrower is a Valkyrie, Mjollnir will
|
||||
* usually (99%) return and then usually (separate 99%) be caught
|
||||
* and automatically be re-wielded. When returning Mjollnir is
|
||||
* not caught, there is a 50:50 chance of hitting hero for damage
|
||||
* and its lightning shock might destroy some wands and/or rings.
|
||||
*
|
||||
* Monsters don't throw Mjollnir regardless of strength (not even
|
||||
* fake-player valkyries).
|
||||
*/
|
||||
A("Mjollnir", WAR_HAMMER, /* Mjo:llnir */
|
||||
(SPFX_RESTR | SPFX_ATTK), 0, 0, ELEC(5, 24), NO_DFNS, NO_CARY, 0,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 botl.h $NHDT-Date: 1554591222 2019/04/06 22:53:42 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.24 $ */
|
||||
/* NetHack 3.6 botl.h $NHDT-Date: 1562187996 2019/07/03 21:06:36 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.27 $ */
|
||||
/* Copyright (c) Michael Allison, 2003 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -70,6 +70,56 @@ enum relationships { NO_LTEQGT = -1,
|
||||
#define BL_MASK_BITS 13 /* number of mask bits that can be set */
|
||||
/* clang-format on */
|
||||
|
||||
/*
|
||||
* Possible additional conditions:
|
||||
* major:
|
||||
* grab - grabbed by eel so about to be drowned ("wrapd"? damage type
|
||||
* is AD_WRAP but message is "<mon> swings itself around you")
|
||||
* digst - swallowed and being digested
|
||||
* lava - trapped sinking into lava
|
||||
* in_between: (potentially severe but don't necessarily lead to death;
|
||||
* explains to player why he isn't getting to take any turns)
|
||||
* unconc - unconscious
|
||||
* parlyz - (multi < 0 && (!strncmp(multi_reason, "paralyzed", 9)
|
||||
* || !strncmp(multi_reason, "frozen", 6)))
|
||||
* asleep - (multi < 0 && !strncmp(multi_reason, "sleeping", 8))
|
||||
* busy - other multi < 0
|
||||
* minor:
|
||||
* held - grabbed by non-eel or by eel but not susceptible to drowning
|
||||
* englf - engulfed or swallowed but not being digested (usually
|
||||
* obvious but the blank symbol set makes that uncertain)
|
||||
* vomit - vomiting (causes confusion and stun late in countdown)
|
||||
* trap - trapped in pit, bear trap, web, or floor (solidified lava)
|
||||
* teth - tethered to buried iron ball
|
||||
* chain - punished
|
||||
* slip - slippery fingers
|
||||
* ice - standing on ice (movement becomes uncertain)
|
||||
* [underwater - movement uncertain, vision truncated, equipment at risk]
|
||||
* other:
|
||||
* [hold - poly'd into grabber and holding adjacent monster]
|
||||
* Stormbringer - wielded weapon poses risks
|
||||
* Cleaver - wielded weapon risks unintended consequences
|
||||
* barehand - not wielding any weapon nor wearing gloves
|
||||
* no-weapon - not wielding any weapon
|
||||
* bow/xbow/sling - wielding a missile launcher of specified type
|
||||
* pole - wielding a polearm
|
||||
* pick - wielding a pickaxe
|
||||
* junk - wielding non-weapon, non-weptool
|
||||
* naked - no armor
|
||||
* no-gloves - self-explanatory
|
||||
* no-cloak - ditto
|
||||
* [no-{other armor slots?} - probably much too verbose]
|
||||
* conduct?
|
||||
* [maybe if third status line is added]
|
||||
*
|
||||
* Can't add all of these and probably don't want to. But maybe we
|
||||
* can add some of them and it's not as many as first appears:
|
||||
* lava/trap/teth are mutually exclusive;
|
||||
* digst/grab/englf/held/hold are also mutually exclusive;
|
||||
* Stormbringer/Cleaver/barehand/no-weapon/bow&c/pole/pick/junk too;
|
||||
* naked/no-{any armor slot} likewise.
|
||||
*/
|
||||
|
||||
#define VIA_WINDOWPORT() \
|
||||
((windowprocs.wincap2 & (WC2_HILITE_STATUS | WC2_FLUSH_STATUS)) != 0)
|
||||
|
||||
@@ -126,6 +176,8 @@ struct istat_s {
|
||||
const char *fldfmt;
|
||||
long time; /* moves when this field hilite times out */
|
||||
boolean chg; /* need to recalc time? */
|
||||
boolean percent_matters;
|
||||
short percent_value;
|
||||
unsigned anytype;
|
||||
anything a;
|
||||
char *val;
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
#define DECL_H
|
||||
|
||||
#define E extern
|
||||
#if !defined(MFLOPPY) && !defined(VMS) && !defined(WIN32)
|
||||
#if !defined(MICRO) && !defined(VMS) && !defined(WIN32)
|
||||
#define LOCKNAMESIZE (PL_NSIZ + 14) /* long enough for uid+name+.99 */
|
||||
#define LOCKNAMEINIT "1lock"
|
||||
#define BONESINIT "bonesnn.xxx"
|
||||
#define BONESSIZE sizeof(BONESINIT)
|
||||
#else
|
||||
#if defined(MFLOPPY)
|
||||
#if defined(MICRO)
|
||||
#define LOCKNAMESIZE FILENAME
|
||||
#define LOCKNAMEINIT ""
|
||||
#define BONESINIT ""
|
||||
@@ -52,7 +52,7 @@
|
||||
#define SAVEX ""
|
||||
#if !defined(SAVE_EXTENSION)
|
||||
#ifdef MICRO
|
||||
#define SAVE_EXTENSION ".sav"
|
||||
#define SAVE_EXTENSION ".svh"
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
#define SAVE_EXTENSION ".NetHack-saved-game"
|
||||
@@ -316,7 +316,8 @@ struct c_common_strings {
|
||||
const char *const c_nothing_happens, *const c_thats_enough_tries,
|
||||
*const c_silly_thing_to, *const c_shudder_for_moment,
|
||||
*const c_something, *const c_Something, *const c_You_can_move_again,
|
||||
*const c_Never_mind, *c_vision_clears, *const c_the_your[2];
|
||||
*const c_Never_mind, *c_vision_clears, *const c_the_your[2],
|
||||
*const c_fakename[2];
|
||||
};
|
||||
|
||||
E const struct c_common_strings c_common_strings;
|
||||
@@ -331,6 +332,9 @@ E const struct c_common_strings c_common_strings;
|
||||
#define Never_mind c_common_strings.c_Never_mind
|
||||
#define vision_clears c_common_strings.c_vision_clears
|
||||
#define the_your c_common_strings.c_the_your
|
||||
/* fakename[] used occasionally so vtense() won't be fooled by an assigned
|
||||
name ending in 's' */
|
||||
#define fakename c_common_strings.c_fakename
|
||||
|
||||
/* material strings */
|
||||
E const char *materialnm[];
|
||||
@@ -884,6 +888,7 @@ struct instance_globals {
|
||||
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
|
||||
struct monst *mydogs; /* monsters that went down/up together with @ */
|
||||
struct monst *migrating_mons; /* monsters moving to another level */
|
||||
struct autopickup_exception *apelist;
|
||||
struct mvitals mvitals[NUMMONS];
|
||||
|
||||
/* dokick.c */
|
||||
@@ -895,8 +900,10 @@ struct instance_globals {
|
||||
struct symsetentry symset[NUM_GRAPHICS];
|
||||
int currentgraphics;
|
||||
nhsym showsyms[SYM_MAX]; /* symbols to be displayed */
|
||||
nhsym l_syms[SYM_MAX]; /* loaded symbols */
|
||||
nhsym r_syms[SYM_MAX]; /* rogue symbols */
|
||||
nhsym primary_syms[SYM_MAX]; /* loaded primary symbols */
|
||||
nhsym rogue_syms[SYM_MAX]; /* loaded rogue symbols */
|
||||
nhsym ov_primary_syms[SYM_MAX]; /* loaded primary symbols */
|
||||
nhsym ov_rogue_syms[SYM_MAX]; /* loaded rogue symbols */
|
||||
nhsym warnsyms[WARNCOUNT]; /* the current warning display symbols */
|
||||
|
||||
/* dungeon.c */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1560161804 2019/06/10 10:16:44 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.714 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1571436000 2019/10/18 22:00:00 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.730 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -39,6 +39,7 @@ E int NDECL(number_leashed);
|
||||
E void FDECL(o_unleash, (struct obj *));
|
||||
E void FDECL(m_unleash, (struct monst *, BOOLEAN_P));
|
||||
E void NDECL(unleash_all);
|
||||
E boolean FDECL(leashable, (struct monst *));
|
||||
E boolean NDECL(next_to_u);
|
||||
E struct obj *FDECL(get_mleash, (struct monst *));
|
||||
E const char *NDECL(beautiful);
|
||||
@@ -178,6 +179,7 @@ E long NDECL(botl_score);
|
||||
E int FDECL(describe_level, (char *));
|
||||
E void FDECL(status_initialize, (BOOLEAN_P));
|
||||
E void NDECL(status_finish);
|
||||
E boolean NDECL(exp_percent_changing);
|
||||
E int NDECL(stat_cap_indx);
|
||||
E int NDECL(stat_hunger_indx);
|
||||
E const char *FDECL(bl_idx_to_fldname, (int));
|
||||
@@ -585,15 +587,19 @@ E int FDECL(def_char_to_monclass, (CHAR_P));
|
||||
#if !defined(MAKEDEFS_C) && !defined(LEV_LEX_C)
|
||||
E void FDECL(switch_symbols, (int));
|
||||
E void FDECL(assign_graphics, (int));
|
||||
E void NDECL(init_r_symbols);
|
||||
E void NDECL(init_symbols);
|
||||
E void NDECL(update_bouldersym);
|
||||
E void NDECL(init_showsyms);
|
||||
E void NDECL(init_l_symbols);
|
||||
E void NDECL(init_primary_symbols);
|
||||
E void NDECL(init_rogue_symbols);
|
||||
E void NDECL(init_ov_primary_symbols);
|
||||
E void NDECL(init_ov_rogue_symbols);
|
||||
E void FDECL(clear_symsetentry, (int, BOOLEAN_P));
|
||||
E void FDECL(update_l_symset, (struct symparse *, int));
|
||||
E void FDECL(update_r_symset, (struct symparse *, int));
|
||||
E void FDECL(update_primary_symset, (struct symparse *, int));
|
||||
E void FDECL(update_rogue_symset, (struct symparse *, int));
|
||||
E void FDECL(update_ov_primary_symset, (struct symparse *, int));
|
||||
E void FDECL(update_ov_rogue_symset, (struct symparse *, int));
|
||||
E boolean FDECL(cursed_object_at, (int, int));
|
||||
E nhsym FDECL(get_othersym, (int, int));
|
||||
|
||||
/* ### dungeon.c ### */
|
||||
|
||||
@@ -1016,6 +1022,7 @@ E int FDECL(identify, (struct obj *));
|
||||
E int FDECL(count_unidentified, (struct obj *));
|
||||
E void FDECL(identify_pack, (int, BOOLEAN_P));
|
||||
E void NDECL(learn_unseen_invent);
|
||||
E void NDECL(update_inventory);
|
||||
E void FDECL(prinv, (const char *, struct obj *, long));
|
||||
E char *FDECL(xprname,
|
||||
(struct obj *, const char *, CHAR_P, BOOLEAN_P, long, long));
|
||||
@@ -1049,7 +1056,8 @@ E int FDECL(count_unpaid, (struct obj *));
|
||||
E int FDECL(count_buc, (struct obj *, int, boolean (*)(OBJ_P)));
|
||||
E void FDECL(tally_BUCX, (struct obj *, BOOLEAN_P,
|
||||
int *, int *, int *, int *, int *));
|
||||
E long FDECL(count_contents, (struct obj *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
|
||||
E long FDECL(count_contents, (struct obj *,
|
||||
BOOLEAN_P, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
|
||||
E void FDECL(carry_obj_effects, (struct obj *));
|
||||
E const char *FDECL(currency, (long));
|
||||
E void FDECL(silly_thing, (const char *, struct obj *));
|
||||
@@ -1377,6 +1385,7 @@ E struct obj *FDECL(obj_nexto_xy, (struct obj *, int, int, BOOLEAN_P));
|
||||
E struct obj *FDECL(obj_absorb, (struct obj **, struct obj **));
|
||||
E struct obj *FDECL(obj_meld, (struct obj **, struct obj **));
|
||||
E void FDECL(pudding_merge_message, (struct obj *, struct obj *));
|
||||
E struct obj *FDECL(init_dummyobj, (struct obj *, SHORT_P, long));
|
||||
|
||||
/* ### mkroom.c ### */
|
||||
|
||||
@@ -1804,7 +1813,7 @@ E int FDECL(add_autopickup_exception, (const char *));
|
||||
E void NDECL(free_autopickup_exceptions);
|
||||
E int FDECL(load_symset, (const char *, int));
|
||||
E void NDECL(free_symsets);
|
||||
E boolean FDECL(parsesymbols, (char *));
|
||||
E boolean FDECL(parsesymbols, (char *, int));
|
||||
E struct symparse *FDECL(match_sym, (char *));
|
||||
E void NDECL(set_playmode);
|
||||
E int FDECL(sym_val, (const char *));
|
||||
@@ -1844,6 +1853,7 @@ E int NDECL(dohistory);
|
||||
E void FDECL(chdirx, (char *, BOOLEAN_P));
|
||||
#endif /* CHDIR */
|
||||
E boolean NDECL(authorize_wizard_mode);
|
||||
|
||||
#endif /* MICRO || WIN32 */
|
||||
|
||||
/* ### pcsys.c ### */
|
||||
@@ -1918,7 +1928,7 @@ E boolean NDECL(u_handsy);
|
||||
E int FDECL(use_container, (struct obj **, int, BOOLEAN_P));
|
||||
E int FDECL(loot_mon, (struct monst *, int *, boolean *));
|
||||
E int NDECL(dotip);
|
||||
E boolean FDECL(is_autopickup_exception, (struct obj *, BOOLEAN_P));
|
||||
E struct autopickup_exception *FDECL(check_autopickup_exceptions, (struct obj *));
|
||||
E boolean FDECL(autopick_testobj, (struct obj *, BOOLEAN_P));
|
||||
|
||||
/* ### pline.c ### */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 flag.h $NHDT-Date: 1559664948 2019/06/04 16:15:48 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.151 $ */
|
||||
/* NetHack 3.6 flag.h $NHDT-Date: 1569276988 2019/09/23 22:16:28 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.155 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -227,6 +227,8 @@ struct instance_flags {
|
||||
boolean defer_plname; /* X11 hack: askname() might not set g.plname */
|
||||
boolean herecmd_menu; /* use menu when mouseclick on yourself */
|
||||
boolean invis_goldsym; /* gold symbol is ' '? */
|
||||
int at_midnight; /* only valid during end of game disclosure */
|
||||
int at_night; /* also only valid during end of game disclosure */
|
||||
int failing_untrap; /* move_into_trap() -> spoteffects() -> dotrap() */
|
||||
int in_lava_effects; /* hack for Boots_off() */
|
||||
int last_msg; /* indicator of last message player saw */
|
||||
@@ -407,9 +409,6 @@ struct instance_flags {
|
||||
int wc2_statuslines; /* default = 2, curses can handle 3 */
|
||||
int wc2_windowborders; /* display borders on NetHack windows */
|
||||
int wc2_petattr; /* text attributes for pet */
|
||||
struct autopickup_exception *autopickup_exceptions[2];
|
||||
#define AP_LEAVE 0
|
||||
#define AP_GRAB 1
|
||||
#ifdef WIN32
|
||||
#define MAX_ALTKEYHANDLER 25
|
||||
char altkeyhandler[MAX_ALTKEYHANDLER];
|
||||
@@ -430,6 +429,7 @@ struct instance_flags {
|
||||
boolean windowtype_deferred; /* pick a windowport and store it in
|
||||
chosen_windowport[], but do not switch to
|
||||
it in the midst of options processing */
|
||||
genericptr_t returning_missile; /* 'struct obj *'; Mjollnir or aklys */
|
||||
boolean obsolete; /* obsolete options can point at this, it isn't used */
|
||||
};
|
||||
|
||||
|
||||
@@ -70,9 +70,10 @@
|
||||
* since otherwise comparisons with signed quantities are done incorrectly
|
||||
*/
|
||||
typedef schar xchar;
|
||||
#if defined(__GNUC__) && defined(WIN32) && defined(__cplusplus)
|
||||
|
||||
#ifdef __MINGW32__
|
||||
/* Resolve conflict with Qt 5 and MinGW-w32 */
|
||||
typedef uchar boolean; /* 0 or 1 */
|
||||
typedef unsigned char boolean; /* 0 or 1 */
|
||||
#else
|
||||
#ifndef SKIP_BOOLEAN
|
||||
typedef xchar boolean; /* 0 or 1 */
|
||||
|
||||
@@ -541,27 +541,6 @@ enum bodypart_types {
|
||||
#define getlogin() ((char *) 0)
|
||||
#endif /* MICRO */
|
||||
|
||||
#if defined(OVERLAY)
|
||||
#define USE_OVLx
|
||||
#define STATIC_DCL extern
|
||||
#define STATIC_OVL
|
||||
#define STATIC_VAR
|
||||
|
||||
#else /* !OVERLAY */
|
||||
|
||||
#define STATIC_DCL static
|
||||
#define STATIC_OVL static
|
||||
#define STATIC_VAR static
|
||||
|
||||
#endif /* OVERLAY */
|
||||
|
||||
/* Macro for a few items that are only static if we're not overlaid.... */
|
||||
#if defined(USE_TRAMPOLI) || defined(USE_OVLx)
|
||||
#define STATIC_PTR
|
||||
#else
|
||||
#define STATIC_PTR static
|
||||
#endif
|
||||
|
||||
/* The function argument to qsort() requires a particular
|
||||
* calling convention under WINCE which is not the default
|
||||
* in that environment.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 mextra.h $NHDT-Date: 1547428759 2019/01/14 01:19:19 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.22 $ */
|
||||
/* NetHack 3.6 mextra.h $NHDT-Date: 1571531885 2019/10/20 00:38:05 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.23 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -179,7 +179,8 @@ struct mextra {
|
||||
struct eshk *eshk;
|
||||
struct emin *emin;
|
||||
struct edog *edog;
|
||||
int mcorpsenm; /* obj->corpsenm for mimic posing as statue or corpse */
|
||||
int mcorpsenm; /* obj->corpsenm for mimic posing as statue or corpse, or
|
||||
* obj->spe (fruit index) for one posing as a slime mold */
|
||||
};
|
||||
|
||||
#define MNAME(mon) ((mon)->mextra->mname)
|
||||
|
||||
@@ -78,7 +78,12 @@
|
||||
* objects being thrown when the hangup occurs. \
|
||||
*/
|
||||
|
||||
#define MAIL
|
||||
#define CONFIG_FILE ".nethackrc"
|
||||
#define CONFIG_TEMPLATE ".nethackrc.template"
|
||||
#define SYSCF_TEMPLATE "sysconf.template"
|
||||
#define SYMBOLS_TEMPLATE "symbols.template"
|
||||
#define GUIDEBOOK_FILE "Guidebook.txt"
|
||||
|
||||
/* Stuff to help the user with some common, yet significant errors */
|
||||
#define INTERJECT_PANIC 0
|
||||
#define INTERJECTION_TYPES (INTERJECT_PANIC + 1)
|
||||
@@ -284,7 +289,7 @@ extern void FDECL(nhassert_failed, (const char * exp, const char * file,
|
||||
#define nethack_enter(argc, argv) nethack_enter_winnt()
|
||||
extern void FDECL(nethack_exit, (int)) NORETURN;
|
||||
extern boolean FDECL(file_exists, (const char *));
|
||||
|
||||
extern boolean FDECL(file_newer, (const char *, const char *));
|
||||
#ifndef SYSTEM_H
|
||||
#include "system.h"
|
||||
#endif
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
* Note: 3.6.x was not verified with Symantec C.
|
||||
*/
|
||||
|
||||
#define CONFIG_FILE "defaults.nh"
|
||||
#define GUIDEBOOK_FILE "Guidebook.txt"
|
||||
|
||||
/*
|
||||
* The following options are somewhat configurable depending on
|
||||
* your compiler.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 prop.h $NHDT-Date: 1547514641 2019/01/15 01:10:41 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.20 $ */
|
||||
/* NetHack 3.6 prop.h $NHDT-Date: 1570566360 2019/10/08 20:26:00 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.21 $ */
|
||||
/* Copyright (c) 1989 Mike Threepoint */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -106,7 +106,7 @@ struct prop {
|
||||
#define W_WEP 0x00000100L /* Wielded weapon */
|
||||
#define W_QUIVER 0x00000200L /* Quiver for (f)iring ammo */
|
||||
#define W_SWAPWEP 0x00000400L /* Secondary weapon */
|
||||
#define W_WEAPON (W_WEP | W_SWAPWEP | W_QUIVER)
|
||||
#define W_WEAPONS (W_WEP | W_SWAPWEP | W_QUIVER)
|
||||
#define W_ART 0x00001000L /* Carrying artifact (not really worn) */
|
||||
#define W_ARTI 0x00002000L /* Invoked artifact (not really worn) */
|
||||
/* Amulets, rings, tools, and other items */
|
||||
|
||||
11
include/rm.h
11
include/rm.h
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 rm.h $NHDT-Date: 1559994624 2019/06/08 11:50:24 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.61 $ */
|
||||
/* NetHack 3.6 rm.h $NHDT-Date: 1571347960 2019/10/17 21:32:40 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.64 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Pasi Kallinen, 2017. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -266,7 +266,9 @@ struct symparse {
|
||||
/* misc symbol definitions */
|
||||
#define SYM_BOULDER 0
|
||||
#define SYM_INVISIBLE 1
|
||||
#define MAXOTHER 2
|
||||
#define SYM_PET_OVERRIDE 2
|
||||
#define SYM_PLAYER_OVERRIDE 3
|
||||
#define MAXOTHER 4
|
||||
|
||||
/* linked list of symsets and their characteristics */
|
||||
struct symsetentry {
|
||||
@@ -278,7 +280,8 @@ struct symsetentry {
|
||||
Bitfield(nocolor, 1); /* don't use color if set */
|
||||
Bitfield(primary, 1); /* restricted for use as primary set */
|
||||
Bitfield(rogue, 1); /* restricted for use as rogue lev set */
|
||||
/* 5 free bits */
|
||||
Bitfield(explicitly, 1); /* explicit symset set */
|
||||
/* 4 free bits */
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -298,6 +301,8 @@ struct symsetentry {
|
||||
#define H_IBM 1
|
||||
#define H_DEC 2
|
||||
#define H_CURS 3
|
||||
#define H_MAC 4 /* obsolete; needed so that the listing of available
|
||||
* symsets by 'O' can skip it for !MAC_GRAPHICS_ENV */
|
||||
|
||||
extern const struct symdef defsyms[MAXPCHARS]; /* defaults */
|
||||
#define WARNCOUNT 6 /* number of different warning levels */
|
||||
|
||||
@@ -45,6 +45,10 @@ struct sysopt {
|
||||
/* save and bones format */
|
||||
int saveformat[2]; /* primary and onetime conversion */
|
||||
int bonesformat[2]; /* primary and onetime conversion */
|
||||
|
||||
/* enable accessibility options */
|
||||
int accessibility;
|
||||
|
||||
};
|
||||
|
||||
extern struct sysopt sysopt;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 timeout.h $NHDT-Date: 1432512775 2015/05/25 00:12:55 $ $NHDT-Branch: master $:$NHDT-Revision: 1.10 $ */
|
||||
/* NetHack 3.6 timeout.h $NHDT-Date: 1564269131 2019/07/27 23:12:11 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.12 $ */
|
||||
/* Copyright 1994, Dean Luick */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -10,10 +10,11 @@ typedef void FDECL((*timeout_proc), (ANY_P *, long));
|
||||
|
||||
/* kind of timer */
|
||||
enum timer_type {
|
||||
TIMER_LEVEL = 0, /* event specific to level */
|
||||
TIMER_GLOBAL, /* event follows current play */
|
||||
TIMER_OBJECT, /* event follows a object */
|
||||
TIMER_MONSTER /* event follows a monster */
|
||||
TIMER_LEVEL = 0, /* event specific to level [melting ice] */
|
||||
TIMER_GLOBAL = 1, /* event follows current play [not used] */
|
||||
TIMER_OBJECT = 2, /* event follows an object [various] */
|
||||
TIMER_MONSTER = 3, /* event follows a monster [not used] */
|
||||
NUM_TIMER_KINDS /* 4 */
|
||||
};
|
||||
|
||||
/* save/restore timer ranges */
|
||||
|
||||
@@ -143,6 +143,7 @@ extern boolean curses_map_borders(int *sx, int *sy, int *ex, int *ey,
|
||||
extern int curses_read_char(void);
|
||||
extern void curses_toggle_color_attr(WINDOW *win, int color, int attr,
|
||||
int onoff);
|
||||
extern void curses_menu_color_attr(WINDOW *, int, int, int);
|
||||
extern void curses_bail(const char *mesg);
|
||||
extern winid curses_get_wid(int type);
|
||||
extern char *curses_copy_of(const char *s);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 winprocs.h $NHDT-Date: 1553204011 2019/03/21 21:33:31 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.47 $ */
|
||||
/* NetHack 3.6 winprocs.h $NHDT-Date: 1567213890 2019/08/31 01:11:30 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.50 $ */
|
||||
/* Copyright (c) David Cohrs, 1992 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -112,7 +112,7 @@ extern
|
||||
#define end_menu (*windowprocs.win_end_menu)
|
||||
#define select_menu (*windowprocs.win_select_menu)
|
||||
#define message_menu (*windowprocs.win_message_menu)
|
||||
#define update_inventory (*windowprocs.win_update_inventory)
|
||||
|
||||
#define mark_synch (*windowprocs.win_mark_synch)
|
||||
#define wait_synch (*windowprocs.win_wait_synch)
|
||||
#ifdef CLIPPING
|
||||
|
||||
@@ -114,16 +114,7 @@ E void FDECL(tty_startup, (int *, int *));
|
||||
#ifndef NO_TERMS
|
||||
E void NDECL(tty_shutdown);
|
||||
#endif
|
||||
#if defined(apollo)
|
||||
/* Apollos don't widen old-style function definitions properly -- they try to
|
||||
* be smart and use the prototype, or some such strangeness. So we have to
|
||||
* define UNWIDENDED_PROTOTYPES (in tradstdc.h), which makes CHAR_P below a
|
||||
* char. But the tputs termcap call was compiled as if xputc's argument
|
||||
* actually would be expanded. So here, we have to make an exception. */
|
||||
E void FDECL(xputc, (int));
|
||||
#else
|
||||
E void FDECL(xputc, (CHAR_P));
|
||||
#endif
|
||||
E int FDECL(xputc, (int));
|
||||
E void FDECL(xputs, (const char *));
|
||||
#if defined(SCREEN_VGA) || defined(SCREEN_8514)
|
||||
E void FDECL(xputg, (int, int, unsigned));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 youprop.h $NHDT-Date: 1433291407 2015/06/03 00:30:07 $ $NHDT-Branch: master $:$NHDT-Revision: 1.23 $ */
|
||||
/* NetHack 3.6 youprop.h $NHDT-Date: 1568831820 2019/09/18 18:37:00 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.27 $ */
|
||||
/* Copyright (c) 1989 Mike Threepoint */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -75,8 +75,8 @@
|
||||
/* Pseudo-property */
|
||||
#define Punished (uball != 0)
|
||||
|
||||
/* Those implemented solely as timeouts (we use just intrinsic) */
|
||||
#define HStun u.uprops[STUNNED].intrinsic
|
||||
/* Many are implemented solely as timeouts (we use just intrinsic) */
|
||||
#define HStun u.uprops[STUNNED].intrinsic /* timed or FROMFORM */
|
||||
#define Stunned HStun
|
||||
|
||||
#define HConfusion u.uprops[CONFUSION].intrinsic
|
||||
|
||||
Reference in New Issue
Block a user