Make ELBERETH unconditional.

This commit is contained in:
Sean Hunt
2015-03-17 18:45:45 +02:00
committed by Pasi Kallinen
parent 69356cc77d
commit aba6ecb7b3
10 changed files with 5 additions and 38 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ The gods are said to be pleased when offerings are given to the
priests who attend their temples, and they may grant various favors to priests who attend their temples, and they may grant various favors to
those who do so. But beware! To be young and frugal is better than to those who do so. But beware! To be young and frugal is better than to
be old and miserly. be old and miserly.
----- ELBERETH -----
The name of Elbereth may strike fear into the hearts of thine enemies, if The name of Elbereth may strike fear into the hearts of thine enemies, if
thou dost write it upon the ground at thy feet. If thou maintainest the thou dost write it upon the ground at thy feet. If thou maintainest the
utmost calm, thy safety will be aided greatly, but beware lest thy clumsy utmost calm, thy safety will be aided greatly, but beware lest thy clumsy
-2
View File
@@ -427,8 +427,6 @@ typedef unsigned char uchar;
#define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */ #define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */
#define STEED /* Riding steeds */ #define STEED /* Riding steeds */
#define TOURIST /* Tourist players with cameras and Hawaiian shirts */ #define TOURIST /* Tourist players with cameras and Hawaiian shirts */
/* difficulty */
#define ELBERETH /* Engraving the E-word repels monsters */
/* I/O */ /* I/O */
#define REDO /* support for redoing last command - DGK */ #define REDO /* support for redoing last command - DGK */
#if !defined(MAC) #if !defined(MAC)
-2
View File
@@ -670,9 +670,7 @@ E void FDECL(cant_reach_floor, (int,int,BOOLEAN_P,BOOLEAN_P));
E const char *FDECL(surface, (int,int)); E const char *FDECL(surface, (int,int));
E const char *FDECL(ceiling, (int,int)); E const char *FDECL(ceiling, (int,int));
E struct engr *FDECL(engr_at, (XCHAR_P,XCHAR_P)); E struct engr *FDECL(engr_at, (XCHAR_P,XCHAR_P));
#ifdef ELBERETH
E int FDECL(sengr_at, (const char *,XCHAR_P,XCHAR_P)); E int FDECL(sengr_at, (const char *,XCHAR_P,XCHAR_P));
#endif
E void FDECL(u_wipe_engr, (int)); E void FDECL(u_wipe_engr, (int));
E void FDECL(wipe_engr_at, (XCHAR_P,XCHAR_P,XCHAR_P)); E void FDECL(wipe_engr_at, (XCHAR_P,XCHAR_P,XCHAR_P));
E void FDECL(read_engr_at, (int,int)); E void FDECL(read_engr_at, (int,int));
-2
View File
@@ -47,9 +47,7 @@ struct u_event {
Bitfield(invoked,1); /* invoked Gate to the Sanctum level */ Bitfield(invoked,1); /* invoked Gate to the Sanctum level */
Bitfield(gehennom_entered,1); /* entered Gehennom via Valley */ Bitfield(gehennom_entered,1); /* entered Gehennom via Valley */
#ifdef ELBERETH
Bitfield(uhand_of_elbereth,2); /* became Hand of Elbereth */ Bitfield(uhand_of_elbereth,2); /* became Hand of Elbereth */
#endif
Bitfield(udemigod,1); /* killed the wiz */ Bitfield(udemigod,1); /* killed the wiz */
Bitfield(uvibrated,1); /* stepped on "vibrating square" */ Bitfield(uvibrated,1); /* stepped on "vibrating square" */
Bitfield(ascended,1); /* has offered the Amulet */ Bitfield(ascended,1); /* has offered the Amulet */
-2
View File
@@ -1785,7 +1785,6 @@ int final;
putstr(en_win, 0, ""); putstr(en_win, 0, "");
putstr(en_win, 0, final ? "Final Attributes:" : "Current Attributes:"); putstr(en_win, 0, final ? "Final Attributes:" : "Current Attributes:");
#ifdef ELBERETH
if (u.uevent.uhand_of_elbereth) { if (u.uevent.uhand_of_elbereth) {
static const char * const hofe_titles[3] = { static const char * const hofe_titles[3] = {
"the Hand of Elbereth", "the Hand of Elbereth",
@@ -1794,7 +1793,6 @@ int final;
}; };
you_are(hofe_titles[u.uevent.uhand_of_elbereth - 1],""); you_are(hofe_titles[u.uevent.uhand_of_elbereth - 1],"");
} }
#endif
/* note: piousness 20 matches MIN_QUEST_ALIGN (quest.h) */ /* note: piousness 20 matches MIN_QUEST_ALIGN (quest.h) */
if (u.ualign.record >= 20) you_are("piously aligned",""); if (u.ualign.record >= 20) you_are("piously aligned","");
-2
View File
@@ -244,7 +244,6 @@ xchar x, y;
return((struct engr *) 0); return((struct engr *) 0);
} }
#ifdef ELBERETH
/* Decide whether a particular string is engraved at a specified /* Decide whether a particular string is engraved at a specified
* location; a case-insensitive substring match used. * location; a case-insensitive substring match used.
* Ignore headstones, in case the player names herself "Elbereth". * Ignore headstones, in case the player names herself "Elbereth".
@@ -259,7 +258,6 @@ sengr_at(s, x, y)
return (ep && ep->engr_type != HEADSTONE && return (ep && ep->engr_type != HEADSTONE &&
ep->engr_time <= moves && strstri(ep->engr_txt, s) != 0); ep->engr_time <= moves && strstri(ep->engr_txt, s) != 0);
} }
#endif /* ELBERETH */
void void
u_wipe_engr(cnt) u_wipe_engr(cnt)
-2
View File
@@ -122,9 +122,7 @@ struct monst *mtmp;
return(FALSE); return(FALSE);
return (boolean)(sobj_at(SCR_SCARE_MONSTER, x, y) || return (boolean)(sobj_at(SCR_SCARE_MONSTER, x, y) ||
#ifdef ELBERETH
sengr_at("Elbereth", x, y) || sengr_at("Elbereth", x, y) ||
#endif
(IS_ALTAR(levl[x][y].typ) && (IS_ALTAR(levl[x][y].typ) &&
(mtmp->data->mlet == S_VAMPIRE || (mtmp->data->mlet == S_VAMPIRE ||
is_vampshifter(mtmp)))); is_vampshifter(mtmp))));
-8
View File
@@ -11,9 +11,7 @@ STATIC_DCL int NDECL(in_trouble);
STATIC_DCL void FDECL(fix_worst_trouble,(int)); STATIC_DCL void FDECL(fix_worst_trouble,(int));
STATIC_DCL void FDECL(angrygods,(ALIGNTYP_P)); STATIC_DCL void FDECL(angrygods,(ALIGNTYP_P));
STATIC_DCL void FDECL(at_your_feet, (const char *)); STATIC_DCL void FDECL(at_your_feet, (const char *));
#ifdef ELBERETH
STATIC_DCL void NDECL(gcrownu); STATIC_DCL void NDECL(gcrownu);
#endif /*ELBERETH*/
STATIC_DCL void FDECL(pleased,(ALIGNTYP_P)); STATIC_DCL void FDECL(pleased,(ALIGNTYP_P));
STATIC_DCL void FDECL(godvoice,(ALIGNTYP_P,const char*)); STATIC_DCL void FDECL(godvoice,(ALIGNTYP_P,const char*));
STATIC_DCL void FDECL(god_zaps_you,(ALIGNTYP_P)); STATIC_DCL void FDECL(god_zaps_you,(ALIGNTYP_P));
@@ -678,7 +676,6 @@ at_your_feet(str)
} }
} }
#ifdef ELBERETH
STATIC_OVL void STATIC_OVL void
gcrownu() gcrownu()
{ {
@@ -830,7 +827,6 @@ gcrownu()
add_weapon_skill(1); add_weapon_skill(1);
return; return;
} }
#endif /*ELBERETH*/
STATIC_OVL void STATIC_OVL void
pleased(g_align) pleased(g_align)
@@ -1052,12 +1048,10 @@ pleased(g_align)
} }
case 7: case 7:
case 8: case 8:
#ifdef ELBERETH
if (u.ualign.record >= PIOUS && !u.uevent.uhand_of_elbereth) { if (u.ualign.record >= PIOUS && !u.uevent.uhand_of_elbereth) {
gcrownu(); gcrownu();
break; break;
} /* else FALLTHRU */ } /* else FALLTHRU */
#endif /*ELBERETH*/
case 6: { case 6: {
struct obj *otmp; struct obj *otmp;
int sp_no, trycnt = u.ulevel + 1; int sp_no, trycnt = u.ulevel + 1;
@@ -1090,9 +1084,7 @@ pleased(g_align)
u.ublesscnt = rnz(350); u.ublesscnt = rnz(350);
kick_on_butt = u.uevent.udemigod ? 1 : 0; kick_on_butt = u.uevent.udemigod ? 1 : 0;
#ifdef ELBERETH
if (u.uevent.uhand_of_elbereth) kick_on_butt++; if (u.uevent.uhand_of_elbereth) kick_on_butt++;
#endif
if (kick_on_butt) u.ublesscnt += kick_on_butt * rnz(1000); if (kick_on_butt) u.ublesscnt += kick_on_butt * rnz(1000);
return; return;
-4
View File
@@ -540,9 +540,7 @@ u_init()
u.ublessed = 0; /* not worthy yet */ u.ublessed = 0; /* not worthy yet */
u.ugangr = 0; /* gods not angry */ u.ugangr = 0; /* gods not angry */
u.ugifts = 0; /* no divine gifts bestowed */ u.ugifts = 0; /* no divine gifts bestowed */
# ifdef ELBERETH
u.uevent.uhand_of_elbereth = 0; u.uevent.uhand_of_elbereth = 0;
# endif
u.uevent.uheard_tune = 0; u.uevent.uheard_tune = 0;
u.uevent.uopened_dbridge = 0; u.uevent.uopened_dbridge = 0;
u.uevent.udemigod = 0; /* not a demi-god yet... */ u.uevent.udemigod = 0; /* not a demi-god yet... */
@@ -917,9 +915,7 @@ register struct trobj *trop;
|| otyp == nocreate2 || otyp == nocreate2
|| otyp == nocreate3 || otyp == nocreate3
|| otyp == nocreate4 || otyp == nocreate4
#ifdef ELBERETH
|| otyp == RIN_LEVITATION || otyp == RIN_LEVITATION
#endif
/* 'useless' items */ /* 'useless' items */
|| otyp == POT_HALLUCINATION || otyp == POT_HALLUCINATION
|| otyp == POT_ACID || otyp == POT_ACID
+4 -13
View File
@@ -961,8 +961,8 @@ do_rumors()
*/ */
#define IGNORED_FEATURES ( 0L \ #define IGNORED_FEATURES ( 0L \
| (1L << 12) /* GOLDOBJ */ \ | (1L << 12) /* GOLDOBJ */ \
| (1L << 20) /* EXP_ON_BOTL */ \ | (1L << 19) /* EXP_ON_BOTL */ \
| (1L << 21) /* SCORE_ON_BOTL */ \ | (1L << 20) /* SCORE_ON_BOTL */ \
| (1L << 27) /* ZEROCOMP */ \ | (1L << 27) /* ZEROCOMP */ \
| (1L << 28) /* RLECOMP */ \ | (1L << 28) /* RLECOMP */ \
) )
@@ -1018,14 +1018,11 @@ make_version()
#ifdef INSURANCE #ifdef INSURANCE
| (1L << 18) | (1L << 18)
#endif #endif
#ifdef ELBERETH #ifdef EXP_ON_BOTL
| (1L << 19) | (1L << 19)
#endif #endif
#ifdef EXP_ON_BOTL
| (1L << 20)
#endif
#ifdef SCORE_ON_BOTL #ifdef SCORE_ON_BOTL
| (1L << 21) | (1L << 20)
#endif #endif
/* data format (27..31) /* data format (27..31)
* External compression methods such as COMPRESS and ZLIB_COMP * External compression methods such as COMPRESS and ZLIB_COMP
@@ -1257,9 +1254,6 @@ static const char *build_opts[] = {
#ifdef DUNGEON_OVERVIEW #ifdef DUNGEON_OVERVIEW
"dungeon map overview patch", "dungeon map overview patch",
#endif #endif
#ifdef ELBERETH
"Elbereth",
#endif
#ifdef EXP_ON_BOTL #ifdef EXP_ON_BOTL
"experience points on status line", "experience points on status line",
#endif #endif
@@ -1684,9 +1678,6 @@ h_filter(line)
skip = FALSE; skip = FALSE;
#ifndef SINKS #ifndef SINKS
if (!strcmp(tag, "SINKS")) skip = TRUE; if (!strcmp(tag, "SINKS")) skip = TRUE;
#endif
#ifndef ELBERETH
if (!strcmp(tag, "ELBERETH")) skip = TRUE;
#endif #endif
} else if (skip && !strncmp(line, "-----", 5)) } else if (skip && !strncmp(line, "-----", 5))
skip = FALSE; skip = FALSE;