|
Atrinik Server 2.5
|
00001 /************************************************************************ 00002 * Atrinik, a Multiplayer Online Role Playing Game * 00003 * * 00004 * Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team * 00005 * * 00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game) * 00007 * and Crossfire (Multiplayer game for X-windows). * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00022 * * 00023 * The author can be reached at admin@atrinik.org * 00024 ************************************************************************/ 00025 00031 #ifndef LIVING_H 00032 #define LIVING_H 00033 00038 #define STR 0 00039 00040 #define DEX 1 00041 00042 #define CON 2 00043 00044 #define WIS 3 00045 00046 #define CHA 4 00047 00048 #define INT 5 00049 00050 #define POW 6 00051 00052 #define NUM_STATS 7 00053 00055 /* Changed from NO_STAT to NO_STAT_VAL to fix conflict on 00056 * AIX systems */ 00057 00058 /* needed by skills code -b.t. */ 00059 #define NO_STAT_VAL 99 00060 00061 extern int dam_bonus[MAX_STAT + 1]; 00062 extern int thaco_bonus[MAX_STAT + 1]; 00063 extern float cha_bonus[MAX_STAT + 1]; 00064 extern float speed_bonus[MAX_STAT + 1]; 00065 extern uint32 weight_limit[MAX_STAT + 1]; 00066 extern int learn_spell[MAX_STAT + 1]; 00067 extern int savethrow[MAXLEVEL + 1]; 00068 extern const char *const restore_msg[NUM_STATS]; 00069 extern const char *const lose_msg[NUM_STATS]; 00070 extern const char *const statname[NUM_STATS]; 00071 extern const char *const short_stat_name[NUM_STATS]; 00072 00073 extern char *spellpathnames[NRSPELLPATHS]; 00074 00077 #define LEVEL_DAMAGE(level) (float) ((level) ? 0.75f + (level) * 0.25f : 1.0f) 00078 00082 typedef struct liv 00083 { 00085 sint64 exp; 00086 00088 sint32 hp; 00089 00091 sint32 maxhp; 00092 00094 sint16 sp; 00095 00097 sint16 maxsp; 00098 00100 sint16 grace; 00101 00103 sint16 maxgrace; 00104 00106 sint16 food; 00107 00109 sint16 dam; 00110 00112 sint16 wc; 00113 00115 sint16 ac; 00116 00121 uint8 wc_range; 00122 00124 sint8 Str; 00125 00127 sint8 Dex; 00128 00130 sint8 Con; 00131 00133 sint8 Wis; 00134 00136 sint8 Cha; 00137 00139 sint8 Int; 00140 00142 sint8 Pow; 00143 } living; 00144 00145 #endif
1.7.4