version 1.61 | | version 1.62 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.61 2005/07/27 17:54:54 ryo_saeba Exp $"; | | * "$Id: skills.c,v 1.62 2005/08/12 08:18:59 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
* ordinary 'books' (anything that is type BOOK). b.t. | | * ordinary 'books' (anything that is type BOOK). b.t. |
*/ | | */ |
| | |
static int write_note(object *pl, object *item, char *msg, object *skill) { | | static int write_note(object *pl, object *item, const char *msg, object *skill) { |
char buf[BOOK_BUF]; | | char buf[BOOK_BUF]; |
object *newBook = NULL; | | object *newBook = NULL; |
event *evt; | | event *evt; |
| | |
CFP.Value[1] = pl; | | CFP.Value[1] = pl; |
CFP.Value[2] = item; | | CFP.Value[2] = item; |
CFP.Value[3] = NULL; | | CFP.Value[3] = NULL; |
CFP.Value[4] = msg; | | CFP.Value[4] = ( void* )msg; |
CFP.Value[5] = &n; | | CFP.Value[5] = &n; |
CFP.Value[6] = &m; | | CFP.Value[6] = &m; |
CFP.Value[7] = &m; | | CFP.Value[7] = &m; |
| | |
} | | } |
| | |
/* write_on_item() - wrapper for write_note and write_scroll */ | | /* write_on_item() - wrapper for write_note and write_scroll */ |
int write_on_item (object *pl,char *params, object *skill) { | | int write_on_item (object *pl,const char *params, object *skill) { |
object *item; | | object *item; |
char *string=params; | | const char *string=params; |
int msgtype; | | int msgtype; |
archetype *skat; | | archetype *skat; |
| | |
| | |
* 'throwable' (ie not applied cursed obj, worn, etc). | | * 'throwable' (ie not applied cursed obj, worn, etc). |
*/ | | */ |
| | |
static object *find_throw_ob( object *op, char *request ) { | | static object *find_throw_ob( object *op, const char *request ) { |
object *tmp; | | object *tmp; |
| | |
if(!op) { /* safety */ | | if(!op) { /* safety */ |
| | |
return 1; | | return 1; |
} | | } |
| | |
int skill_throw (object *op, object *part, int dir, char *params, object *skill) { | | int skill_throw (object *op, object *part, int dir, const char *params, object *skill) { |
object *throw_ob; | | object *throw_ob; |
| | |
if(op->type==PLAYER) | | if(op->type==PLAYER) |