Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_material_h = 00003 * "$Id: material.h 9313 2008-06-13 12:05:26Z anmaster $"; 00004 */ 00005 00006 /* 00007 CrossFire, A Multiplayer game for X-windows 00008 00009 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 00010 Copyright (C) 1992 Frank Tore Johansen 00011 00012 This program is free software; you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation; either version 2 of the License, or 00015 (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 00026 The authors can be reached via e-mail at crossfire-devel@real-time.com 00027 */ 00028 00034 /* #defines are needed by living.h, so they must be loaded early */ 00035 #ifndef MATERIAL_H 00036 #define MATERIAL_H 00037 00042 #define NROFMATERIALS 13 00043 00044 #define M_PAPER 1 00045 #define M_IRON 2 00046 #define M_GLASS 4 00047 #define M_LEATHER 8 00048 #define M_WOOD 16 00049 #define M_ORGANIC 32 00050 #define M_STONE 64 00051 #define M_CLOTH 128 00052 #define M_ADAMANT 256 00053 #define M_LIQUID 512 00054 #define M_SOFT_METAL 1024 00055 #define M_BONE 2048 00056 #define M_ICE 4096 00057 #define M_SPECIAL 8192 /* when displaying names, don't show the 00058 materialname */ 00059 00062 typedef struct _materialtype { 00063 const char *name; 00064 const char *description; 00065 int material; 00066 sint8 save[NROFATTACKS]; 00067 sint8 mod[NROFATTACKS]; 00068 sint8 chance; 00069 sint8 difficulty; 00070 sint8 magic; 00071 sint8 damage; 00072 sint8 wc; 00073 sint8 ac; 00074 sint8 sp; 00075 int weight; 00076 int value; 00077 struct _materialtype *next; 00078 } materialtype_t; 00079 00080 EXTERN materialtype_t *materialt; 00081 00082 #endif /* MATERIAL_H */