version 1.74 | | version 1.75 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.74 2006/05/05 09:26:35 ryo_saeba Exp $"; | | * "$Id: skills.c,v 1.75 2006/06/29 06:09:23 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(trap_disarm(op,tmp2,1, skill) && (!tmp2->owner || tmp2->owner->type!=PLAYER)) { | | if(trap_disarm(op,tmp2,1, skill) && (!tmp2->owner || tmp2->owner->type!=PLAYER)) { |
tmp->stats.exp = tmp->stats.Cha * tmp->level; | | tmp->stats.exp = tmp->stats.Cha * tmp->level; |
success += calc_skill_exp(op,tmp2, skill); | | success += calc_skill_exp(op,tmp2, skill); |
| | } else { |
| | /* Can't continue to disarm after failure */ |
| | return success; |
} | | } |
} | | } |
} | | } |
| | |
if (trap_disarm(op,tmp,1,skill) && (!tmp->owner || tmp->owner->type!=PLAYER)) { | | if (trap_disarm(op,tmp,1,skill) && (!tmp->owner || tmp->owner->type!=PLAYER)) { |
tmp->stats.exp = tmp->stats.Cha * tmp->level; | | tmp->stats.exp = tmp->stats.Cha * tmp->level; |
success += calc_skill_exp(op,tmp,skill); | | success += calc_skill_exp(op,tmp,skill); |
| | } else { |
| | /* Can't continue to disarm after failure */ |
| | return success; |
} | | } |
} | | } |
} | | } |