1 | /* |
1 | /* |
2 | * static char *rcsid_spells_h = |
2 | * static char *rcsid_spells_h = |
3 | * "$Id: spells.h,v 1.1 2006/02/03 07:12:51 root Exp $"; |
3 | * "$Id: spells.h,v 1.2 2006/08/12 14:12:03 elmex 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 | |
… | |
… | |
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 |
58 | extern char *spellpathnames[NRSPELLPATHS]; |
58 | extern 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 |
61 | * when printing out the spells the player knows. |
61 | * when printing out the spells the player knows. |
62 | */ |
62 | */ |
63 | #define NROFREALSPELLS 1024 |
63 | #define NROFREALSPELLS 1024 |
… | |
… | |
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 */ |
132 | |
133 | |
133 | /* Potion subtypes */ |
134 | /* Potion subtypes */ |
134 | #define POT_SPELL 1 |
135 | #define POT_SPELL 1 |
135 | #define POT_DUST 2 |
136 | #define POT_DUST 2 |
136 | #define POT_FIGURINE 3 |
137 | #define POT_FIGURINE 3 |