(sctintrins): New member in_enable. Update infra.config. Use it
instead of opt_DEFENSE_INFRA. (improve): Test for it. (show_sect_build): Show only enabled infrastructure. (opt_DEFENSE_INFRA): Remove. Deities can edit infra.config instead. (improve): Dumb down prompt.
This commit is contained in:
parent
2c2b3f7b1d
commit
4d1dd6fa6a
7 changed files with 79 additions and 29 deletions
|
@ -1,6 +1,50 @@
|
|||
#
|
||||
# Empire - A multi-player, client/server Internet based war game.
|
||||
# Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
|
||||
# Ken Stevens, Steve McClure
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
# See files README, COPYING and CREDITS in the root of the source
|
||||
# tree for related information and legal notices. It is expected
|
||||
# that future projects/authors will amend these files as needed.
|
||||
#
|
||||
# ---
|
||||
#
|
||||
# infra.config: Infrastructure characteristics
|
||||
#
|
||||
# Known contributors to this file:
|
||||
# Markus Armbruster, 2006
|
||||
#
|
||||
# Derived from sect.c; known contributors:
|
||||
# Dave Pare, 1986
|
||||
# Jeff Bailey
|
||||
# Thomas Ruschak, 1992
|
||||
# Ken Stevens, 1995
|
||||
# Steve McClure, 1998
|
||||
#
|
||||
|
||||
# Do not edit this file to customize a game! Create your own custom
|
||||
# configuration file(s), best next to your econfig, and name them in
|
||||
# econfig key custom_tables.
|
||||
|
||||
config infrastructure
|
||||
name lcm hcm dcost mcost
|
||||
"road network" 2 2 2 1
|
||||
"rail network" 1 1 1 1
|
||||
"defense factor" 1 1 1 1
|
||||
name lcm hcm dcost mcost enab
|
||||
"road network" 2 2 2 1 1
|
||||
"rail network" 1 1 1 1 1
|
||||
"defense factor" 1 1 1 1 0
|
||||
/config
|
||||
|
|
|
@ -567,6 +567,8 @@ struct castr intrchr_ca[] = {
|
|||
{NSC_UCHAR, 0, 0, offsetof(struct sctintrins, in_hcms), "hcms", EF_BAD},
|
||||
{NSC_UCHAR, 0, 0, offsetof(struct sctintrins, in_dcost), "dcost", EF_BAD},
|
||||
{NSC_UCHAR, 0, 0, offsetof(struct sctintrins, in_mcost), "mcost", EF_BAD},
|
||||
{NSC_UCHAR, 0, 0, offsetof(struct sctintrins, in_enable), "enable",
|
||||
EF_BAD},
|
||||
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
|
||||
};
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
int opt_ALL_BLEED = 1;
|
||||
int opt_BLITZ = 1;
|
||||
int opt_BRIDGETOWERS = 1;
|
||||
int opt_DEFENSE_INFRA = 0;
|
||||
int opt_DEMANDUPDATE = 1;
|
||||
int opt_EASY_BRIDGES = 1;
|
||||
int opt_FALLOUT = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue