Atrinik Server 2.5
include/skills.h
Go to the documentation of this file.
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 #define NO_SKILL_READY -1
00032 
00034 enum skillnrs
00035 {
00037     SK_ALCHEMY,
00039     SK_LITERACY,
00041     SK_BARGAINING,
00043     SK_CONSTRUCTION,
00044 
00046     SK_BOXING,
00048     SK_KARATE,
00050     SK_THROWING,
00051 
00053     SK_SPELL_CASTING,
00055     SK_USE_MAGIC_ITEM,
00057     SK_PRAYING,
00058 
00060     SK_FIND_TRAPS,
00062     SK_REMOVE_TRAP,
00063 
00065     SK_MISSILE_WEAPON,
00067     SK_XBOW_WEAP,
00069     SK_SLING_WEAP,
00070 
00072     SK_SLASH_WEAP,
00074     SK_CLEAVE_WEAP,
00076     SK_PIERCE_WEAP,
00078     SK_MELEE_WEAPON,
00079 
00081     SK_TWOHANDS,
00083     SK_POLEARMS,
00084 
00086     SK_INSCRIPTION,
00087 
00089     NROFSKILLS
00090 };
00091 
00093 typedef struct skill_struct
00094 {
00096     char *name;
00097 
00099     char *description;
00100 
00102     archetype *at;
00103 
00105     short category;
00106 
00108     short time;
00109 } skill_struct;
00110 
00111 skill_struct skills[NROFSKILLS];