diff --git a/include/econfig-spec.h b/include/econfig-spec.h index e6043d15..c96ccae3 100644 --- a/include/econfig-spec.h +++ b/include/econfig-spec.h @@ -125,6 +125,8 @@ EMPCFBOTH("players_at_00", players_at_00, int, NSC_INT, 0, "Players have their coordinate system at deity 0,0 (0 - no, 1 - yes)") EMPCFBOTH("at_least_one_100", at_least_one_100, int, NSC_INT, KM_INTERNAL, "Initialize new countries with at least one sector with 100 of all resource") +EMPCFBOTH("start_cash", start_cash, long, NSC_LONG, 0, + "Starting cash for new countries") EMPCFBOTH("powe_cost", powe_cost, double, NSC_DOUBLE, 0, "Number of BTUs needed to generate a new power report") EMPCFBOTH("war_cost", War_Cost, int, NSC_INT, 0, diff --git a/include/options.h b/include/options.h index e3bb5e8b..6dd1b8ae 100644 --- a/include/options.h +++ b/include/options.h @@ -50,8 +50,6 @@ #define LANDSPIES /* Enable the land unit type spies */ -#define START_CASH 25000 /* set starting cash when capitol created */ - /* Setting BLITZ sets a couple of things. 1. BTU's always max when you login. 2. Changing name doesn't take any btus or $$ diff --git a/src/lib/commands/new.c b/src/lib/commands/new.c index 23bf4aac..4f491e9a 100644 --- a/src/lib/commands/new.c +++ b/src/lib/commands/new.c @@ -195,7 +195,7 @@ new(void) natp->nat_xorg = 0; natp->nat_yorg = 0; } - natp->nat_money = START_CASH; + natp->nat_money = start_cash; natp->nat_level[NAT_HLEV] = start_happiness; natp->nat_level[NAT_RLEV] = start_research; natp->nat_level[NAT_TLEV] = start_technology; diff --git a/src/lib/global/constants.c b/src/lib/global/constants.c index 2db1ca4b..b2777472 100644 --- a/src/lib/global/constants.c +++ b/src/lib/global/constants.c @@ -217,6 +217,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;