/*#define LOSE_CONTACT*//* Allows contact to be lost after a few updates */
/* Chainsaw Mods */
-/*#define NONUKES*//* Eliminates nukes */
#ifndef NO_OIL /* Can't have fuel with no oil! */
/*#define FUEL*//* Ships use fuel to move */
#endif
extern int opt_NEUTRON;
extern int opt_NOFOOD;
extern int opt_NOMOBCOST;
-extern int opt_NONUKES;
extern int opt_NO_FORT_FIRE;
extern int opt_NO_HCMS;
extern int opt_NO_LCMS;
}
break;
case 'n':
- if (opt_NONUKES) {
+ if (!ef_nelem(EF_NUKE_CHR)) {
pr("There are no nukes in this game.\n");
return RET_FAIL;
}
#include "ship.h"
#include "optlist.h"
#include "commands.h"
+#include "file.h"
static void show_opts(int val);
pr("The tax you pay on buying commodities on the market is %.1f%%\n\n", (buytax - 1.00) * 100.0);
}
- if (opt_NONUKES)
+ if (!ef_nelem(EF_NUKE_CHR))
pr("Nukes are disabled.\n");
else if (opt_DRNUKE) { /* NUKES && DRNUKE enabled */
pr("In order to build a nuke, you need %1.2f times the tech level in research\n", drnuke_const);
int opt_LOSE_CONTACT = 0;
#endif
-#ifdef NONUKES
-int opt_NONUKES = 1;
-#else
-int opt_NONUKES = 0;
-#endif
-
#ifdef FUEL
int opt_FUEL = 1;
#else
{"NO_PLAGUE", &opt_NO_PLAGUE},
{"NOFOOD", &opt_NOFOOD},
{"NOMOBCOST", &opt_NOMOBCOST},
- {"NONUKES", &opt_NONUKES},
{"PINPOINTMISSILE", &opt_PINPOINTMISSILE},
{"RES_POP", &opt_RES_POP},
{"SAIL", &opt_SAIL},
else
pr("%13s lcm hcm oil rad avail tech $\n", "");
- if (opt_NONUKES)
- return;
for (np = nchr; np->n_name; np++) {
avail = NUK_BLD_WORK(np->n_lcm, np->n_hcm, np->n_oil, np->n_rad);
if (np->n_tech > tlev)
else
pr("%13s blst dam lbs tech $%7s abilities\n", "", "");
- if (opt_NONUKES)
- return;
for (np = nchr; np->n_name; np++) {
if (np->n_tech > tlev)
continue;