version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_disease_c = | | * static char *rcsid_disease_c = |
* "$Id: disease.c,v 1.10 2000/11/14 08:37:11 peterm Exp $"; | | * "$Id: disease.c,v 1.11 2000/11/17 05:07:49 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
else { /* for diseases which are passed by hitting, set owner and praying skill*/ | | else { /* for diseases which are passed by hitting, set owner and praying skill*/ |
if(disease->env && disease->env->type==PLAYER) { | | if(disease->env && disease->env->type==PLAYER) { |
object *player = disease->env; | | object *player = disease->env; |
set_owner(new_disease,player); | | |
new_disease->chosen_skill = find_skill(player,SK_PRAYING); | | new_disease->chosen_skill = find_skill(player,SK_PRAYING); |
| | |
| | /* Not all players have praying. A side effect here is that |
| | * players can infect others with diseases they get from traps, |
| | * but that is not likely a big deal. |
| | */ |
| | if (new_disease->chosen_skill) { |
| | set_owner(new_disease,player); |
new_disease->exp_obj = new_disease->chosen_skill->exp_obj; | | new_disease->exp_obj = new_disease->chosen_skill->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); |