version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_disease_c = | | * static char *rcsid_disease_c = |
* "$Id: disease.c,v 1.4 2000/05/26 09:50:49 jec Exp $"; | | * "$Id: disease.c,v 1.5 2000/06/04 21:18:31 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
new_disease->stats.food=disease->stats.maxgrace; | | new_disease->stats.food=disease->stats.maxgrace; |
new_disease->value=disease->stats.maxhp; | | new_disease->value=disease->stats.maxhp; |
set_owner(new_disease,disease->owner); | | set_owner(new_disease,disease->owner); |
| | /* Unfortunately, set_owner does the wrong thing to the skills pointers |
| | resulting in exp going into the owners *current* chosen skill. */ |
| | new_disease->chosen_skill = disease->chosen_skill; |
| | new_disease->exp_obj = disease->exp_obj; |
| | |
insert_ob_in_ob(new_disease,victim); | | insert_ob_in_ob(new_disease,victim); |
CLEAR_FLAG(new_disease,FLAG_NO_PASS); | | CLEAR_FLAG(new_disease,FLAG_NO_PASS); |
if(disease->owner && disease->owner->type==PLAYER) { | | if(disease->owner && disease->owner->type==PLAYER) { |
| | |
new_symptom->other_arch = disease->other_arch; | | new_symptom->other_arch = disease->other_arch; |
| | |
set_owner(new_symptom,disease->owner); | | set_owner(new_symptom,disease->owner); |
| | /* Unfortunately, set_owner does the wrong thing to the skills pointers |
| | resulting in exp going into the owners *current* chosen skill. */ |
| | new_symptom->chosen_skill = disease->chosen_skill; |
| | new_symptom->exp_obj = disease->exp_obj; |
| | |
| | |
CLEAR_FLAG(new_symptom,FLAG_NO_PASS); | | CLEAR_FLAG(new_symptom,FLAG_NO_PASS); |
insert_ob_in_ob(new_symptom,victim); | | insert_ob_in_ob(new_symptom,victim); |
return 1; | | return 1; |