From d297c303b8a951b3b8f46782b1317d41630595bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl>
Date: Mon, 26 Sep 2022 15:15:43 +0200
Subject: [PATCH 2/2] =?UTF-8?q?OSDN=20!Ticket=20#45488=20:=20S=C5=82awomir?=
 =?UTF-8?q?=20Lach=20<slawek@lach.art.pl>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Example how to use Celebrating city's counter. Patch modify sandbox
ruleset.

diff --git a/data/sandbox/effects.ruleset b/data/sandbox/effects.ruleset
index 175d94cea8..cf2be5ccf1 100644
--- a/data/sandbox/effects.ruleset
+++ b/data/sandbox/effects.ruleset
@@ -5437,4 +5437,12 @@ reqs =
   { "type", "name", "range", "present", "quiet"
      "Counter", "Owned3", "City", FALSE, TRUE
   }  
-    
+
+[effect_love_ruler]
+type = "Output_Add_Tile"
+value = 2
+reqs =
+{ "type", "name", "range", "present", "quiet"
+  "Counter", "Cel1", "City", TRUE, TRUE
+}  
+
diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset
index 4610fb5f82..3fa59d1ac4 100644
--- a/data/sandbox/game.ruleset
+++ b/data/sandbox/game.ruleset
@@ -3572,6 +3572,13 @@ checkpoint = 5
 type = "OWNED"
 range = "City"
 
+[counter_celebrating_1]
+name = "Cel1"
+def = 0
+checkpoint = 2
+type = "Celebration"
+range = "City"
+
 
 [playercolors]
 background.r = 86
-- 
2.37.3

