From 171e0b37b573ccd45a99746ca725c6b0f3c0ea82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl>
Date: Tue, 16 Aug 2022 17:45:17 +0200
Subject: [PATCH] =?UTF-8?q?!OSDN=2045028:=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

Added information about counters in comments of game.ruleset.
This apply to each ruleset.
---
 data/alien/game.ruleset         | 18 ++++++++++++++++++
 data/civ1/game.ruleset          | 18 ++++++++++++++++++
 data/civ2/game.ruleset          | 18 ++++++++++++++++++
 data/civ2civ3/game.ruleset      | 17 +++++++++++++++++
 data/classic/game.ruleset       | 18 ++++++++++++++++++
 data/goldkeep/game.ruleset      | 18 ++++++++++++++++++
 data/granularity/game.ruleset   | 18 ++++++++++++++++++
 data/sandbox/game.ruleset       | 18 ++++++++++++++++++
 data/stub/game.ruleset          | 18 ++++++++++++++++++
 data/webperimental/game.ruleset | 18 ++++++++++++++++++
 10 files changed, 179 insertions(+)

diff --git a/data/alien/game.ruleset b/data/alien/game.ruleset
index 24d033d0e9..189a886a38 100644
--- a/data/alien/game.ruleset
+++ b/data/alien/game.ruleset
@@ -1680,3 +1680,21 @@ set =
       ; no effect anyway
      "traitdistribution", "FIXED",              TRUE
    }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/civ1/game.ruleset b/data/civ1/game.ruleset
index eebb8e619e..61648a57ce 100644
--- a/data/civ1/game.ruleset
+++ b/data/civ1/game.ruleset
@@ -1499,3 +1499,21 @@ set =
       "topology", "ISO", FALSE
       "wrap", "WRAPX", FALSE
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/civ2/game.ruleset b/data/civ2/game.ruleset
index c1d69cecad..30c2e862b1 100644
--- a/data/civ2/game.ruleset
+++ b/data/civ2/game.ruleset
@@ -1743,3 +1743,21 @@ set =
       "topology", "ISO", FALSE
       "wrap", "WRAPX", FALSE
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/civ2civ3/game.ruleset b/data/civ2civ3/game.ruleset
index 4f5d76bd22..2e54416456 100644
--- a/data/civ2civ3/game.ruleset
+++ b/data/civ2civ3/game.ruleset
@@ -2197,6 +2197,23 @@ set =
       "tradeworldrelpct", 100
     }
 
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
 [counter_owned1]
 name = "Owned"
 def = 0
diff --git a/data/classic/game.ruleset b/data/classic/game.ruleset
index f890989511..6dd077bfb5 100644
--- a/data/classic/game.ruleset
+++ b/data/classic/game.ruleset
@@ -1976,3 +1976,21 @@ colorlist =
 ;       "int_set", 123, FALSE
 ;       "str_set", "test", FALSE
 ;     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/goldkeep/game.ruleset b/data/goldkeep/game.ruleset
index 2128e81baf..ab2594f6b5 100644
--- a/data/goldkeep/game.ruleset
+++ b/data/goldkeep/game.ruleset
@@ -2078,3 +2078,21 @@ set =
       "traitdistribution", "EVEN", FALSE
       "victories", "SPACERACE|ALLIED|CULTURE", FALSE
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/granularity/game.ruleset b/data/granularity/game.ruleset
index 8b2fdc2db8..a42c323b0d 100644
--- a/data/granularity/game.ruleset
+++ b/data/granularity/game.ruleset
@@ -904,3 +904,21 @@ set =
     { "name", "value", "lock"
       "startunits", "c", TRUE
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset
index 073e32f1c4..6c6cee12a1 100644
--- a/data/sandbox/game.ruleset
+++ b/data/sandbox/game.ruleset
@@ -3638,3 +3638,21 @@ set =
       "multiresearch", "ENABLED"
       "tradeworldrelpct", 100
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/stub/game.ruleset b/data/stub/game.ruleset
index 3f8576b06f..6a523c3821 100644
--- a/data/stub/game.ruleset
+++ b/data/stub/game.ruleset
@@ -765,3 +765,21 @@ set =
     { "name", "value", "lock"
       "startunits", "c", TRUE
     }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
diff --git a/data/webperimental/game.ruleset b/data/webperimental/game.ruleset
index 4f794c36a8..01f04e89a0 100644
--- a/data/webperimental/game.ruleset
+++ b/data/webperimental/game.ruleset
@@ -2237,3 +2237,21 @@ set =
     "airliftingstyle", "FROM_ALLIES|TO_ALLIES", FALSE
     "restrictinfra", "enabled", FALSE
   }
+
+[counters]
+
+;Counter types
+;
+;name                    = translatable name as seen by user
+;rule_name               = (optional) internal name for savegames, rulesets
+;                          etc; if not present, "name" is used for this
+;                          purpose too. Since the name used in savegames must
+;                          not change, if you want to rename an item after a
+;                          ruleset has been released, you should set
+;                          "rule_name" to the original value of "name".
+;checkpoint              = Trigger value of the counter. When counter's
+;                          value is at least this much, the "Counter" requirement
+;                          is fulfilled.
+;def                     = Initial value of the counter.
+;type                    = Behavior of the counter:
+;                          "Owned" - Increased each turn, zeroed when city changes owner
-- 
2.37.1

