Source:NetHack 2.2a/spell.h

From NetHackWiki
Revision as of 02:49, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 2.2a/spell.h moved to Source:NetHack 2.2a/spell.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

Screenshots and source code from Hack are used under the CWI license.

1.    /*	SCCS Id: @(#)spell.h	2.1	87/10/18
2.    /* M. Stephenson  07-07-86 */
3.    
4.    #ifndef SPELL_H
5.    #define SPELL_H
6.    
7.    struct	spell  {
8.    
9.    	int	sp_id;			/* spell id */
10.   	int	sp_lev;			/* power level */
11.   	int	sp_flags;		/* spfx flags */
12.   #ifdef HARD
13.   	int 	sp_uses;		/* uses left to spell */
14.   #endif
15.   };
16.   
17.   
18.   #endif