ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/spells.h
(Generate patch)

Comparing deliantra/server/include/spells.h (file contents):
Revision 1.2 by elmex, Sat Aug 12 14:12:03 2006 UTC vs.
Revision 1.4 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * static char *rcsid_spells_h = 2 * static char *rcsid_spells_h =
3 * "$Id: spells.h,v 1.2 2006/08/12 14:12:03 elmex Exp $"; 3 * "$Id: spells.h,v 1.4 2006/08/29 08:01:36 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
50#define PATH_WOUNDING 0x00020000 /* 131072 */ 50#define PATH_WOUNDING 0x00020000 /* 131072 */
51#define PATH_DEATH 0x00040000 /* 262144 */ 51#define PATH_DEATH 0x00040000 /* 262144 */
52#define PATH_LIGHT 0x00080000 /* 524288 */ 52#define PATH_LIGHT 0x00080000 /* 524288 */
53 53
54#define PATH_SP_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ 54#define PATH_SP_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \
55 ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) 55 ((op->path_repelled & spell->path_attuned) ? 1.25 : 1))
56 56
57#define NRSPELLPATHS 20 57#define NRSPELLPATHS 20
58extern const char* const spellpathnames[NRSPELLPATHS]; 58extern const char* const spellpathnames[NRSPELLPATHS];
59 59
60/* The only place this is really used is to allocate an array 60/* The only place this is really used is to allocate an array
127#define SP_FAERY_FIRE 44 127#define SP_FAERY_FIRE 44
128#define SP_CAUSE_DISEASE 45 128#define SP_CAUSE_DISEASE 45
129#define SP_AURA 46 129#define SP_AURA 46
130#define SP_TOWN_PORTAL 47 130#define SP_TOWN_PORTAL 47
131#define SP_PARTY_SPELL 48 131#define SP_PARTY_SPELL 48
132#define SP_PERL 49 /* a perl/plugin handled spell */
133 132
134/* Potion subtypes */ 133/* Potion subtypes */
135#define POT_SPELL 1 134#define POT_SPELL 1
136#define POT_DUST 2 135#define POT_DUST 2
137#define POT_FIGURINE 3 136#define POT_FIGURINE 3
140/* This is for the force subtypes */ 139/* This is for the force subtypes */
141#define FORCE_CONFUSION 1 140#define FORCE_CONFUSION 1
142#define FORCE_CHANGE_ABILITY 2 141#define FORCE_CHANGE_ABILITY 2
143 142
144#define PATH_TIME_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ 143#define PATH_TIME_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \
145 ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) 144 ((op->path_repelled & spell->path_attuned) ? 1.25 : 1))
146 145
147/* These are some hard coded values that are used within the code 146/* These are some hard coded values that are used within the code
148 * for spell failure effects or pieces of spells. Rather 147 * for spell failure effects or pieces of spells. Rather
149 * then hardcode the names, use defines so it is easier to 148 * then hardcode the names, use defines so it is easier to
150 * update if necessary. 149 * update if necessary.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines