From 3db7e6201f4ea792c665e74f636b6e4dddaa4716 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 4 Feb 2006 19:36:51 +0000 Subject: [PATCH] (powe_cost): Remove powe_cost and replace with a fixed cost of 10. --- include/econfig-spec.h | 2 -- info/power.t | 2 +- src/lib/commands/powe.c | 2 +- src/lib/global/constants.c | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/econfig-spec.h b/include/econfig-spec.h index 6379b7d5..8ef846a5 100644 --- a/include/econfig-spec.h +++ b/include/econfig-spec.h @@ -203,8 +203,6 @@ 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, "Cost to declare war (if SLOW_WAR is on)") diff --git a/info/power.t b/info/power.t index 590ca6c2..d2c1319c 100644 --- a/info/power.t +++ b/info/power.t @@ -17,7 +17,7 @@ not be displayed. If the optional \*Qnew\*U argument is given, the program will take several minutes to gather information and generate a power report based on that up-to-date information. -This costs several BTU's (typically 10). +This costs 10 BTU's. .s1 If the optional \*Qnew\*U argument is not given, the program will shown you the report generated diff --git a/src/lib/commands/powe.c b/src/lib/commands/powe.c index 304ea921..de86bec6 100644 --- a/src/lib/commands/powe.c +++ b/src/lib/commands/powe.c @@ -241,7 +241,7 @@ gen_power(void) struct natstr *natp; float f; - player->btused += powe_cost; + player->btused += 10; memset(powbuf, 0, sizeof(powbuf)); snxtsct_all(&ns); while (nxtsct(&ns, §)) { diff --git a/src/lib/global/constants.c b/src/lib/global/constants.c index 103e0b79..90d81b40 100644 --- a/src/lib/global/constants.c +++ b/src/lib/global/constants.c @@ -187,7 +187,6 @@ 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 */