--- deliantra/server/include/spells.h 2006/02/03 07:12:51 1.1 +++ deliantra/server/include/spells.h 2007/05/28 21:15:56 1.11 @@ -1,31 +1,27 @@ /* - * static char *rcsid_spells_h = - * "$Id$"; + * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. + * + * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team + * Copyright (©) 2002-2003,2007 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992,2007 Frank Tore Johansen + * + * Crossfire TRT is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * The authors can be reached via e-mail to */ -/* - CrossFire, A Multiplayer game for X-windows - - Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team - Copyright (C) 1992 Frank Tore Johansen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - The authors can be reached via e-mail at crossfire-devel@real-time.com -*/ - #ifndef SPELLS_H #define SPELLS_H @@ -52,10 +48,10 @@ #define PATH_LIGHT 0x00080000 /* 524288 */ #define PATH_SP_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ - ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) + ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) #define NRSPELLPATHS 20 -extern char *spellpathnames[NRSPELLPATHS]; +extern const char* const spellpathnames[NRSPELLPATHS]; /* The only place this is really used is to allocate an array * when printing out the spells the player knows. @@ -72,7 +68,7 @@ #define SPELL_HIGHEST 0x3 /* This is the subtype for the spells. Start at 1 so that - * it is easy to see 0 as an uninitialized value. + * it is easy to see 0 as an uninitialised value. * Note that for some spells, subtype pretty accurately * describes the entire spell (SP_DETECT_MAGIC). But for other, the subtype * may not really say much (eg, SP_BOLT), and it is other @@ -141,7 +137,7 @@ #define FORCE_CHANGE_ABILITY 2 #define PATH_TIME_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ - ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) + ((op->path_repelled & spell->path_attuned) ? 1.25 : 1)) /* These are some hard coded values that are used within the code * for spell failure effects or pieces of spells. Rather