Remove option FUEL
The abstract idea of tying ships and land units to a logistical tether is sound, the concrete implementation as option FUEL is flawed. It adds too much busy-work to the game to be enjoyable. It hasn't been enabled in a public game for years. The code implementing it is ugly, repetitive, and a burden to maintain. Remove selector fuel from ship_ca[] and land_ca[], and selectors fuelc, fuelu from mchr_ca[] and lchr_ca[]. Remove fields fuelc, fuelu from ship.config and land.config. Remove command fuel from player_coms[]. Deprecate edit key 'B' in doship(), dounit(), and don't show it in pr_ship(), pr_land(). Drop opt_FUEL code from build_ship(), shi(), sdump(), ship_damage(), show_ship_stats(), do_mob_ship(), nav_ship(), build_land(), land(), ldump(), land_damage(), show_land_stats(), do_mob_land(), resupply_all(), resupply_commod(), get_minimum(), has_supply(), unit_list(), vers(). Remove opt_FUEL, fuel_mult, struct shpstr member shp_fuel, struct mchrstr members m_fuelc and m_fuelu, M_OILER, struct lndstr member lnd_fuel, struct lchrstr members l_fuelc and l_fuelu, fuel(), and auto_fuel_ship().
This commit is contained in:
parent
3cc80e83c3
commit
3b4de2feb1
42 changed files with 124 additions and 984 deletions
|
@ -96,7 +96,6 @@ struct shpstr {
|
|||
char shp_path[MAXSHPPATH];
|
||||
short shp_follow;
|
||||
char shp_name[MAXSHPNAMLEN]; /* name set with the "name" command */
|
||||
unsigned char shp_fuel; /* How much fuel do we have */
|
||||
unsigned char shp_nchoppers; /* How many choppers on board? */
|
||||
unsigned char shp_nxlight; /* How many xlight planes on board? */
|
||||
coord shp_orig_x;
|
||||
|
@ -118,8 +117,6 @@ struct mchrstr {
|
|||
int m_glim; /* how many guns it can fire */
|
||||
unsigned char m_nxlight; /* maximum number of xlight planes */
|
||||
unsigned char m_nchoppers; /* maximum number of choppers */
|
||||
unsigned char m_fuelc; /* fuel capacity */
|
||||
unsigned char m_fuelu; /* fuel used per 10 mob */
|
||||
char *m_name; /* full name of type of ship */
|
||||
int m_tech; /* tech required to build */
|
||||
int m_cost; /* how much it costs to build */
|
||||
|
@ -148,7 +145,7 @@ struct mchrstr {
|
|||
#define M_SEMILAND bit(14) /* can land 1/4 */
|
||||
/* unused bit(15) */
|
||||
/* unused bit(16) */
|
||||
#define M_OILER bit(17) /* can re-fuel ships */
|
||||
/* unused bit(17) */
|
||||
#define M_SUPPLY bit(18) /* Can supply units/sects/ships */
|
||||
#define M_CANAL bit(19) /* Can navigate a canal (BIG CITY) */
|
||||
#define M_ANTIMISSILE bit(20) /* Shoot down missile */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue