show: Show infra costs in the same format as sector build costs

Use similar column headings, and show cost for 100% instead of 1%.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-08-17 19:08:54 +02:00
parent 4c21c69acc
commit b4e9c5dcb7
2 changed files with 9 additions and 8 deletions

View file

@ -425,11 +425,12 @@ show_sect_build(int foo)
if (!intrchr[i].in_enable)
continue;
if (first)
pr("\nInfrastructure building - adding 1 point of efficiency costs:\n"
" type lcms hcms mobility $$$$\n");
pr("%-20s %4d %4d %8d %4d\n",
intrchr[i].in_name, intrchr[i].in_lcms, intrchr[i].in_hcms,
intrchr[i].in_mcost, intrchr[i].in_dcost);
pr("\n build 100%% efficiency\n"
"infrastructure type lcm hcm mobil $\n");
pr("%-23.23s %4d %4d %5d %5d\n",
intrchr[i].in_name,
intrchr[i].in_lcms * 100, intrchr[i].in_hcms * 100,
intrchr[i].in_mcost * 100, intrchr[i].in_dcost * 100);
first = 0;
}
}