(fuel, load, prod, max_population, shp_nav_one_sector,
nav_loadship, upd_buildeff): Identify BIG_CITY (IS_BIG_CITY) by using packing type of UPKG instead of opt_BIG_CITY and sector type of SCT_CAPITAL.
This commit is contained in:
parent
d581485d32
commit
a2798857cf
8 changed files with 36 additions and 40 deletions
|
@ -136,18 +136,16 @@ prod(void)
|
|||
type = sect.sct_newtype;
|
||||
eff = 0;
|
||||
}
|
||||
if (opt_BIG_CITY) {
|
||||
if (!eff && dchr[otype].d_pkg == UPKG &&
|
||||
dchr[type].d_pkg != UPKG) {
|
||||
natp = getnatp(sect.sct_own);
|
||||
maxpop = max_population(natp->nat_level[NAT_RLEV],
|
||||
type, eff);
|
||||
work = new_work(§,
|
||||
total_work(sect.sct_work, etu_per_update,
|
||||
civs, sect.sct_item[I_MILIT],
|
||||
uws, maxpop));
|
||||
bwork = min(work / 2, bwork);
|
||||
}
|
||||
if (!eff && IS_BIG_CITY(otype) &&
|
||||
!IS_BIG_CITY(type)) {
|
||||
natp = getnatp(sect.sct_own);
|
||||
maxpop = max_population(natp->nat_level[NAT_RLEV],
|
||||
type, eff);
|
||||
work = new_work(§,
|
||||
total_work(sect.sct_work, etu_per_update,
|
||||
civs, sect.sct_item[I_MILIT],
|
||||
uws, maxpop));
|
||||
bwork = min(work / 2, bwork);
|
||||
}
|
||||
twork = 100 - eff;
|
||||
if (twork > bwork) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue