Questionable feature, and hasn't been used in a long time.
EMPCFBOTH("sect_mob_neg_factor", sect_mob_neg_factor, int, NSC_INT, 0,
"Initial mobility for MOB_ACCESS (-etu_per_update / sect_mob_neg_factor)")
EMPCF_COMMENT("# Applies to sector takeover, ship build, plane or land unit build, and trade.")
-EMPCFBOTH("mission_mob_cost", mission_mob_cost, double, NSC_DOUBLE, 0,
- "Cost to put something on a mission (percentage of max mob)")
EMPCF_COMMENT("\n\n### Populace")
EMPCFBOTH("uwbrate", uwbrate, double, NSC_DOUBLE, 0,
int radius, range;
union empobj_storage item;
struct empobj *gp;
- int num = 0, mobmax, mobused;
+ int num = 0;
struct nstr_item ni;
char buf[1024];
} else
radius = 9999;
- if ((mobmax = get_empobj_mob_max(type)) == -1)
- return RET_FAIL;
-
- mobused = ldround(mission_mob_cost * (double)mobmax, 1);
-
while (nxtitem(&ni, &item)) {
gp = (struct empobj *)&item;
if (!player->owner || gp->own == 0)
continue;
- if (gp->mobil < mobused && mission_mob_cost) {
- pr("%s: not enough mobility! (needs %d)\n",
- obj_nameof(gp), mobused);
- continue;
- }
if (mission == MI_RESERVE && !lnd_can_attack((struct lndstr *)gp)) {
pr("%s is not designed to fight ground troops\n",
obj_nameof(gp));
y = gp->y;
}
- gp->mobil -= mobused;
gp->mission = mission;
range = oprange(gp);
if (range < mapdist(gp->x, gp->y, x, y)) {
(int)(ship_mob_scale * (float)etu_per_update),
(int)(plane_mob_scale * (float)etu_per_update),
(int)(land_mob_scale * (float)etu_per_update));
- pr("Mission mobility cost\t\t--\t%d\t%d\t%d\n",
- ldround((mission_mob_cost * (double)ship_mob_max), 1),
- ldround((mission_mob_cost * (double)plane_mob_max), 1),
- ldround((mission_mob_cost * (double)land_mob_max), 1));
pr("Max eff gain per update\t\t--\t%d\t%d\t%d\n",
MIN((int)(ship_grow_scale * (float)etu_per_update), 100),
MIN((int)(plane_grow_scale * (float)etu_per_update), 100),
int ship_max_interdiction_range = 8;
int land_max_interdiction_range = 8;
-double mission_mob_cost = 0.0; /* Cost is percentage of max mob */
-
double unit_damage = 0.30; /* Units take this fraction of normal damage */
double people_damage = 1.00; /* Civs/mil/uw take this fraction of damage */
double collateral_dam = 0.10; /* Side effect damage to sector */