version 1.72 | | version 1.73 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.72 2006/01/08 16:54:38 akirschbaum Exp $"; | | * "$Id: skills.c,v 1.73 2006/03/14 14:34:19 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
newscroll->stats.exp = newscroll->value/5; | | newscroll->stats.exp = newscroll->value/5; |
| | |
/* wait until finished manipulating the scroll before inserting it */ | | /* wait until finished manipulating the scroll before inserting it */ |
if (newscroll != scroll) | | if (newscroll == scroll) |
| | { |
| | /* Remove to correctly merge with other items which may exist in inventory */ |
| | remove_ob(newscroll); |
| | esrv_del_item(pl->contr,newscroll->count); |
| | } |
newscroll=insert_ob_in_ob(newscroll,pl); | | newscroll=insert_ob_in_ob(newscroll,pl); |
esrv_send_item(pl, newscroll); | | esrv_send_item(pl, newscroll); |
success = calc_skill_exp(pl,newscroll, skill); | | success = calc_skill_exp(pl,newscroll, skill); |