- if (game.inkling - game.state.remkl)
- prout(_("%6d ordinary Klingons destroyed %5d"),
- game.inkling - game.state.remkl, 10*(game.inkling - game.state.remkl));
- if (game.incom - game.state.remcom)
- prout(_("%6d Klingon commanders destroyed %5d"),
- game.incom - game.state.remcom, 50*(game.incom - game.state.remcom));
- if (game.inscom - game.state.nscrem)
- prout(_("%6d Super-Commander destroyed %5d"),
- game.inscom - game.state.nscrem, 200*(game.inscom - game.state.nscrem));
- 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.options & OPTION_WORLDS) && game.state.nworldkl)
- prout(_("%6d inhabited planets destroyed by your action %5d"),
- game.state.nplankl, -300*game.state.nworldkl);
- if (game.state.basekl)
- prout(_("%6d bases destroyed by your action %5d"),
- game.state.basekl, -100*game.state.basekl);
- if (game.nhelp)
- prout(_("%6d calls for help from starbase %5d"),
- game.nhelp, -45*game.nhelp);
- if (game.casual)
- prout(_("%6d casualties incurred %5d"),
- game.casual, -game.casual);
- if (game.abandoned)
- prout(_("%6d crew abandoned in space %5d"),
- game.abandoned, -3*game.abandoned);
- if (klship)
- prout(_("%6d ship(s) lost or destroyed %5d"),
- klship, -100*klship);
+ 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);