NO_PLAGUE: Plague is disabled.
NEW_STARVE: UW's starve, then civs, then mil
NEW_WORK: Work is changed in proportion to the # of civs moved
-GRAB_THINGS: Units will grab things they need to build
NEUTRON: Enables neutron bombs
FALLOUT: Sectors are damaged by radiation for a few updates after blast
int opt_RES_POP = 0;
#endif
-#ifdef GRAB_THINGS
-int opt_GRAB_THINGS = 1;
-#else
-int opt_GRAB_THINGS = 0;
-#endif
-
#ifdef SHOWPLANE
int opt_SHOWPLANE = 1;
#else
{"FUEL", &opt_FUEL},
{"GODNEWS", &opt_GODNEWS},
{"GO_RENEW", &opt_GO_RENEW},
- {"GRAB_THINGS", &opt_GRAB_THINGS},
{"HIDDEN", &opt_HIDDEN},
{"INTERDICT_ATT", &opt_INTERDICT_ATT},
{"LANDSPIES", &opt_LANDSPIES},
get_materials(struct sctstr *sp, int *bp, int *mvec, int check)
/* only check if found=0, remove them=1 */
{
- struct sctstr *usp;
int i;
- int used_already;
int still_left;
int svec[I_MAX + 1];
if (mvec[i] == 0)
continue;
- usp = sp;
if (check) {
still_left = gt_bg_nmbr(bp, sp, i);
if ((still_left - mvec[i]) < 0)
still_left = 0;
else
still_left -= mvec[i];
-
- if (opt_GRAB_THINGS)
- mvec[i] =
- supply_commod(usp->sct_own, usp->sct_x, usp->sct_y, i,
- mvec[i]);
pt_bg_nmbr(bp, sp, i, still_left);
svec[i] = still_left;
if (!player->simulation)
putvec(VT_ITEM, svec, (s_char *)sp, EF_SECTOR);
} else {
-
- if (opt_GRAB_THINGS) {
- used_already = svec[i] - gt_bg_nmbr(bp, sp, i);
- mvec[i] =
- try_supply_commod(usp->sct_own, usp->sct_x, usp->sct_y,
- i, (mvec[i] + used_already));
- mvec[i] -= used_already;
- } else { /* ! GRAB_THINGS */
- still_left = gt_bg_nmbr(bp, sp, i);
- mvec[i] = MIN(mvec[i], still_left);
- }
+ still_left = gt_bg_nmbr(bp, sp, i);
+ mvec[i] = MIN(mvec[i], still_left);
}
}
}