ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/skills.h
(Generate patch)

Comparing deliantra/server/include/skills.h (file contents):
Revision 1.4 by pippijn, Mon May 1 12:56:17 2006 UTC vs.
Revision 1.8 by root, Sun Sep 3 00:18:41 2006 UTC

1/* 1/*
2 * static char *rcsid_skills_h = 2 * static char *rcsid_skills_h =
3 * "$Id: skills.h,v 1.4 2006/05/01 12:56:17 pippijn Exp $"; 3 * "$Id: skills.h,v 1.8 2006/09/03 00:18:41 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
91 91
92#define SK_EXP_ADD_SKILL 0 /* Give the player the skill */ 92#define SK_EXP_ADD_SKILL 0 /* Give the player the skill */
93#define SK_EXP_TOTAL 1 /* Give player exp to total, no skill */ 93#define SK_EXP_TOTAL 1 /* Give player exp to total, no skill */
94#define SK_EXP_NONE 2 /* Player gets nothing */ 94#define SK_EXP_NONE 2 /* Player gets nothing */
95#define SK_SUBTRACT_SKILL_EXP 3 /* Used when removing exp */ 95#define SK_SUBTRACT_SKILL_EXP 3 /* Used when removing exp */
96#define SK_EXP_SKILL_ONLY 4 /* Player gets only skill experience */
96 97
97#define USING_SKILL(op, skill) ((op)->chosen_skill && (op)->chosen_skill->subtype == skill) 98#define USING_SKILL(op, skill) ((op)->chosen_skill && (op)->chosen_skill->subtype == skill)
98 99
99/* This macro is used in fix_player() to define if this is a sill 100/* This macro is used in fix_player() to define if this is a skill
100 * that should be used to calculate wc's and the like. 101 * that should be used to calculate wc's and the like.
101 */ 102 */
102#define IS_COMBAT_SKILL(num) \ 103#define IS_COMBAT_SKILL(num) \
103 ((num==SK_PUNCHING) || (num==SK_FLAME_TOUCH) || (num==SK_KARATE) || \ 104 ((num==SK_PUNCHING) || (num==SK_FLAME_TOUCH) || (num==SK_KARATE) || \
104 (num==SK_ONE_HANDED_WEAPON) || (num==SK_MISSILE_WEAPON) || \ 105 (num==SK_ONE_HANDED_WEAPON) || (num==SK_MISSILE_WEAPON) || \
116/* Currently only one of these, but put the define here to make 117/* Currently only one of these, but put the define here to make
117 * it easier to expand it in the future */ 118 * it easier to expand it in the future */
118#define IS_GRACE_SKILL(num) \ 119#define IS_GRACE_SKILL(num) \
119 (num==SK_PRAYING) 120 (num==SK_PRAYING)
120 121
121
122
123extern const char *skill_names[NUM_SKILLS]; 122extern shstr skill_names[NUM_SKILLS];
124 123
125#ifdef WANT_UNARMED_SKILLS 124#ifdef WANT_UNARMED_SKILLS
126/* Table of unarmed attack skills. Terminated by -1. This 125/* Table of unarmed attack skills. Terminated by -1. This
127 * is also the list that we should try to use skills when 126 * is also the list that we should try to use skills when
128 * automatically applying one for the player. 127 * automatically applying one for the player.
141SK_PUNCHING, 140SK_PUNCHING,
142SK_SPARK_TOUCH, 141SK_SPARK_TOUCH,
143SK_SHIVER, 142SK_SHIVER,
144SK_ACID_SPLASH, 143SK_ACID_SPLASH,
145SK_POISON_NAIL, 144SK_POISON_NAIL,
146-1 145(uint8)-1
147}; 146};
148 147
149/* Just in case one file includes this more than once */ 148/* Just in case one file includes this more than once */
150#undef WANT_UNARMED_SKILLS 149#undef WANT_UNARMED_SKILLS
151 150

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines