Source:NetHack 3.1.0/quest.h

Below is the full text to quest.h from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.0/quest.h#line123 ]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

1.   /*	SCCS Id: @(#)quest.h	3.1	92/11/15	*/ 2.   /* Copyright (c) Mike Stephenson 1991. */ 3.    /* NetHack may be freely redistributed. See license for details. */ 4.     5.    #ifdef MULDGN 6.   #ifndef QUEST_H 7.   #define QUEST_H 8.    9.    struct q_score {			/* Quest "scorecard" */ 10.  	Bitfield(first_start,1);	/* only set the first time */ 11.  	Bitfield(met_leader,1);		/* has met the leader */ 12.  	Bitfield(not_ready,3);		/* rejected due to alignment, etc. */ 13.  	Bitfield(pissed_off,1);		/* got the leader angry */ 14.  	Bitfield(got_quest,1);		/* got the quest assignment */ 15.   16.   	Bitfield(first_locate,1);	/* only set the first time */ 17.  	Bitfield(met_intermed,1);	/* used if the locate is a person. */ 18.   	Bitfield(got_final,1);		/* got the final quest assignment */ 19.   20.   	Bitfield(made_goal,3);		/* # of times on goal level */ 21.  	Bitfield(met_nemesis,1);	/* has met the nemesis before */ 22.  	Bitfield(killed_nemesis,1);	/* set when the nemesis is killed */ 23.  	Bitfield(in_battle,1);		/* set when nemesis fighting you */ 24.   25.   	Bitfield(cheater,1);		/* set if cheating detected */ 26.  	Bitfield(touched_artifact,1);	/* for a special message */ 27.  	Bitfield(offered_artifact,1);	/* offered to leader */ 28.  	Bitfield(got_thanks,1);		/* final message from leader */ 29.  };  30.    31.   #define MAX_QUEST_TRIES	 7	/* exceed this and you "fail" */ 32.  #define MIN_QUEST_ALIGN	20	/* at least this align.record to start */ 33.    /* note: align 20 matches "pious" as reported by enlightenment (cmd.c) */ 34.  #define MIN_QUEST_LEVEL	14	/* at least this u.ulevel to start */ 35.    /* note: exp.lev. 14 is threshold level for 5th rank (class title, botl.c) */ 36.   37.   #endif /* QUEST_H */ 38.  #endif /* MULDGN */