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
|
@ -242,7 +242,6 @@ struct castr ship_ca[] = {
|
|||
{"follow", fldoff(shp_follow), NSC_SHORT, 0, NULL, EF_BAD, 0},
|
||||
{"name", fldoff(shp_name), NSC_STRINGY, MAXSHPNAMLEN, NULL,
|
||||
EF_BAD, 0},
|
||||
{"fuel", fldoff(shp_fuel), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"nchoppers", fldoff(shp_nchoppers), NSC_UCHAR, 0, NULL,
|
||||
EF_BAD, NSC_EXTRA},
|
||||
{"nxlight", fldoff(shp_nxlight), NSC_UCHAR, 0, NULL,
|
||||
|
@ -276,8 +275,6 @@ struct castr mchr_ca[] = {
|
|||
{"glim", fldoff(m_glim), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"nxlight", fldoff(m_nxlight), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"nchoppers", fldoff(m_nchoppers), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"fuelc", fldoff(m_fuelc), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"fuelu", fldoff(m_fuelu), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"tech", fldoff(m_tech), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"cost", fldoff(m_cost), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"flags", fldoff(m_flags), NSC_LONG, 0, NULL,
|
||||
|
@ -336,7 +333,6 @@ struct castr land_ca[] = {
|
|||
{"ship", fldoff(lnd_ship), NSC_SHORT, 0, NULL, EF_BAD, 0},
|
||||
{"harden", fldoff(lnd_harden), NSC_CHAR, 0, NULL, EF_BAD, 0},
|
||||
{"retreat", fldoff(lnd_retreat), NSC_SHORT, 0, NULL, EF_BAD, 0},
|
||||
{"fuel", fldoff(lnd_fuel), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"nxlight", fldoff(lnd_nxlight), NSC_UCHAR, 0, NULL,
|
||||
EF_BAD, NSC_EXTRA},
|
||||
{"rflags", fldoff(lnd_rflags), NSC_INT, 0, NULL,
|
||||
|
@ -364,8 +360,6 @@ struct castr land_ca[] = {
|
|||
{"spy", fldoff(l_spy), NSC_INT, 0, nsc_lchr, EF_BAD, NSC_EXTRA},
|
||||
{"rmax", fldoff(l_rad), NSC_INT, 0, nsc_lchr, EF_BAD, NSC_EXTRA},
|
||||
{"ammo", fldoff(l_ammo), NSC_INT, 0, nsc_lchr, EF_BAD, NSC_EXTRA},
|
||||
{"fuelc", fldoff(l_fuelc), NSC_UCHAR, 0, nsc_lchr, EF_BAD, NSC_EXTRA},
|
||||
{"fuelu", fldoff(l_fuelu), NSC_UCHAR, 0, nsc_lchr, EF_BAD, NSC_EXTRA},
|
||||
{"maxlight", fldoff(l_nxlight), NSC_UCHAR, 0, nsc_lchr,
|
||||
EF_BAD, NSC_EXTRA},
|
||||
{NULL, 0, NSC_NOTYPE, 0, NULL, EF_BAD, 0}
|
||||
|
@ -393,8 +387,6 @@ struct castr lchr_ca[] = {
|
|||
{"dam", fldoff(l_dam), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"ammo", fldoff(l_ammo), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"aaf", fldoff(l_aaf), NSC_INT, 0, NULL, EF_BAD, 0},
|
||||
{"fuelc", fldoff(l_fuelc), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"fuelu", fldoff(l_fuelu), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"nxlight", fldoff(l_nxlight), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"nland", fldoff(l_nland), NSC_UCHAR, 0, NULL, EF_BAD, 0},
|
||||
{"flags", fldoff(l_flags), NSC_LONG, 0, NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue