Overhaul show sect b
Print sector type mnemonic and name, like show sect s and c. Print "can't" instead of negative number for sectors players can't designate (this was not an issue before the previous commit). Show build cost per 100%, like show ship, land, plane and nuke. Size the columns more sensibly.
This commit is contained in:
parent
be6d7ca913
commit
48ff09664b
2 changed files with 27 additions and 17 deletions
|
@ -237,10 +237,11 @@ The \*Qshow\*U command can be used to show special things about sector
|
||||||
types. To check out build costs, you do:
|
types. To check out build costs, you do:
|
||||||
.EX show sect build
|
.EX show sect build
|
||||||
.NF
|
.NF
|
||||||
sector type cost to des cost for 1% eff lcms for 1% hcms for 1%
|
desig build 100% eff
|
||||||
- 0 0 0 0
|
sector type $ lcm hcm $
|
||||||
f 0 5 0 1
|
- wilderness 0 0 0 0
|
||||||
other 0 1 0 0
|
f fortress 0 0 100 500
|
||||||
|
any other 0 0 0 100
|
||||||
|
|
||||||
Infrastructure building - adding 1 point of efficiency costs:
|
Infrastructure building - adding 1 point of efficiency costs:
|
||||||
type lcms hcms mobility $$$$
|
type lcms hcms mobility $$$$
|
||||||
|
@ -249,14 +250,16 @@ rail network 1 1 1 1
|
||||||
defense factor 1 1 1 1
|
defense factor 1 1 1 1
|
||||||
.FI
|
.FI
|
||||||
.s1
|
.s1
|
||||||
Cost to des is the cost to designate the sector type. This is charged when you
|
.in \w'build hcm\0\0'u
|
||||||
give the designate command.
|
.L "desig $"
|
||||||
.s1
|
Cost charged by the designate command.
|
||||||
Cost for 1% efficiency is the $$ cost per point of efficiency built.
|
.L "build lcm"
|
||||||
Lcms/hcms for 1% are similar.
|
The lcm required to build the sector.
|
||||||
.s1
|
.L "build hcm"
|
||||||
Sectors that cost nothing to designate and just $1 per point of
|
The hcm required to build the sector.
|
||||||
efficiency are not shown.
|
.L "build $"
|
||||||
|
What it costs to build the sector.
|
||||||
|
.in
|
||||||
.s1
|
.s1
|
||||||
The show command also shows infrastructure build costs.
|
The show command also shows infrastructure build costs.
|
||||||
Infrastructure is additional facilities you can build up in your
|
Infrastructure is additional facilities you can build up in your
|
||||||
|
|
|
@ -460,7 +460,8 @@ show_sect_build(int foo)
|
||||||
{
|
{
|
||||||
int i, first;
|
int i, first;
|
||||||
|
|
||||||
pr("sector type cost to des cost for 1%% eff lcms for 1%% hcms for 1%%\n");
|
pr(" desig build 100%% eff\n"
|
||||||
|
"sector type $ lcm hcm $\n");
|
||||||
for (i = 0; dchr[i].d_name; i++) {
|
for (i = 0; dchr[i].d_name; i++) {
|
||||||
if (dchr[i].d_mnem == 0)
|
if (dchr[i].d_mnem == 0)
|
||||||
continue;
|
continue;
|
||||||
|
@ -469,11 +470,17 @@ show_sect_build(int foo)
|
||||||
if (dchr[i].d_cost <= 0 && dchr[i].d_build == 1
|
if (dchr[i].d_cost <= 0 && dchr[i].d_build == 1
|
||||||
&& dchr[i].d_lcms == 0 && dchr[i].d_hcms == 0)
|
&& dchr[i].d_lcms == 0 && dchr[i].d_hcms == 0)
|
||||||
continue; /* the usual, skip */
|
continue; /* the usual, skip */
|
||||||
pr("%-14c %-14d %-17d %-14d %d\n",
|
pr("%c %-21.21s", dchr[i].d_mnem, dchr[i].d_name);
|
||||||
dchr[i].d_mnem, dchr[i].d_cost, dchr[i].d_build,
|
if (dchr[i].d_cost < 0)
|
||||||
dchr[i].d_lcms, dchr[i].d_hcms);
|
pr(" can't");
|
||||||
|
else
|
||||||
|
pr(" %5d", dchr[i].d_cost);
|
||||||
|
pr(" %5d %5d %5d\n",
|
||||||
|
100 * dchr[i].d_lcms,
|
||||||
|
100 * dchr[i].d_hcms,
|
||||||
|
100 * dchr[i].d_build);
|
||||||
}
|
}
|
||||||
pr("other 0 1 0 0\n");
|
pr("any other 0 0 0 100\n");
|
||||||
|
|
||||||
first = 1;
|
first = 1;
|
||||||
for (i = 0; intrchr[i].in_name; i++) {
|
for (i = 0; intrchr[i].in_name; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue