version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.9 2000/06/08 16:08:41 jec Exp $"; | | * "$Id: gods.c,v 1.10 2000/10/24 23:01:19 mids Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
/* add the gods attacktype*/ | | /* add the gods attacktype*/ |
if(!(RANDOM()%2)&&!(weapon->attacktype&god->attacktype)) { | | if(!(RANDOM()%2)&&!(weapon->attacktype&god->attacktype)) { |
| | char buf[MAX_BUF]; |
new_draw_info(NDI_UNIQUE,0,op,"Your weapon suddenly glows!"); | | new_draw_info(NDI_UNIQUE,0,op,"Your weapon suddenly glows!"); |
if (weapon->attacktype==0) | | if (weapon->attacktype==0) |
weapon->attacktype = AT_PHYSICAL; | | weapon->attacktype = AT_PHYSICAL; |
weapon->attacktype=weapon->attacktype|god->attacktype; | | weapon->attacktype=weapon->attacktype|god->attacktype; |
| | |
| | if(!weapon->title) { |
| | new_draw_info_format(NDI_UNIQUE,0,op, |
| | weapon->name); |
| | sprintf(buf,"of %s",god->name); |
| | weapon->title=add_string(buf); |
| | if(op->type==PLAYER) |
| | esrv_update_item(UPD_NAME, op, weapon); |
| | } |
return; | | return; |
} | | } |
| | |