version 1.62 | | version 1.63 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.62 2001/12/16 09:06:15 darth_bob Exp $"; | | * "$Id: attack.c,v 1.63 2001/12/17 04:15:56 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to mwedel@scruz.net | | The authors can be reached via e-mail to crossfire-devel@real-time.com |
*/ | | */ |
#include <global.h> | | #include <global.h> |
#include <living.h> | | #include <living.h> |
| | |
objects */ | | objects */ |
if(rndm(0, dam+4) > | | if(rndm(0, dam+4) > |
random_roll(0, 39, op, PREFER_HIGH)+2*tmp->magic) { | | random_roll(0, 39, op, PREFER_HIGH)+2*tmp->magic) { |
if(op->type == PLAYER) { | | if(op->type == PLAYER) |
/* Make this more visible */ | | /* Make this more visible */ |
new_draw_info_format(NDI_UNIQUE|NDI_RED,0, op, | | new_draw_info_format(NDI_UNIQUE|NDI_RED,0, op, |
"The %s's acid corrodes your %s!", | | "The %s's acid corrodes your %s!", |
| | |
} | | } |
return dam; | | return dam; |
} | | } |
} | | |
| | |
/* GROS: This code comes from hit_player. It has been made external to | | /* GROS: This code comes from hit_player. It has been made external to |
* allow script procedures to "kill" objects in a combat-like fashion. | | * allow script procedures to "kill" objects in a combat-like fashion. |