#include "hack.h"
#include "quest.h"
#include "qtext.h"
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 Not_firsttime (on_level(&u.uz0, &u.uz)) |
Referenced by onquest().
#define Qstat | ( | x ) | (quest_status.x) |
void artitouch | ( | ) |
References A_WIS, exercise(), Qstat, QT_GOTIT, qt_pager(), and TRUE.
Referenced by addinv_core1().
STATIC_OVL void chat_with_guardian | ( | ) |
References Qstat, QT_GUARDTALK, QT_GUARDTALK2, qt_pager(), rn1, u, and you::uhave.
Referenced by quest_chat().
STATIC_OVL void chat_with_leader | ( | ) |
References A_WIS, com_pager(), exercise(), expulsion(), FALSE, finish_quest(), invent, is_pure(), is_quest_artifact(), MAX_QUEST_TRIES, obj::nobj, not_capable(), on_level(), otmp, qstart_level, Qstat, QT_ASSIGNQUEST, QT_BADALIGN, QT_BADLEVEL, QT_BANISHED, QT_ENCOURAGE, QT_FIRSTLEADER, QT_LASTLEADER, QT_NEXTLEADER, qt_pager(), QT_POSTHANKS, rn1, TRUE, u, you::uhave, and you::uz.
Referenced by leader_speaks(), and quest_chat().
STATIC_OVL void chat_with_nemesis | ( | ) |
References Qstat, QT_DISCOURAGE, qt_pager(), and rn1.
Referenced by quest_chat().
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().
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().
STATIC_OVL int is_pure | ( | boolean | talk ) |
Tests if the player is worthy of doing the Quest.
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().
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().
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 | ( | ) |
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().
STATIC_OVL boolean not_capable | ( | ) |
References MIN_QUEST_LEVEL, u, and you::ulevel.
Referenced by chat_with_leader().
boolean ok_to_quest | ( | ) |
References FALSE, is_pure(), and Qstat.
Referenced by down_gate(), goto_level(), and zap_updown().
STATIC_OVL void on_goal | ( | ) |
References Qstat, QT_FIRSTGOAL, QT_NEXTGOAL, and qt_pager().
Referenced by onquest().
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().
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().
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().
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().
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().
void quest_stat_check | ( | struct monst * | mtmp ) |
void quest_talk | ( | struct monst * | mtmp ) |
References leader_speaks(), MS_DJINNI, MS_NEMESIS, nemesis_speaks(), prisoner_speaks(), and Qstat.
Referenced by dochug().