(buil, vers, opt_NONUKES, show_nuke_build, show_nuke_capab):
Remove opt_NONUKES options. A nuke characteristics file can be created with no entries to create the emulate the removed option.
This commit is contained in:
parent
caaee8cafa
commit
2e655eaf96
6 changed files with 3 additions and 15 deletions
|
@ -74,7 +74,6 @@
|
|||
/*#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
|
||||
|
|
|
@ -71,7 +71,6 @@ extern int opt_MOB_ACCESS;
|
|||
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;
|
||||
|
|
|
@ -188,7 +188,7 @@ buil(void)
|
|||
}
|
||||
break;
|
||||
case 'n':
|
||||
if (opt_NONUKES) {
|
||||
if (!ef_nelem(EF_NUKE_CHR)) {
|
||||
pr("There are no nukes in this game.\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include "ship.h"
|
||||
#include "optlist.h"
|
||||
#include "commands.h"
|
||||
#include "file.h"
|
||||
|
||||
static void show_opts(int val);
|
||||
|
||||
|
@ -149,7 +150,7 @@ vers(void)
|
|||
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);
|
||||
|
|
|
@ -147,12 +147,6 @@ int opt_LOSE_CONTACT = 1;
|
|||
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
|
||||
|
@ -302,7 +296,6 @@ struct option_list Options[] = {
|
|||
{"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},
|
||||
|
|
|
@ -186,8 +186,6 @@ show_nuke_build(int tlev)
|
|||
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)
|
||||
|
@ -218,8 +216,6 @@ show_nuke_capab(int 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue