version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.66 2006/05/26 22:29:07 akirschbaum Exp $"; | | * "$Id: skill_util.c,v 1.67 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copryight (C) 2002 Mark Wedel & Crossfire Development Team | | Copryight (C) 2006 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
buf[40] = 0; | | buf[40] = 0; |
| | |
if (settings.permanent_exp_ratio) { | | if (settings.permanent_exp_ratio) { |
#ifdef WIN32 | | sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%" FMT64 "/%" FMT64 "/%d%%)", |
sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%I64d/%I64d/%d%%)", | | |
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->perm_exp,tmp->stats.exp)); | | clipped_percent(tmp->perm_exp,tmp->stats.exp)); |
#else | | |
sprintf(skills[num_skills_found++],"%slvl:%3d (xp:%lld/%lld/%d%%)", | | |
buf,tmp->level, | | |
tmp->stats.exp, | | |
level_exp(tmp->level+1, op->expmul), | | |
clipped_percent(tmp->perm_exp,tmp->stats.exp)); | | |
#endif | | |
} else { | | } else { |
#ifdef WIN32 | | sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%" FMT64 "/%" FMT64 ")", |
sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%I64d/%I64d)", | | |
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)); |
#else | | |
sprintf(skills[num_skills_found++], "%slvl:%3d (xp:%lld/%lld)", | | |
buf,tmp->level, | | |
tmp->stats.exp, | | |
level_exp(tmp->level+1, op->expmul)); | | |
#endif | | |
} | | } |
/* I don't know why some characters get a bunch of skills, but | | /* I don't know why some characters get a bunch of skills, but |
* it sometimes happens (maybe a leftover from bugier earlier code | | * it sometimes happens (maybe a leftover from bugier earlier code |