Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_living_h = 00003 * "$Id: living.h 11578 2009-02-23 22:02:27Z lalo $"; 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 #ifndef LIVING_H 00035 #define LIVING_H 00036 00041 #define STR 0 00042 #define DEX 1 00043 #define CON 2 00044 #define WIS 3 00045 #define CHA 4 00046 #define INT 5 00047 #define POW 6 00048 #define NUM_STATS 7 00050 00051 00052 #define MAXLEVEL 115 00053 00054 extern const char *const attacks[NROFATTACKS]; 00055 00056 extern const float cha_bonus[MAX_STAT + 1]; 00057 extern const int dex_bonus[MAX_STAT + 1]; 00058 extern const int thaco_bonus[MAX_STAT + 1]; 00059 extern const int turn_bonus[MAX_STAT + 1]; 00060 extern const int max_carry[MAX_STAT + 1]; 00061 extern const int dam_bonus[MAX_STAT + 1]; 00062 extern const int learn_spell[]; 00063 extern const char *const restore_msg[NUM_STATS]; 00064 extern const char *const statname[NUM_STATS]; 00065 extern const char *const short_stat_name[NUM_STATS]; 00066 extern const char *const lose_msg[NUM_STATS]; 00067 extern const float speed_bonus[MAX_STAT + 1]; 00068 extern const uint32 weight_limit[MAX_STAT + 1]; 00069 extern const int cleric_chance[MAX_STAT + 1]; 00070 extern const int fear_bonus[MAX_STAT + 1]; 00071 00077 typedef struct liv { 00078 sint8 Str, Dex, Con, Wis, Cha, Int, Pow; 00079 sint8 wc, ac; 00080 sint8 luck; 00081 sint16 hp; 00082 sint16 maxhp; 00083 sint16 sp; 00084 sint16 maxsp; 00085 sint16 grace; 00086 sint16 maxgrace; 00087 sint16 dam; 00088 sint64 exp; 00089 sint32 food; 00090 } living; 00091 00092 #endif /* LIVING_H */