/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
- * Ken Stevens, Steve McClure
+ * Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Ken Stevens, Steve McClure, Markus Armbruster
*
- * This program is free software; you can redistribute it and/or modify
+ * Empire 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
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* 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
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ---
*
* ---
*
* constants.c: Global constants
- *
+ *
* Known contributors to this file:
* Ken Stevens, 1995
* Steve McClure, 1996
+ * Markus Armbruster, 2004-2008
*/
#include <config.h>
/* Divine hosts and networks */
char *privip = "127.0.0.1 ::1 ::ffff:127.0.0.1";
+char *post_crash_dump_hook = "";
+
char *disabled_commands = "";
int keep_journal = 0; /* journal log file enabled */
a sector has after being taken */
int anno_keep_days = 7; /* How long until annos expire (<0 never) */
-int news_keep_days = 10; /* How long until news expire (<0 never) */
-int lost_items_timeout = 172800; /* How long before removing from database */
+int news_keep_days = 10; /* How long until news expire */
+int lost_keep_hours = 48; /* How long until lost items expire */
double combat_mob = 5.0; /* how much mob do units spend for combat? */
int ship_max_interdiction_range = 8;
int land_max_interdiction_range = 8;
-double mission_mob_cost = 0.0; /* Cost is percentage of max mob */
-
double unit_damage = 0.30; /* Units take this fraction of normal damage */
double people_damage = 1.00; /* Civs/mil/uw take this fraction of damage */
double collateral_dam = 0.10; /* Side effect damage to sector */
double assault_penalty = 0.50; /* attack factor for para & assault troops */
-/* opt_FUEL */
-int fuel_mult = 10; /* 1 fuel = 10 mob */
-
float land_grow_scale = 2.0; /* how fast eff grows for land units (xETUS) */
float ship_grow_scale = 3.0; /* how fast eff grows for ships (xETUS) */
float plane_grow_scale = 2.0; /* how fast eff grows for planes (xETUS) */
you can not get a precise number
without intensive simulation
(more than 3 digits). */
-double fallout_spread = 0.005; /* fraction of fallout that leaks into
+double fallout_spread = 0.005; /* fraction of fallout that leaks into
each surrounding sector */
/* end opt_FALLOUT */
/* Note in the taxes below:
tradetax - this is charged to the seller, so it is < 1 (because the seller
- gets the (price paid * tradetax)
+ gets the (price paid * tradetax)
buytax - this is charged to the buyer, so it is > 1 (because the buyer is
- charged (price paid * buytax).
+ charged (price paid * buytax).
Not perfect, but it works. :) */
double tradetax = 0.99; /* Tax charged on trade */
double edu_cons = 600000.0;
/* hap and edu avg mean that the weight on current happiness is
- * (cur_hap * hap_avg + hap_prod * etu) / (hap_avg + etu); */
+ * (cur_hap * hap_avg + hap_prod * etu) / (hap_avg + etu); */
float hap_avg = 16.0 * 3.0;
float edu_avg = 16.0 * 12.0;
int buil_tower_bh = 400; /* hcm required to build a bridge tower */
double buil_tower_bc = 3000.0; /* cash required to build a bridge tower */
-/* opt_SLOW_WAR */
-int War_Cost = 1000; /* Cost to declare war */
-
float drnuke_const = 0.0; /* research must be at least drnuke_const*tech */
/* in order to build a nuke. For example, if
* drnuke_const is .25, you need a 75 res to
float start_happiness = 0.0;
float start_technology = 0.0;
float start_research = 0.0;
+
+/* econfig keys */
+static int emp_config_dummy;
+struct keymatch configkeys[] = {
+#define EMP_CONFIG_C_OUTPUT
+#include "econfig-spec.h"
+#undef EMP_CONFIG_C_OUTPUT
+};