version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_disease_c = | | * static char *rcsid_disease_c = |
* "$Id: disease.c,v 1.31 2005/10/01 18:17:19 ryo_saeba Exp $"; | | * "$Id: disease.c,v 1.32 2005/10/07 19:38:49 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
return 0; | | return 0; |
} | | } |
| | |
if(symptom->stats.dam > 0) hit_player(victim,symptom->stats.dam,symptom,symptom->attacktype); | | if(symptom->stats.dam > 0) hit_player(victim,symptom->stats.dam,symptom,symptom->attacktype,1); |
else hit_player(victim,MAX(1,-victim->stats.maxhp * symptom->stats.dam / 100.0),symptom,symptom->attacktype); | | else hit_player(victim,MAX(1,-victim->stats.maxhp * symptom->stats.dam / 100.0),symptom,symptom->attacktype,1); |
| | |
if(symptom->stats.maxsp>0) sp_reduce = symptom->stats.maxsp; | | if(symptom->stats.maxsp>0) sp_reduce = symptom->stats.maxsp; |
else sp_reduce = MAX(1,victim->stats.maxsp * symptom->stats.maxsp/100.0); | | else sp_reduce = MAX(1,victim->stats.maxsp * symptom->stats.maxsp/100.0); |