1 | /* |
1 | /* |
2 | * static char *rcsid_skills_h = |
2 | * static char *rcsid_skills_h = |
3 | * "$Id: skills.h,v 1.6 2006/08/13 17:16:02 elmex Exp $"; |
3 | * "$Id: skills.h,v 1.7 2006/09/01 17:16:47 elmex 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 skill |
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. |