version 1.32 | | version 1.33 |
---|
| | |
/* | | /* |
* static char *rcsid_disease_c = | | * static char *rcsid_disease_c = |
* "$Id: disease.c,v 1.32 2005/10/07 19:38:49 akirschbaum Exp $"; | | * "$Id: disease.c,v 1.33 2005/10/09 07:34:16 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(strstr(disease->race, "*") && !QUERY_FLAG(victim, FLAG_UNDEAD)) | | if(strstr(disease->race, "*") && !QUERY_FLAG(victim, FLAG_UNDEAD)) |
return 1; | | return 1; |
| | |
if(strstr(disease->race, "undead") && QUERY_FLAG(victim, FLAG_UNDEAD)) | | if((disease->race == undead_name) && QUERY_FLAG(victim, FLAG_UNDEAD)) |
return 1; | | return 1; |
| | |
if((victim->race && strstr(disease->race, victim->race)) || | | if((victim->race && strstr(disease->race, victim->race)) || |
| | |
return 0; /*Immune! */ | | return 0; /*Immune! */ |
} | | } |
| | |
new_symptom = get_archetype("symptom"); | | new_symptom = get_archetype(ARCH_SYMPTOM); |
| | |
/* Something special done with dam. We want diseases to be more | | /* Something special done with dam. We want diseases to be more |
* random in what they'll kill, so we'll make the damage they | | * random in what they'll kill, so we'll make the damage they |