version 1.30 | | version 1.31 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.30 2002/09/28 07:19:40 mwedel Exp $"; | | * "$Id: skills.c,v 1.31 2002/11/26 08:48:20 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
new_draw_info(NDI_UNIQUE,0,pl,"Trying to cheat now are we?"); | | new_draw_info(NDI_UNIQUE,0,pl,"Trying to cheat now are we?"); |
return 0; | | return 0; |
} | | } |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin book writing (trigger) event */ | | /* GROS: Handle for plugin book writing (trigger) event */ |
if(item->event_hook[EVENT_TRIGGER] != NULL) | | if(item->event_hook[EVENT_TRIGGER] != NULL) |
{ | | { |
| | |
return strlen(msg); | | return strlen(msg); |
} | | } |
} | | } |
#endif | | |
if(!book_overflow(item->msg,msg,BOOK_BUF)) { /* add msg string to book */ | | if(!book_overflow(item->msg,msg,BOOK_BUF)) { /* add msg string to book */ |
if(item->msg) { | | if(item->msg) { |
strcpy(buf,item->msg); | | strcpy(buf,item->msg); |
| | |
/* need to put in a good sound for this */ | | /* need to put in a good sound for this */ |
play_sound_map(op->map, op->x, op->y, SOUND_THROW_OBJ); | | play_sound_map(op->map, op->x, op->y, SOUND_THROW_OBJ); |
#endif | | #endif |
#ifdef PLUGINS | | |
/* GROS - Now we can call the associated script_throw event (if any) */ | | /* GROS - Now we can call the associated script_throw event (if any) */ |
if(throw_ob->event_hook[EVENT_THROW] != NULL) | | if(throw_ob->event_hook[EVENT_THROW] != NULL) |
{ | | { |
| | |
if (findPlugin(throw_ob->event_plugin[k])>=0) | | if (findPlugin(throw_ob->event_plugin[k])>=0) |
((PlugList[findPlugin(throw_ob->event_plugin[k])].eventfunc) (&CFP)); | | ((PlugList[findPlugin(throw_ob->event_plugin[k])].eventfunc) (&CFP)); |
} | | } |
#endif | | |
#ifdef DEBUG_THROW | | #ifdef DEBUG_THROW |
LOG(llevDebug," pause_f=%d \n",pause_f); | | LOG(llevDebug," pause_f=%d \n",pause_f); |
LOG(llevDebug," %s stats: wc=%d dam=%d dist=%d spd=%f break=%d\n", | | LOG(llevDebug," %s stats: wc=%d dam=%d dist=%d spd=%f break=%d\n", |