]> git.pond.sub.org Git - empserver/commitdiff
show: Show infra costs in the same format as sector build costs
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 17 Aug 2016 17:08:54 +0000 (19:08 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:19 +0000 (20:09 +0200)
Use similar column headings, and show cost for 100% instead of 1%.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/show.c
tests/version/journal.log

index abeb9530700900e447599faab2ba2c09f214b0e2..0c660db7ebd22a2c325231cf75520b71d4c5db04 100644 (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;
     }
 }
index 6a962dabbabdf0333a472de4bb4a28b7aa1d39d3..c67f171a31fbbd8f75124fbb58e8b51642b25427 100644 (file)
     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
-    Play#0 output Play#0 1 Infrastructure building - adding 1 point of efficiency costs:
-    Play#0 output Play#0 1        type          lcms    hcms    mobility    $$$$
-    Play#0 output Play#0 1 road network            2       2           1       2
+    Play#0 output Play#0 1                          build 100% efficiency
+    Play#0 output Play#0 1 infrastructure type       lcm  hcm mobil     $
+    Play#0 output Play#0 1 road network              200  200   100   200
     Play#0 output Play#0 6 0 640
     Play#0 input show sect c
     Play#0 command show