1 | /* |
1 | /* |
2 | * static char *rcsid_skills_h = |
2 | * static char *rcsid_skills_h = |
3 | * "$Id: skills.h,v 1.3 2006/05/01 12:33:05 pippijn Exp $"; |
3 | * "$Id: skills.h,v 1.5 2006/05/17 21:35:43 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 | |
… | |
… | |
70 | #define SK_SUMMONING 33 |
70 | #define SK_SUMMONING 33 |
71 | #define SK_PYROMANCY 34 |
71 | #define SK_PYROMANCY 34 |
72 | #define SK_EVOCATION 35 |
72 | #define SK_EVOCATION 35 |
73 | #define SK_SORCERY 36 |
73 | #define SK_SORCERY 36 |
74 | #define SK_TWO_HANDED_WEAPON 37 |
74 | #define SK_TWO_HANDED_WEAPON 37 |
75 | #define SK_SPARK 38 |
75 | #define SK_SPARK_TOUCH 38 |
76 | #define SK_SHIVER 39 |
76 | #define SK_SHIVER 39 |
77 | #define SK_ACID_SPLASH 40 |
77 | #define SK_ACID_SPLASH 40 |
78 | #define SK_POISON_NAIL 41 |
78 | #define SK_POISON_NAIL 41 |
79 | |
79 | |
80 | /* This is the highest number skill in the table +1 |
80 | /* This is the highest number skill in the table +1 |
… | |
… | |
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 | |
96 | |
97 | #define USING_SKILL(op, skill) ((op)->chosen_skill && (op)->chosen_skill->subtype == skill) |
97 | #define USING_SKILL(op, skill) ((op)->chosen_skill && (op)->chosen_skill->subtype == skill) |
98 | |
98 | |
99 | /* This macro is used in fix_player() to define if this is a sill |
99 | /* 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. |
100 | * that should be used to calculate wc's and the like. |
101 | */ |
101 | */ |
102 | #define IS_COMBAT_SKILL(num) \ |
102 | #define IS_COMBAT_SKILL(num) \ |
103 | ((num==SK_PUNCHING) || (num==SK_FLAME_TOUCH) || (num==SK_KARATE) || \ |
103 | ((num==SK_PUNCHING) || (num==SK_FLAME_TOUCH) || (num==SK_KARATE) || \ |
104 | (num==SK_ONE_HANDED_WEAPON) || (num==SK_MISSILE_WEAPON) || \ |
104 | (num==SK_ONE_HANDED_WEAPON) || (num==SK_MISSILE_WEAPON) || \ |