Source:NetHack 3.0.0/monattk.h

From NetHackWiki
Revision as of 04:58, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.0.0/monattk.h moved to Source:NetHack 3.0.0/monattk.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 monattk.h from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/monattk.h#line123]], for example.

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

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)monattk.h	3.0	89/06/15
2.    /* NetHack may be freely redistributed.  See license for details. */
3.    /* Copyright 1988, M. Stephenson */
4.    
5.    #ifndef MONATTK_H
6.    #define MONATTK_H
7.    
8.    /*	Add new attack types below - ordering affects experience (exper.c).
9.     *	Attacks > AT_BUTT are worth extra experience.
10.    */
11.   #define	AT_NONE		0		/* passive monster (ex. acid blob) */
12.   #define	AT_CLAW		1		/* claw (punch, hit, etc.) */
13.   #define	AT_BITE		2		/* bite */
14.   #define	AT_KICK		3		/* kick */
15.   #define	AT_BUTT		4		/* head butt (ex. a unicorn) */
16.   #define	AT_TUCH		5		/* touches */
17.   #define	AT_STNG		6		/* sting */
18.   #define AT_HUGS		7		/* crushing bearhug */
19.   #define	AT_SPIT		10		/* spits substance - ranged */
20.   #define	AT_ENGL		11		/* engulf (swallow or by a cloud) */
21.   #define	AT_BREA		12		/* breath - ranged */
22.   #define	AT_EXPL		13		/* explodes - proximity */
23.   #define	AT_GAZE		14		/* gaze - ranged */
24.   
25.   #define	AT_WEAP		254		/* uses weapon */
26.   #define	AT_MAGC		255		/* uses magic spell(s) */
27.   
28.   /*	Add new damage types below.
29.    *
30.    *	Note that 1-10 correspond to the types of attack used in buzz().
31.    *	Please don't disturb the order unless you rewrite the buzz() code.
32.    */
33.   #define	AD_PHYS		0		/* ordinary physical */
34.   #define	AD_MAGM		1		/* magic missiles */
35.   #define	AD_FIRE		2		/* fire damage */
36.   #define	AD_SLEE		3		/* sleep ray */
37.   #define	AD_COLD		4		/* frost damage */
38.   #define	AD_DISN		5		/* disintegration (death ray) */
39.   #define	AD_ELEC		6		/* shock damage */
40.   #define	AD_DRST		7		/* drains str (poison) */
41.   #define	AD_ACID		8		/* acid damage */
42.   #define	AD_SPC1		9		/* for extension of buzz() */
43.   #define	AD_SPC2		10		/* for extension of buzz() */
44.   #define	AD_BLND		11		/* blinds (glowing eye) */
45.   #define	AD_STUN		12		/* stuns */
46.   #define	AD_SLOW		13		/* slows */
47.   #define	AD_PLYS		14		/* paralyses */
48.   #define	AD_DRLI		15		/* drains life levels (Vampire) */
49.   #define	AD_DREN		16		/* drains magic energy */
50.   #define	AD_LEGS		17		/* damages legs (xan) */
51.   #define	AD_STON		18		/* petrifies (Medusa, Cockatrice) */
52.   #define	AD_STCK		19		/* sticks to you (Mimic) */
53.   #define	AD_SGLD		20		/* steals gold (Leppie) */
54.   #define	AD_SITM		21		/* steals item (Nymphs) */
55.   #define AD_SEDU		22		/* seduces & steals multiple items */
56.   #define	AD_TLPT		23		/* teleports you (Quantum Mech.) */
57.   #define	AD_RUST		24		/* rusts armour (Rust Monster)*/
58.   #define	AD_CONF		25		/* confuses (Umber Hulk) */
59.   #define AD_DGST		26		/* digests opponent (trapper, etc.) */
60.   #define AD_HEAL		27		/* heals opponent's wounds (nurse) */
61.   #define AD_WRAP		28		/* special "stick" for eels */
62.   #define	AD_WERE		29		/* confers lycanthropy */
63.   #define AD_DRDX		30		/* drains dexterity (Quasit) */
64.   #define AD_DRCO		31		/* drains constitution */
65.   #define AD_DISE		32		/* confers diseases */
66.   #define AD_DCAY		33		/* decays organics (Brown pudding) */
67.   #define AD_SSEX		34		/* Succubus seduction (extended) */
68.   					/* If no SEDUCE then same as AD_SEDU */
69.   
70.   #define	AD_CLRC		240		/* random clerical spell */
71.   #define	AD_SPEL		241		/* random magic spell */
72.   
73.   #define AD_SAMU		252		/* hits, may steal Amulet (Wizard) */
74.   #define AD_CURS		253		/* random curse (ex. gremlin) */
75.   #define AD_CUSS		255		/* says nasty things about you */
76.   
77.   #endif /* MONATTK_H /**/