version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.6 1999/11/05 03:25:28 cater Exp $"; | | * "$Id: attack.c,v 1.7 2000/04/05 04:40:52 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | Copyright (C) 2000 Mark Wedel |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
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 frankj@ifi.uio.no. | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
#include <global.h> | | #include <global.h> |
#include <living.h> | | #include <living.h> |
| | |
} else if(dam<20) { | | } else if(dam<20) { |
strcpy(buf1,"crush"); | | strcpy(buf1,"crush"); |
strcpy(buf2," very hard"); | | strcpy(buf2," very hard"); |
} else if(dam<25) { | | } else if(dam<27) { |
strcpy(buf1,"smash"); | | strcpy(buf1,"smash"); |
strcpy(buf2," with a bonecrunching sound"); | | strcpy(buf2," with a bonecrunching sound"); |
} else if(dam<35) { | | } else if(dam<40) { |
| | strcpy(buf1,"shred"); |
| | strcpy(buf2," to pieces"); |
| | } else if(dam<70) { |
| | strcpy(buf1,"beat"); |
| | strcpy(buf2," to a pulp"); |
| | } else if(dam<130) { |
strcpy(buf1,"grind"); | | strcpy(buf1,"grind"); |
strcpy(buf2," to dust"); | | strcpy(buf2," to dust"); |
| | } else if(dam<250) { |
| | strcpy(buf1,"atomize"); |
| | buf2[0]='\0'; |
} else { | | } else { |
strcpy(buf1,"shred"); | | strcpy(buf1,"annihilate"); |
strcpy(buf2," to pieces"); | | buf2[0]='\0'; |
} | | } |
messages.msg1=buf1,messages.msg2=buf2; | | messages.msg1=buf1,messages.msg2=buf2; |
return &messages; | | return &messages; |