]> git.pond.sub.org Git - empserver/commitdiff
Show sector navigability in show se s
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Jul 2008 19:44:37 +0000 (15:44 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Jul 2008 01:04:44 +0000 (21:04 -0400)
This is the human-readable buddy of xdump sect-chr column nav, which
dumps ichr[].d_nav.

info/Sector-types.t
src/lib/subs/show.c

index 3e8f5d25240c3d425dd3a603c43d14f3122e7991..0cb3543d8e87915cb395252d4a13c03a35b1a94b 100644 (file)
@@ -265,42 +265,42 @@ sectors.  See \*Qinfo Infrastructure\*U for details.
 To check out various stats, you do:
 .EX show sect stats
 .NF
-                        mob cost   max   max     packing   max
-  sector type            0% 100%   off   def       bonus   pop
-\&. sea                    no way    0.00  0.00     normal     0
-^ mountain              2.4  1.2   1.00  4.00     normal   100
-s sanctuary              no way    0.00 99.00     normal  1000
-\e wasteland              no way    0.00 99.00     normal     0
-- wilderness            0.4  0.4   1.00  2.00     normal  1000
-c capital               0.4  0.2   1.00  2.00     normal  1000
-u uranium mine          0.4  0.2   1.00  2.00     normal  1000
-p park                  0.4  0.2   1.00  1.50     normal  1000
-d defense plant         0.4  0.2   1.00  1.50     normal  1000
-i shell industry        0.4  0.2   1.00  1.50     normal  1000
-m mine                  0.4  0.2   1.00  2.00     normal  1000
-g gold mine             0.4  0.2   1.00  2.00     normal  1000
-h harbor                0.4  0.2   1.00  1.50  warehouse  1000
-w warehouse             0.4  0.2   1.00  1.50  warehouse  1000
-* airfield              0.4  0.2   1.00  1.25     normal  1000
-a agribusiness          0.4  0.2   1.00  1.50     normal  1000
-o oil field             0.4  0.2   1.00  1.50     normal  1000
-j light manufacturing   0.4  0.2   1.00  1.50     normal  1000
-k heavy manufacturing   0.4  0.2   1.00  1.50     normal  1000
-f fortress              0.4  0.2   2.00  4.00     normal  1000
-t technical center      0.4  0.2   1.00  1.50     normal  1000
-r research lab          0.4  0.2   1.00  1.50     normal  1000
-n nuclear plant         0.4  0.2   1.00  2.00     normal  1000
-l library/school        0.4  0.2   1.00  1.50     normal  1000
-+ highway               0.4  0.0   1.00  1.00     normal  1000
-) radar installation    0.4  0.2   1.00  1.50     normal  1000
-! headquarters          0.4  0.2   1.00  1.50     normal  1000
-# bridge head           0.4  0.0   1.00  1.00     normal  1000
-= bridge span           0.4  0.0   1.00  1.00     normal   100
-b bank                  0.4  0.2   1.00  2.25       bank  1000
-% refinery              0.4  0.2   1.00  1.50     normal  1000
-e enlistment center     0.4  0.2   1.00  2.00     normal  1000
-~ plains                0.4  0.2   1.00  1.50     normal   100
-@ bridge tower          0.4  0.0   1.00  1.50     normal   100
+                        mob cost   max   max   naviga    packing   max
+  sector type            0% 100%   off   def   bility      bonus   pop
+\&. sea                    no way    0.00  0.00     sea     normal     0
+^ mountain              2.4  1.2   1.00  4.00    land     normal   100
+s sanctuary              no way    0.00 99.00    land     normal  1000
+\e wasteland              no way    0.00 99.00    land     normal     0
+- wilderness            0.4  0.4   1.00  2.00    land     normal  1000
+c capital               0.4  0.2   1.00  2.00   canal     normal  1000
+u uranium mine          0.4  0.2   1.00  2.00    land     normal  1000
+p park                  0.4  0.2   1.00  1.50    land     normal  1000
+d defense plant         0.4  0.2   1.00  1.50    land     normal  1000
+i shell industry        0.4  0.2   1.00  1.50    land     normal  1000
+m mine                  0.4  0.2   1.00  2.00    land     normal  1000
+g gold mine             0.4  0.2   1.00  2.00    land     normal  1000
+h harbor                0.4  0.2   1.00  1.50  harbor  warehouse  1000
+w warehouse             0.4  0.2   1.00  1.50    land  warehouse  1000
+* airfield              0.4  0.2   1.00  1.25    land     normal  1000
+a agribusiness          0.4  0.2   1.00  1.50    land     normal  1000
+o oil field             0.4  0.2   1.00  1.50    land     normal  1000
+j light manufacturing   0.4  0.2   1.00  1.50    land     normal  1000
+k heavy manufacturing   0.4  0.2   1.00  1.50    land     normal  1000
+f fortress              0.4  0.2   2.00  4.00    land     normal  1000
+t technical center      0.4  0.2   1.00  1.50    land     normal  1000
+r research lab          0.4  0.2   1.00  1.50    land     normal  1000
+n nuclear plant         0.4  0.2   1.00  2.00    land     normal  1000
+l library/school        0.4  0.2   1.00  1.50    land     normal  1000
++ highway               0.4  0.0   1.00  1.00    land     normal  1000
+) radar installation    0.4  0.2   1.00  1.50    land     normal  1000
+! headquarters          0.4  0.2   1.00  1.50    land     normal  1000
+# bridge head           0.4  0.0   1.00  1.00    land     normal  1000
+= bridge span           0.4  0.0   1.00  1.00  bridge     normal   100
+b bank                  0.4  0.2   1.00  2.25    land       bank  1000
+% refinery              0.4  0.2   1.00  1.50    land     normal  1000
+e enlistment center     0.4  0.2   1.00  2.00    land     normal  1000
+~ plains                0.4  0.2   1.00  1.50    land     normal   100
+@ bridge tower          0.4  0.0   1.00  1.50    land     normal   100
 .FI
 The two mob cost columns show the relative cost to move through such
 sectors at 0% and 100% efficiency.  It changes linearly between 0% and
index e4f1b1ec35d58a8ce0f911b4d9c1bddecd5c9803..8e4b34f29b30c6de2a65b12638c7040de4d35ee0 100644 (file)
@@ -504,8 +504,8 @@ show_sect_stats(int foo)
        if (dchr[x].d_mnem == 0)
            continue;
        if (first) {
-           pr("                        mob cost   max   max     packing   max\n");
-           pr("  sector type            0%% 100%%   off   def       bonus   pop\n");
+           pr("                        mob cost   max   max   naviga    packing   max\n");
+           pr("  sector type            0%% 100%%   off   def   bility      bonus   pop\n");
            first = 0;
        }
        pr("%c %-21.21s", dchr[x].d_mnem, dchr[x].d_name);
@@ -513,8 +513,9 @@ show_sect_stats(int foo)
            pr("  no way ");
        else
            pr(" %3.1f  %3.1f", dchr[x].d_mob0, dchr[x].d_mob1);
-       pr("  %5.2f %5.2f %10.10s %5d\n",
+       pr("  %5.2f %5.2f %7.7s %10.10s %5d\n",
           dchr[x].d_ostr, dchr[x].d_dstr,
+          symbol_by_value(dchr[x].d_nav, sector_navigation),
           symbol_by_value(dchr[x].d_pkg, packing),
           max_population(natp->nat_level[NAT_RLEV], x, 100));
     }