(sector_mcost): New, simpler sector mobility cost formula. The cost
is a linear function of sector efficiency, with cost at 0% given by dchstr member d_mcst and cost at 100% given by d_emcst. The latter used to be d_mcst - 1. Mountain cost is no longer a special case. Road infrastructure now reduces cost up to 90%, linear in road efficiency (used to be close to that, but non-linear). Same for rail infrastructure, but 99%. Double land unit minimum cost to 0.02. Change land unit cost penalty in newly taken land to an extra 0.2 instead of a minimum of 0.2. (dchrstr): New member d_emcst. sector.config updated, with some changes: cost of mountain now ranges from 2.4 to 1.2 instead of 2.174 to 1.304, wildernes 0.4 instead of 0.6 to 0.4, highway, bridge head, bridge span and tower from 0.4 to 0.001 instead of 0.2 to 0.001. While I'm at it, make bridge head match highway stats (dstr and value reduced). (show_sect_stats): Show d_emcst. (dchr_ca): New selector emcst for d_emcst.
This commit is contained in:
parent
89022fbc42
commit
083003ad82
5 changed files with 63 additions and 59 deletions
|
@ -535,14 +535,14 @@ show_sect_stats(int foo)
|
|||
if (dchr[x].d_mnem == 0)
|
||||
continue;
|
||||
if (first) {
|
||||
pr(" base max max -- packing bonus -- max\n");
|
||||
pr(" sector type mcost off def mil uw civ bar other pop\n");
|
||||
pr(" mob.cost max max -- packing bonus -- max\n");
|
||||
pr(" sector type base min off def mil uw civ bar other pop\n");
|
||||
first = 0;
|
||||
}
|
||||
pr("%c %-23s %3d %5.2f %5.2f %3d %3d %3d %3d %5d %5d\n",
|
||||
pr("%c %-23s %2d %2d %5.2f %5.2f %3d %3d %3d %3d %5d %5d\n",
|
||||
dchr[x].d_mnem, dchr[x].d_name,
|
||||
dchr[x].d_mcst, dchr[x].d_ostr,
|
||||
dchr[x].d_dstr,
|
||||
dchr[x].d_mcst, dchr[x].d_emcst,
|
||||
dchr[x].d_ostr, dchr[x].d_dstr,
|
||||
ichr[I_MILIT].i_pkg[dchr[x].d_pkg],
|
||||
ichr[I_UW].i_pkg[dchr[x].d_pkg],
|
||||
ichr[I_CIVIL].i_pkg[dchr[x].d_pkg],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue