From 7b5ea1e7775dcbdf1f27e8a8016f6d0ddfe58b55 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 27 Feb 2023 02:02:19 +0200 Subject: [PATCH 18/18] Granularity: Give infrapoints when new cities founded See osdn #47435 Signed-off-by: Marko Lindqvist --- data/granularity/script.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/granularity/script.lua b/data/granularity/script.lua index f0bdf05caa..e7359e5860 100644 --- a/data/granularity/script.lua +++ b/data/granularity/script.lua @@ -13,3 +13,10 @@ -- ruleset. When freeciv loads a ruleset, it also loads script -- file called 'default.lua'. The one loaded if your ruleset -- does not provide an override is default/default.lua. + +-- Give infrapoints for the development of the newly founded city +function city_built_callback(city) + city.owner:change_infrapoints(5) +end + +signal.connect("city_built", "city_built_callback") -- 2.39.2