- if (NKILLK)
- prout("%6d ordinary Klingons destroyed %5d",
- NKILLK, 10*NKILLK);
- if (NKILLC)
- prout("%6d Klingon commanders destroyed %5d",
- NKILLC, 50*NKILLC);
- if (NKILLSC)
- prout("%6d Super-Commander destroyed %5d",
- NKILLSC, 200*NKILLSC);
- if (ithperd)
- prout("%6.2f Klingons per stardate %5d",
- perdate, ithperd);
- if (game.state.starkl)
- prout("%6d stars destroyed by your action %5d",
- game.state.starkl, -5*game.state.starkl);
- if (game.state.nplankl)
- prout("%6d planets destroyed by your action %5d",
- game.state.nplankl, -10*game.state.nplankl);
- if (game.state.basekl)
- prout("%6d bases destroyed by your action %5d",
- game.state.basekl, -100*game.state.basekl);
- if (nhelp)
- prout("%6d calls for help from starbase %5d",
- nhelp, -45*nhelp);
- if (casual)
- prout("%6d casualties incurred %5d",
- casual, -casual);
- if (klship)
- prout("%6d ship(s) lost or destroyed %5d",
- klship, -100*klship);
- if (alive==0)
- prout("Penalty for getting yourself killed -200");
- if (gamewon) {
- proutn("Bonus for winning ");
- switch (skill) {
- case SKILL_NOVICE: proutn("Novice game "); break;
- case SKILL_FAIR: proutn("Fair game "); break;
- case SKILL_GOOD: proutn("Good game "); break;
- case SKILL_EXPERT: proutn("Expert game "); break;
- case SKILL_EMERITUS: proutn("Emeritus game"); break;
+ num = game.inkling - game.state.remkl;
+ score_item(_("%6d ordinary Klingons destroyed %5d"), num, 10 * num);
+ num = game.incom - game.state.remcom;
+ score_item(_("%6d Klingon commanders destroyed %5d"), num, 50 * num);
+ num = game.inscom - game.state.nscrem;
+ score_item(_("%6d Super-Commander destroyed %5d"), num, 200 * num);
+ perdate = ((game.inkling + game.incom + game.inscom) -
+ (game.state.remkl + game.state.remcom + game.state.nscrem))/timused;
+ score_itemf(_("%6.2f Klingons per stardate %5d"), perdate,
+ 500 * perdate + 0.5);
+ score_item(_("%6d stars destroyed by your action %5d"),
+ game.state.starkl, -5*game.state.starkl);
+ score_item(_("%6d planets destroyed by your action %5d"),
+ game.state.nplankl, -10*game.state.nplankl);
+ if (game.options & OPTION_WORLDS)
+ score_item(_("%6d inhabited planets destroyed by your action %5d"),
+ game.state.nworldkl, -300*game.state.nworldkl);
+ score_item(_("%6d bases destroyed by your action %5d"),
+ game.state.basekl, -100*game.state.basekl);
+ score_item(_("%6d calls for help from starbase %5d"),
+ game.nhelp, -45*game.nhelp);
+ score_item(_("%6d casualties incurred %5d"),
+ game.casual, -game.casual);
+ score_item(_("%6d crew abandoned in space %5d"),
+ game.abandoned, -3*game.abandoned);
+ score_item(_("%6d ship(s) lost or destroyed %5d"),
+ klship, -100*klship);
+ if (!game.alive)
+ score_item1(_("Penalty for getting yourself killed %5d"), -200);
+ if (game.gamewon) {
+ proutn(_("Bonus for winning "));
+ switch (game.skill) {
+ case SKILL_NONE: break; /* quiet gcc warning */
+ case SKILL_NOVICE: proutn(_("Novice game ")); break;
+ case SKILL_FAIR: proutn(_("Fair game ")); break;
+ case SKILL_GOOD: proutn(_("Good game ")); break;
+ case SKILL_EXPERT: proutn(_("Expert game ")); break;
+ case SKILL_EMERITUS: proutn(_("Emeritus game")); break;