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) if (!intrchr[i].in_enable)
continue; continue;
if (first) if (first)
pr("\nInfrastructure building - adding 1 point of efficiency costs:\n" pr("\n build 100%% efficiency\n"
" type lcms hcms mobility $$$$\n"); "infrastructure type lcm hcm mobil $\n");
pr("%-20s %4d %4d %8d %4d\n", pr("%-23.23s %4d %4d %5d %5d\n",
intrchr[i].in_name, intrchr[i].in_lcms, intrchr[i].in_hcms, intrchr[i].in_name,
intrchr[i].in_mcost, intrchr[i].in_dcost); intrchr[i].in_lcms * 100, intrchr[i].in_hcms * 100,
intrchr[i].in_mcost * 100, intrchr[i].in_dcost * 100);
first = 0; first = 0;
} }
} }

View file

@ -117,9 +117,9 @@
Play#0 output Play#0 1 ~ plains 0 0 100 0 0 Play#0 output Play#0 1 ~ plains 0 0 100 0 0
Play#0 output Play#0 1 any other 0 0 100 100 0 Play#0 output Play#0 1 any other 0 0 100 100 0
Play#0 output Play#0 1 Play#0 output Play#0 1
Play#0 output Play#0 1 Infrastructure building - adding 1 point of efficiency costs: Play#0 output Play#0 1 build 100% efficiency
Play#0 output Play#0 1 type lcms hcms mobility $$$$ Play#0 output Play#0 1 infrastructure type lcm hcm mobil $
Play#0 output Play#0 1 road network 2 2 1 2 Play#0 output Play#0 1 road network 200 200 100 200
Play#0 output Play#0 6 0 640 Play#0 output Play#0 6 0 640
Play#0 input show sect c Play#0 input show sect c
Play#0 command show Play#0 command show