version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.25 2002/09/28 07:19:40 mwedel Exp $"; | | * "$Id: c_wiz.c,v 1.26 2002/10/12 05:34:29 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if((skill = pl->ob->chosen_skill) && ((exp_ob = pl->ob->chosen_skill->exp_obj) | | if((skill = pl->ob->chosen_skill) && ((exp_ob = pl->ob->chosen_skill->exp_obj) |
|| link_player_skill(pl->ob, skill))) { | | || link_player_skill(pl->ob, skill))) { |
i = check_dm_add_exp_to_obj(exp_ob,i); | | i = check_exp_adjust(exp_ob,i); |
exp_ob->stats.exp += i; | | exp_ob->stats.exp += i; |
| | player_lvl_adj(pl->ob, exp_ob); |
} else { | | } else { |
new_draw_info(NDI_UNIQUE, 0,op,"Can't find needed experience object."); | | new_draw_info(NDI_UNIQUE, 0,op,"Can't find needed experience object."); |
new_draw_info(NDI_UNIQUE, 0,op,"Player has no associated skill readied."); | | new_draw_info(NDI_UNIQUE, 0,op,"Player has no associated skill readied."); |
return 1; | | return 1; |
} | | } |
pl->ob->stats.exp += i; | | pl->ob->stats.exp += i; |
add_exp(pl->ob,0); | | player_lvl_adj(pl->ob, NULL); |
#ifndef REAL_WIZ | | #ifndef REAL_WIZ |
SET_FLAG(pl->ob, FLAG_WAS_WIZ); | | SET_FLAG(pl->ob, FLAG_WAS_WIZ); |
#endif | | #endif |