]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/constants.c
Update copyright notice
[empserver] / src / lib / global / constants.c
index b2777472631cb329b77be01ec5204b375844c3c6..94fcbd353d9cebc7164a36e0238f470d54197a94 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *
  *  ---
  *
- *  See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
- *  related information and legal notices. It is expected that any future
- *  projects/authors will amend these files as needed.
+ *  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.
  *
  *  ---
  *
- *  constants.c: Global constants file.  Note that the "hours" file can
- *               override these, as does the global "econfig" file.
+ *  constants.c: Global constants
  * 
  *  Known contributors to this file:
  *     Ken Stevens, 1995
  *     Steve McClure, 1996
- *     
  */
 
-#include "misc.h"
+#include <config.h>
 
-char *privname = "Deity forgot to edit econfig"; /* name of priv user */
-char *privlog = "careless@invalid"; /* logname of priv user */
+#include "optlist.h"
+
+/* Name of the deity */
+char *privname = "Deity forgot to edit econfig";
+/* E-mail of the deity */
+char *privlog = "careless@invalid";
+/* Divine hosts and networks */
+char *privip = "127.0.0.1 ::1 ::ffff:127.0.0.1";
+
+char *disabled_commands = "";
+
+int keep_journal = 0;          /* journal log file enabled */
 
 int WORLD_X = 64;              /* World size - x */
 int WORLD_Y = 32;              /* World size - y */
@@ -46,18 +54,11 @@ int MARK_DELAY = 7200;              /* Seconds to bid on commodities */
 int TRADE_DELAY = 7200;                /* Seconds to bid on units */
 
 int m_m_p_d = 1440;            /* max mins of play per day (per country) */
-int s_p_etu = 10;              /* seconds per Empire time unit */
 int etu_per_update = 60;       /* # of etu's per update */
-int adj_update = 0;            /* update time adjustment */
-int update_window = 0;         /* update window adjustment */
-int hourslop = 5;              /* amount of slop to match update times */
-char *update_times = "";       /* times regular update is allowed */
-int update_policy = 0;         /* update policy for regular updates */
-int update_demandpolicy = 2;   /* update policy for demand updates */
-int update_missed = 999;       /* demand updates missed before veto */
-int update_wantmin = 0;                /* number of votes required for demand update */
-int blitz_time = 10;           /* number of minutes between blitz updates */
-char *update_demandtimes = ""; /* times demand update is allowed */
+int update_window = 0;         /* update window adjustment, in seconds */
+int update_demand = UPD_DEMAND_NONE;
+int update_wantmin = 1;                /* votes required for demand update */
+char *update_demandtimes = ""; /* demand update time ranges */
 char *game_days = "";          /* days game is running */
 char *game_hours = "";         /* hours game is running */
 char *pre_update_hook = "";
@@ -108,9 +109,7 @@ float plane_grow_scale = 2.0;       /* how fast eff grows for planes (xETUS) */
 double fgrate = 0.0012;                /* food growth rate (dt * fert) */
 double fcrate = 0.0013;                /* food cultivate rate (dt * workforce) */
 double eatrate = 0.0005;       /* food eating rate (dt * people) */
-/*double   eatrate     = 0.0001;*//* food eating rate (dt * people) */
 double babyeat = 0.0060;       /* food to mature 1 baby into a civilian */
-/*double   babyeat     = 0.0000;*//* food to mature 1 baby into a civilian */
 
 double obrate = 0.005;         /* other sectors birth rate */
 double uwbrate = 0.0025;       /* uncompensated worker birth rate */
@@ -185,21 +184,19 @@ int at_least_one_100 = 1; /* init player with 100/100/100/100 sector? */
 float btu_build_rate = 0.0012; /* etu * civ * eff * btu_build_rate */
                                /* 8 * 999 * 100 * 0.0004 = 319 */
 int max_btus = 640;            /* maximum # of btu's */
-double powe_cost = 10.0;       /* btu cost to gen a power report */
 
 double buil_bt = 10.0;         /* tech level required to build a bridge */
 int buil_bh = 100;             /* hcm required to build a bridge */
-double buil_bc = 2000.0;       /* cash required to build a bridge */
+double buil_bc = 1000.0;       /* cash required to build a bridge */
 
 double buil_tower_bt = 100.0;  /* tech level required to build a tower */
 int buil_tower_bh = 400;       /* hcm required to build a bridge tower */
-double buil_tower_bc = 7500.0; /* cash 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 */
 
-/* opt_DRNUKE */
-float drnuke_const = .33;      /* research must be at least drnuke_const*tech */
+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
                                 * build a nuke that takes 300 tech