From 1347d5db85e7775918d1860691c6b51949ea3244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Tue, 27 Sep 2022 15:11:52 +0200 Subject: [PATCH 2/2] =?UTF-8?q?OSDN=20!#45489:=20S=C5=82awomir=20Lach=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show how to use support for counter counting how much turn (one after other) city is in disorder state. It is only an example of ruleset. diff --git a/data/sandbox/effects.ruleset b/data/sandbox/effects.ruleset index cf2be5ccf1..42573c24b2 100644 --- a/data/sandbox/effects.ruleset +++ b/data/sandbox/effects.ruleset @@ -5446,3 +5446,11 @@ reqs = "Counter", "Cel1", "City", TRUE, TRUE } +[effect_disorder_too_long] +type = "Output_Add_Tile" +value = -4 +reqs = +{ "type", "name", "range", "present", "quiet" + "Counter", "Dis1", "City", TRUE, TRUE +} + diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset index 3fa59d1ac4..e8bae57950 100644 --- a/data/sandbox/game.ruleset +++ b/data/sandbox/game.ruleset @@ -3579,6 +3579,12 @@ checkpoint = 2 type = "Celebration" range = "City" +[counter_disorder_1] +name = "Dis1" +def = 0 +checkpoint = 2 +type = "Disorder" +range = "City" [playercolors] background.r = 86 -- 2.37.3