ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/skill_util.C
(Generate patch)

Comparing deliantra/server/server/skill_util.C (file contents):
Revision 1.10 by root, Tue Sep 12 00:26:16 2006 UTC vs.
Revision 1.11 by root, Tue Sep 12 00:53:57 2006 UTC

1 1
2/* 2/*
3 * static char *rcsid_skill_util_c = 3 * static char *rcsid_skill_util_c =
4 * "$Id: skill_util.C,v 1.10 2006/09/12 00:26:16 root Exp $"; 4 * "$Id: skill_util.C,v 1.11 2006/09/12 00:53:57 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
42 */ 42 */
43 43
44/* define the following for skills utility debuging */ 44/* define the following for skills utility debuging */
45 45
46/* #define SKILL_UTIL_DEBUG */ 46/* #define SKILL_UTIL_DEBUG */
47
48#define WANT_UNARMED_SKILLS
49 47
50#include <global.h> 48#include <global.h>
51#include <object.h> 49#include <object.h>
52#ifndef __CEXTRACT__ 50#ifndef __CEXTRACT__
53# include <sproto.h> 51# include <sproto.h>
54#endif 52#endif
55#include <living.h> /* for defs of STR,CON,DEX,etc. -b.t. */ 53#include <living.h> /* for defs of STR,CON,DEX,etc. -b.t. */
56#include <spells.h> 54#include <spells.h>
55
56/* Table of unarmed attack skills. Terminated by -1. This
57 * is also the list that we should try to use skills when
58 * automatically applying one for the player.
59 * Note it is hardcoded in the skill_util.c that dragons always
60 * want clawing if possible.
61 */
62static uint8 unarmed_skills[] = {
63 SK_KARATE,
64 SK_CLAWING,
65 SK_FLAME_TOUCH,
66 SK_SPARK_TOUCH,
67 SK_SHIVER,
68 SK_ACID_SPLASH,
69 SK_POISON_NAIL,
70 SK_PUNCHING,
71 (uint8)-1
72};
57 73
58static int attack_hth (object *pl, int dir, const char *string, object *skill); 74static int attack_hth (object *pl, int dir, const char *string, object *skill);
59static int attack_melee_weapon (object *op, int dir, const char *string, object *skill); 75static int attack_melee_weapon (object *op, int dir, const char *string, object *skill);
60 76
61/* init_skills basically just sets up the skill_names table 77/* init_skills basically just sets up the skill_names table

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines