Wikia

Wikihack

Source:SLASH'EM 0.0.7E7F2/epri.h

2,032pages on
this wiki
Talk0

Below is the full text to epri.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/epri.h#line123]], for example.

The latest source code for vanilla NetHack is at Source code.


The NetHack General Public License applies to screenshots, source code and other content from NetHack.
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.    
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