From 610d75a22b2ca9436ebd7f45deaa0d645fe3be1e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 3 Dec 2022 07:12:01 +0200 Subject: [PATCH 37/37] Add enablers for "Clean" action in supplied rulesets See osdn #46139 Signed-off-by: Marko Lindqvist --- data/alien/game.ruleset | 10 ++++++++++ data/civ1/game.ruleset | 10 ++++++++++ data/civ2/game.ruleset | 10 ++++++++++ data/civ2civ3/game.ruleset | 10 ++++++++++ data/classic/game.ruleset | 10 ++++++++++ data/goldkeep/game.ruleset | 10 ++++++++++ data/multiplayer/game.ruleset | 10 ++++++++++ data/sandbox/game.ruleset | 10 ++++++++++ data/webperimental/game.ruleset | 10 ++++++++++ 9 files changed, 90 insertions(+) diff --git a/data/alien/game.ruleset b/data/alien/game.ruleset index 84ae17ba44..4d9622026f 100644 --- a/data/alien/game.ruleset +++ b/data/alien/game.ruleset @@ -557,6 +557,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1020,6 +1023,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/civ1/game.ruleset b/data/civ1/game.ruleset index db5f8f7a8c..2b3eef7371 100644 --- a/data/civ1/game.ruleset +++ b/data/civ1/game.ruleset @@ -530,6 +530,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -887,6 +890,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/civ2/game.ruleset b/data/civ2/game.ruleset index 6f2d736530..c49c433280 100644 --- a/data/civ2/game.ruleset +++ b/data/civ2/game.ruleset @@ -578,6 +578,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1199,6 +1202,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/civ2civ3/game.ruleset b/data/civ2civ3/game.ruleset index aad6687576..295aec8bdb 100644 --- a/data/civ2civ3/game.ruleset +++ b/data/civ2civ3/game.ruleset @@ -629,6 +629,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1373,6 +1376,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/classic/game.ruleset b/data/classic/game.ruleset index 31bd09d626..2bee5be40f 100644 --- a/data/classic/game.ruleset +++ b/data/classic/game.ruleset @@ -613,6 +613,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1317,6 +1320,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/goldkeep/game.ruleset b/data/goldkeep/game.ruleset index dbb6e9751a..a9e727378b 100644 --- a/data/goldkeep/game.ruleset +++ b/data/goldkeep/game.ruleset @@ -613,6 +613,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1331,6 +1334,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/multiplayer/game.ruleset b/data/multiplayer/game.ruleset index d3278831ab..bf3337e25f 100644 --- a/data/multiplayer/game.ruleset +++ b/data/multiplayer/game.ruleset @@ -607,6 +607,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1308,6 +1311,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset index 5076d10f82..4eef439d36 100644 --- a/data/sandbox/game.ruleset +++ b/data/sandbox/game.ruleset @@ -658,6 +658,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -2478,6 +2481,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = diff --git a/data/webperimental/game.ruleset b/data/webperimental/game.ruleset index 3342543475..cf16766eec 100644 --- a/data/webperimental/game.ruleset +++ b/data/webperimental/game.ruleset @@ -595,6 +595,9 @@ ui_name_plant = _("Transform by %sPlanting%s") ; /* TRANS: Pilla_ge (100% chance of success). */ ui_name_pillage = _("Pilla%sge%s") +; /* TRANS: Clean (100% chance of success). */ +ui_name_clean = _("%sClean%s") + ; /* TRANS: Clean _Pollution (100% chance of success). */ ui_name_clean_pollution = _("Clean %sPollution%s") @@ -1621,6 +1624,13 @@ actor_reqs = "UnitClassFlag", "CanPillage", "Local" } +[actionenabler_clean] +action = "Clean" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Settlers", "Local", TRUE + } + [actionenabler_clean_pollution] action = "Clean Pollution" actor_reqs = -- 2.35.1