From 7f603640c1183821239af9ec4518bd1b05f464c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl>
Date: Sun, 2 Apr 2023 14:14:20 +0200
Subject: [PATCH] =?UTF-8?q?!OSDN=2045072:=20S=C5=82awomir=20Lach=20<slawek?=
 =?UTF-8?q?@lach.art.pl>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Changes for counters mechanism demonstration:
1. When city exists for some turn and celebrates for some turn,
it produces culture
2. When city exists for more turn and celebrates,
it produces more culture
3. When city disorders for at least 3. turns, production
shrinks to 0

diff --git a/data/sandbox/effects.ruleset b/data/sandbox/effects.ruleset
index b33cfdd1b9..340e7163ff 100644
--- a/data/sandbox/effects.ruleset
+++ b/data/sandbox/effects.ruleset
@@ -5367,3 +5367,29 @@ reqs    =
     { "type",   "name",         "range", "present"
       "Action", "Upgrade Unit", "Local", TRUE
     }
+
+[effect_strike]
+type = "Output_Bonus"
+value = -100
+reqs    =
+{ "type",   "name",         "range", "present"
+  "Counter", "Turn_of_Disorder", "City", TRUE
+}
+
+[effect_produce_culture1]
+type = "History"
+value = 10
+reqs    =
+{ "type",   "name",         "range", "present"
+  "Counter", "Turn_Owned1", "City", TRUE
+  "Counter", "Turn_of_Celebration", "City", TRUE
+}
+
+[effect_produce_culture2]
+type = "History"
+value = 5
+reqs    =
+{ "type",   "name",         "range", "present"
+  "Counter", "Turn_Owned2", "City", TRUE
+  "Counter", "Turn_of_Celebration", "City", TRUE
+}
diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset
index 5cb41ac482..303cae2204 100644
--- a/data/sandbox/game.ruleset
+++ b/data/sandbox/game.ruleset
@@ -807,6 +807,30 @@ type = "SharedTiles"
 ;                          case riots are eliminated, value is zeroed.
 ; */ <-- avoid gettext warnings
 
+[counter_owned1]
+name = "Turn_Owned1"
+checkpoint = 10
+def = 0
+type = "Owned"
+
+[counter_owned2]
+name = "Turn_Owned2"
+checkpoint = 20
+def = 0
+type = "Owned"
+
+[counter_celebrating1]
+name = "Turn_of_Celebration"
+checkpoint = 5
+def = 0
+type = "Celebration"
+
+[counter_disorder1]
+name = "Turn_of_Disorder"
+checkpoint = 3
+def = 0
+type = "Disorder"
+
 [playercolors]
 background.r = 86
 background.g = 86
-- 
2.40.0

