Wikia

Wikihack

Source:Epri.h

2,032pages on
this wiki
Talk0

Below is the full text to include/epri.h from NetHack 3.4.3. To link to a particular line, write [[epri.h#line123]], for example.

1.    /*	SCCS Id: @(#)epri.h	3.4	1997/05/01	*/
2.    /* Copyright (c) Izchak Miller, 1989.				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
5.    #ifndef EPRI_H
6.    #define EPRI_H
7.    
8.    struct epri {
9.    	aligntyp shralign;	/* alignment of priest's shrine */
10.   				/* leave as first field to match emin */
11.   	schar shroom;		/* index in rooms */
12.   	coord shrpos;		/* position of shrine */
13.   	d_level shrlevel;	/* level (& dungeon) of shrine */
14.   };
15.   
16.   #define EPRI(mon)	((struct epri *)&(mon)->mextra[0])
17.   
18.   /* A priest without ispriest is a roaming priest without a shrine, so
19.    * the fields (except shralign, which becomes only the priest alignment)
20.    * are available for reuse.
21.    */
22.   #define renegade shroom
23.   
24.   #endif /* EPRI_H */

Around Wikia's network

Random Wiki