version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.47 2004/01/16 21:17:02 ryo_saeba Exp $"; | | * "$Id: skills.c,v 1.48 2004/02/17 00:22:24 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
copy_object(chosen_spell, tmp); | | copy_object(chosen_spell, tmp); |
insert_ob_in_ob(tmp, newscroll); | | insert_ob_in_ob(tmp, newscroll); |
| | |
| | /* Same code as from treasure.c - so they can better merge. |
| | * if players want to sell them, so be it. |
| | */ |
| | newscroll->value = newscroll->arch->clone.value * newscroll->inv->value * |
| | (newscroll->level +50) / (newscroll->inv->level + 50); |
| | 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) |
newscroll=insert_ob_in_ob(newscroll,pl); | | newscroll=insert_ob_in_ob(newscroll,pl); |