]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/constants.c
COPYING duplicates information from README. Remove. Move GPL from
[empserver] / src / lib / global / constants.c
index 9a8958a0eb2a0554972be02884f0b1ff7c3a054b..103e0b79db1cfc20955cff1b9672850a9bd7f240 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  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
@@ -19,9 +19,9 @@
  *
  *  ---
  *
- *  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.
  *
  *  ---
  *
  *     
  */
 
-#include "gamesdef.h"
+#include <config.h>
+
 #include "misc.h"
 
-char *privname = PRVNAM;       /* name of priv user */
-char *privlog = PRVLOG;        /* logname of priv user */
+char *privname = "Deity forgot to edit econfig"; /* name of priv user */
+char *privlog = "careless@invalid"; /* logname of priv user */
 
-int WORLD_X = DEF_WORLD_X;     /* World size - x */
-int WORLD_Y = DEF_WORLD_Y;     /* World size - y */
+int WORLD_X = 64;              /* World size - x */
+int WORLD_Y = 32;              /* World size - y */
 
 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 = DEF_S_P_ETU;     /* seconds per Empire time unit */
-int etu_per_update = ETUS;     /* # of etu's per update, from misc.h */
+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 */
@@ -60,7 +61,8 @@ 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 */
 char *game_days = "";          /* days game is running */
-char *game_hours = ""; /* hours game is running */
+char *game_hours = "";         /* hours game is running */
+char *pre_update_hook = "";
 int max_idle = 15;             /* session dies after max_idle minutes idle */
 
 int sect_mob_max = 127;                /* sector mobility limits */
@@ -98,17 +100,12 @@ 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 */
 
-/* START_UNITS */
-#ifdef START_UNITS
-int start_unit_type[START_UNITS] = { 0, 1 };   /* type of unit */
-#endif /* START_UNITS */
-
 /* opt_FUEL */
 int fuel_mult = 10;            /* 1 fuel = 10 mob */
 
-int land_grow_scale = 2;       /* how fast eff grows for land units (xETUS) */
-int ship_grow_scale = 3;       /* how fast eff grows for ships (xETUS) */
-int plane_grow_scale = 2;      /* how fast eff grows for planes (xETUS) */
+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) */
 
 double fgrate = 0.0012;                /* food growth rate (dt * fert) */
 double fcrate = 0.0013;                /* food cultivate rate (dt * workforce) */
@@ -123,16 +120,6 @@ double uwbrate = 0.0025;   /* uncompensated worker birth rate */
 int rollover_avail_max = 0;    /* max. avail that can roll over an update */
 
 /* opt_FALLOUT */
-/* these are the radioactive decay constants */
-/* fraction of commodity destroyed is
-   etus*fallout/(1000*melt_item_denom[item])
-   higher denominators for tougher commodities */
-int melt_item_denom[] =
-       /*   civ mil shell gun pet iron dust bar */
-{ 0, 4, 20, 80, 100, 50, 100, 100, 200,
-    2, 50, 100, 100, 2, 1000
-};
-       /*food oil lcm hcm UW rads */
 double decay_per_etu = 0.006;  /* This gives a half life of ? etus,
                                   about ? days.
                                   half life in Jt
@@ -161,7 +148,7 @@ double bankint = 0.25;              /* bank interest rate (dt * bars) */
 double tradetax = 0.99;                /* Tax charged on trade */
 double buytax = 1.0;           /* Tax charged on market purchases */
 int startmob = 127;            /* Sanctuary starting mobility */
-double flakscale = 1.75;       /* Scale factor for flak damage */
+float flakscale = 1.75f;       /* Scale factor for flak damage */
 
 /* money gained from taxes, paid to military, and reservists */
 double money_civ = 0.0083333;
@@ -232,6 +219,8 @@ float trade_ally_cut = 0.10;        /* 10% bonus for ally you trade with */
 
 int torpedo_damage = 40;       /* damage is X + 1dX + 1dX, so 40+1d40+1d40 */
 
+long start_cash = 25000;
+
 /* initial levels */
 float start_education = 0.0;
 float start_happiness = 0.0;