Defines | Functions

quest.c File Reference

#include "hack.h"
#include "quest.h"
#include "qtext.h"
Include dependency graph for quest.c:

Defines

#define Not_firsttime   (on_level(&u.uz0, &u.uz))
#define Qstat(x)   (quest_status.x)

Functions

STATIC_DCL void NDECL (on_start)
STATIC_DCL void NDECL (on_locate)
STATIC_DCL void NDECL (on_goal)
STATIC_DCL boolean NDECL (not_capable)
STATIC_DCL int FDECL (is_pure,(BOOLEAN_P))
STATIC_DCL void FDECL (expulsion,(BOOLEAN_P))
STATIC_DCL void NDECL (chat_with_leader)
STATIC_DCL void NDECL (chat_with_nemesis)
STATIC_DCL void NDECL (chat_with_guardian)
STATIC_DCL void FDECL (prisoner_speaks,(struct monst *))
STATIC_OVL void on_start ()
STATIC_OVL void on_locate ()
STATIC_OVL void on_goal ()
void onquest ()
void nemdead ()
void artitouch ()
boolean ok_to_quest ()
STATIC_OVL boolean not_capable ()
STATIC_OVL int is_pure (boolean talk)
STATIC_OVL void expulsion (boolean seal)
void finish_quest (struct obj *obj)
STATIC_OVL void chat_with_leader ()
void leader_speaks (struct monst *mtmp)
STATIC_OVL void chat_with_nemesis ()
void nemesis_speaks ()
STATIC_OVL void chat_with_guardian ()
STATIC_OVL void prisoner_speaks (struct monst *mtmp)
void quest_chat (struct monst *mtmp)
void quest_talk (struct monst *mtmp)
void quest_stat_check (struct monst *mtmp)

Define Documentation

#define Not_firsttime   (on_level(&u.uz0, &u.uz))

Referenced by onquest().

#define Qstat (   x )    (quest_status.x)

Function Documentation

void artitouch (  )

References A_WIS, exercise(), Qstat, QT_GOTIT, qt_pager(), and TRUE.

Referenced by addinv_core1().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void chat_with_guardian (  )

References Qstat, QT_GUARDTALK, QT_GUARDTALK2, qt_pager(), rn1, u, and you::uhave.

Referenced by quest_chat().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void chat_with_leader (  )
STATIC_OVL void chat_with_nemesis (  )

References Qstat, QT_DISCOURAGE, qt_pager(), and rn1.

Referenced by quest_chat().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void expulsion ( boolean  seal )

References deltrap(), d_level::dnum, dungeon_branch(), branch::end1, branch::end2, FALSE, ftrap, MAGIC_PORTAL, trap::ntrap, quest_dnum, remdun_mapseen(), schedule_goto(), u, you::uevent, and you::uz.

Referenced by chat_with_leader(), and leader_speaks().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void FDECL ( prisoner_speaks  ,
(struct monst *)   
)
STATIC_DCL int FDECL ( is_pure  ,
(BOOLEAN_P)   
)
STATIC_DCL void FDECL ( expulsion  ,
(BOOLEAN_P)   
)
void finish_quest ( struct obj obj )

References AMULET_OF_YENDOR, BELL_OF_OPENING, carrying(), com_pager(), fully_identify_obj(), otmp, Qstat, QT_HASAMULET, QT_OFFEREDIT, QT_OFFEREDIT2, qt_pager(), TRUE, u, you::uevent, you::uhave, and update_inventory.

Referenced by chat_with_leader(), and thitmonst().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int is_pure ( boolean  talk )

Tests if the player is worthy of doing the Quest.

Returns:
-1 if the player has converted 0 if his alignment status is too low 1 if he is worthy

References A_CURRENT, A_ORIGINAL, align_str(), MIN_QUEST_ALIGN, align::record, align::type, u, you::ualign, you::ualignbase, wizard, and yn_function().

Referenced by chat_with_leader(), and ok_to_quest().

Here is the call graph for this function:

Here is the caller graph for this function:

void leader_speaks ( struct monst mtmp )

References chat_with_leader(), expulsion(), on_level(), qstart_level, Qstat, QT_LASTLEADER, qt_pager(), STRAT_WAITMASK, TRUE, u, and you::uz.

Referenced by quest_talk().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL boolean NDECL ( not_capable   )
STATIC_DCL void NDECL ( chat_with_nemesis   )
STATIC_DCL void NDECL ( chat_with_guardian   )
STATIC_DCL void NDECL ( on_locate   )
STATIC_DCL void NDECL ( on_start   )
STATIC_DCL void NDECL ( on_goal   )
STATIC_DCL void NDECL ( chat_with_leader   )
void nemdead (  )

References Qstat, QT_KILLEDNEM, qt_pager(), and TRUE.

Here is the call graph for this function:

void nemesis_speaks (  )

References Qstat, QT_DISCOURAGE, QT_FIRSTNEMESIS, QT_NEMWANTSIT, QT_NEXTNEMESIS, QT_OTHERNEMESIS, qt_pager(), rn1, rn2(), TRUE, u, and you::uhave.

Referenced by quest_talk().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean not_capable (  )

References MIN_QUEST_LEVEL, u, and you::ulevel.

Referenced by chat_with_leader().

Here is the caller graph for this function:

boolean ok_to_quest (  )

References FALSE, is_pure(), and Qstat.

Referenced by down_gate(), goto_level(), and zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void on_goal (  )

References Qstat, QT_FIRSTGOAL, QT_NEXTGOAL, and qt_pager().

Referenced by onquest().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void on_locate (  )

References d_level::dlevel, Qstat, QT_FIRSTLOCATE, QT_NEXTLOCATE, qt_pager(), TRUE, u, you::uz, and you::uz0.

Referenced by onquest().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void on_start (  )

References d_level::dlevel, d_level::dnum, Qstat, QT_FIRSTTIME, QT_NEXTTIME, QT_OTHERTIME, qt_pager(), TRUE, u, you::uz, and you::uz0.

Referenced by onquest().

Here is the call graph for this function:

Here is the caller graph for this function:

void onquest (  )

References d_level::dlevel, Is_nemesis, Is_qlocate, Is_qstart, Is_special(), Not_firsttime, on_goal(), on_locate(), on_start(), u, you::uevent, you::uz, and you::uz0.

Referenced by goto_level().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void prisoner_speaks ( struct monst mtmp )

References adjalign(), angry_guards(), canseemon, FALSE, Monnam(), mons, pline(), PM_PRISONER, and STRAT_WAITMASK.

Referenced by quest_talk().

Here is the call graph for this function:

Here is the caller graph for this function:

void quest_chat ( struct monst mtmp )

References chat_with_guardian(), chat_with_leader(), chat_with_nemesis(), mon_nam(), MS_GUARDIAN, MS_NEMESIS, and Qstat.

Referenced by domonnoise().

Here is the call graph for this function:

Here is the caller graph for this function:

void quest_stat_check ( struct monst mtmp )

References monnear(), MS_NEMESIS, Qstat, u, you::ux, and you::uy.

Referenced by dochug().

Here is the call graph for this function:

Here is the caller graph for this function:

void quest_talk ( struct monst mtmp )

References leader_speaks(), MS_DJINNI, MS_NEMESIS, nemesis_speaks(), prisoner_speaks(), and Qstat.

Referenced by dochug().

Here is the call graph for this function:

Here is the caller graph for this function: