<URL:
http://bugs.freeciv.org/Ticket/Display.html?id=17772
>
This patch allows you to totally disable rapture growth, and
sets the
default value for the rapture growth server setting to 2.
This fix is necessary to rebalance the game, because
largepox with rapture
growth has become a bit too powerful now. You should not
have a space ship
in BC.
Eventually I wish to set the default for rapture growth to
disabled.
- Per
Index: server/settings.c
============================================================
=======
--- server/settings.c (revision 12015)
+++ server/settings.c (working copy)
 -594,7
+594,7 
N_("Number of turns between rapture
effect"),
N_("Sets the number of turns between
rapture growth of a city. "
"If set to n a city will grow after
celebrating for n+1 "
- "turns."),
+ "turns. Set to zero to disable rapture
growth."),
NULL,
GAME_MIN_RAPTUREDELAY, GAME_MAX_RAPTUREDELAY,
GAME_DEFAULT_RAPTUREDELAY)
Index: common/city.c
============================================================
=======
--- common/city.c (revision 12015)
+++ common/city.c (working copy)
 -1026,6
+1026,7 
bool city_rapture_grow(const struct city *pcity)
{
return (pcity->rapture > 0 &&
pcity->surplus[O_FOOD] > 0
+ && game.info.rapturedelay > 0
&& (pcity->rapture % game.info.rapturedelay)
== 0
&& get_city_bonus(pcity,
EFT_RAPTURE_GROW) > 0);
}
Index: common/game.h
============================================================
=======
--- common/game.h (revision 12015)
+++ common/game.h (working copy)
 -244,9
+244,9 
#define GAME_DEFAULT_CELEBRATESIZE 3
-#define GAME_DEFAULT_RAPTUREDELAY 1
-#define GAME_MIN_RAPTUREDELAY 1
-#define GAME_MAX_RAPTUREDELAY 99 /* 99 practicaly
disables rapturing */
+#define GAME_DEFAULT_RAPTUREDELAY 2
+#define GAME_MIN_RAPTUREDELAY 0
+#define GAME_MAX_RAPTUREDELAY 10
#define GAME_DEFAULT_SAVEPALACE TRUE
|