From 021172d8ce90f7544f113606fa27ab29256b1bef Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 23 Mar 2023 02:57:26 +0200 Subject: [PATCH 46/46] Granularity: Set granary to 10% after famine After city shrinks once, do not shrink it immediately again even if food production is still negative. See osdn #46351 Signed-off-by: Marko Lindqvist --- data/granularity/README.granularity | 3 +++ data/granularity/effects.ruleset | 8 ++++++++ data/granularity/techs.ruleset | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/data/granularity/README.granularity b/data/granularity/README.granularity index 6940b7ca40..e7351b9759 100644 --- a/data/granularity/README.granularity +++ b/data/granularity/README.granularity @@ -17,3 +17,6 @@ movement costs is 1/6 points. * City center tiles get +25 trade until city size 8, +100 after * For cities to work oceanic tiles, Fishing must be known + * Cities are protected a bit from rapid shrinking due to + continuous famine by the fact that when city shrinks, + its granary is set to 10% full, not empty diff --git a/data/granularity/effects.ruleset b/data/granularity/effects.ruleset index c1defbd4c5..d5c8d3ee3d 100644 --- a/data/granularity/effects.ruleset +++ b/data/granularity/effects.ruleset @@ -122,6 +122,14 @@ reqs = "Tech", "Government", "Player" } +[effect_base_granary_shrink] +type = "Shrink_Food" +value = 10 +reqs = + { "type", "name", "range" + "Tech", "Pottery", "Player" + } + [effect_granary_pottery_grow] type = "Growth_Food" value = 15 diff --git a/data/granularity/techs.ruleset b/data/granularity/techs.ruleset index c602812dac..d3ff64f251 100644 --- a/data/granularity/techs.ruleset +++ b/data/granularity/techs.ruleset @@ -207,7 +207,8 @@ graphic = "a.pottery" graphic_alt = "-" ; /* xgettext:no-c-format */ helptext = _("\ -As food can be stored, granary is set to 15% full when city grows.\ +As food can be stored, granary is set to 15% full when city grows\ + or 25% full when city shrinks.\ ") [advance_road_building] -- 2.39.2