version 1.43 | | version 1.44 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.43 2003/10/27 07:24:14 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.44 2004/01/16 21:17:02 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
buf[40] = 0; | | buf[40] = 0; |
| | |
if (settings.use_permanent_experience) { | | if (settings.use_permanent_experience) { |
| | #ifdef WIN32 |
| | sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%I64d/%I64d/%d%%)", |
| | #else |
sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%lld/%lld/%d%%)", | | sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%lld/%lld/%d%%)", |
| | #endif |
buf,tmp->level, | | buf,tmp->level, |
tmp->stats.exp, | | tmp->stats.exp, |
level_exp(tmp->level+1, op->expmul), | | level_exp(tmp->level+1, op->expmul), |
clipped_percent(tmp->last_heal,tmp->stats.exp)); | | clipped_percent(tmp->last_heal,tmp->stats.exp)); |
} else { | | } else { |
| | #ifdef WIN32 |
| | sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%I64d/%I64d)", |
| | #else |
sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%lld/%lld)", | | sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%lld/%lld)", |
| | #endif |
buf,tmp->level, | | buf,tmp->level, |
tmp->stats.exp, | | tmp->stats.exp, |
level_exp(tmp->level+1, op->expmul)); | | level_exp(tmp->level+1, op->expmul)); |