… | |
… | |
779 | sprintf (buf, "%s%s", &tmp->name, periods); |
779 | sprintf (buf, "%s%s", &tmp->name, periods); |
780 | buf[40] = 0; |
780 | buf[40] = 0; |
781 | |
781 | |
782 | if (settings.permanent_exp_ratio) |
782 | if (settings.permanent_exp_ratio) |
783 | { |
783 | { |
784 | sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" I64_PFd "/%" I64_PFd "/%d%%)", |
784 | sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" PRId64 "/%" PRId64 "/%d%%)", |
785 | buf, tmp->level, |
785 | buf, tmp->level, tmp->stats.exp, |
786 | (long long) tmp->stats.exp, |
|
|
787 | (long long) level_exp (tmp->level + 1, op->expmul), clipped_percent (tmp->perm_exp, tmp->stats.exp)); |
786 | level_exp (tmp->level + 1, op->expmul), clipped_percent (tmp->perm_exp, tmp->stats.exp)); |
788 | } |
787 | } |
789 | else |
788 | else |
790 | { |
789 | { |
791 | sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" I64_PFd "/%" I64_PFd ")", |
790 | sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" PRId64 "/%" PRId64 ")", |
792 | buf, tmp->level, (long long) tmp->stats.exp, (long long) level_exp (tmp->level + 1, op->expmul)); |
791 | buf, tmp->level, tmp->stats.exp, level_exp (tmp->level + 1, op->expmul)); |
793 | } |
792 | } |
794 | /* I don't know why some characters get a bunch of skills, but |
793 | /* I don't know why some characters get a bunch of skills, but |
795 | * it sometimes happens (maybe a leftover from bugier earlier code |
794 | * it sometimes happens (maybe a leftover from bugier earlier code |
796 | * and those character are still about). In any case, lets handle |
795 | * and those character are still about). In any case, lets handle |
797 | * it so it doesn't crash the server - otherwise, one character may |
796 | * it so it doesn't crash the server - otherwise, one character may |