version 1.64 | | version 1.65 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.64 2006/03/07 18:46:26 cavesomething Exp $"; | | * "$Id: skill_util.c,v 1.65 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
#include <living.h> /* for defs of STR,CON,DEX,etc. -b.t.*/ | | #include <living.h> /* for defs of STR,CON,DEX,etc. -b.t.*/ |
#include <spells.h> | | #include <spells.h> |
| | |
| | static int attack_hth(object *pl, int dir, const char *string, object *skill); |
| | static int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
| | |
const char *skill_names[NUM_SKILLS]; | | const char *skill_names[NUM_SKILLS]; |
| | |
/* init_skills basically just sets up the skill_names table | | /* init_skills basically just sets up the skill_names table |
| | |
* function skill_attack() we actually attack. | | * function skill_attack() we actually attack. |
*/ | | */ |
| | |
int attack_hth(object *pl, int dir, const char *string, object *skill) { | | static int attack_hth(object *pl, int dir, const char *string, object *skill) { |
object *enemy=NULL,*weapon; | | object *enemy=NULL,*weapon; |
| | |
if(QUERY_FLAG(pl, FLAG_READY_WEAPON)) | | if(QUERY_FLAG(pl, FLAG_READY_WEAPON)) |
| | |
* weapon type. | | * weapon type. |
*/ | | */ |
| | |
int attack_melee_weapon(object *op, int dir, const char *string, object *skill) { | | static int attack_melee_weapon(object *op, int dir, const char *string, object *skill) { |
| | |
if(!QUERY_FLAG(op, FLAG_READY_WEAPON)) { | | if(!QUERY_FLAG(op, FLAG_READY_WEAPON)) { |
if(op->type==PLAYER) | | if(op->type==PLAYER) |