From 0e2f6e2d3a6443a6209d0dc24f70af5769b06d09 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Dec 2022 06:24:45 +0200 Subject: [PATCH 09/19] Add Spy elimination effect to most rulesets Add to: - classic - civ2civ3 - multiplayer - experimental - webperimental Already in sandbox See osdn #46173 Signed-off-by: Marko Lindqvist --- data/civ2civ3/effects.ruleset | 9 +++++++++ data/civ2civ3/game.ruleset | 19 +++++++++++++++++++ data/classic/effects.ruleset | 9 +++++++++ data/classic/game.ruleset | 19 +++++++++++++++++++ data/experimental/effects.ruleset | 9 +++++++++ data/experimental/game.ruleset | 19 +++++++++++++++++++ data/multiplayer/effects.ruleset | 9 +++++++++ data/multiplayer/game.ruleset | 19 +++++++++++++++++++ data/sandbox/game.ruleset | 16 ++++++++-------- data/webperimental/effects.ruleset | 9 +++++++++ data/webperimental/game.ruleset | 19 +++++++++++++++++++ 11 files changed, 148 insertions(+), 8 deletions(-) diff --git a/data/civ2civ3/effects.ruleset b/data/civ2civ3/effects.ruleset index 32d51d0d3c..b8208a9205 100644 --- a/data/civ2civ3/effects.ruleset +++ b/data/civ2civ3/effects.ruleset @@ -4160,6 +4160,15 @@ reqs = "DiplRel", "War", "Local", FALSE } +[effect_incident_success_spy_attack] +type = "Casus_Belli_Success" +value = 1 +reqs = + { "type", "name", "range", "present" + "Action", "Spy Attack", "Local", TRUE + "DiplRel", "War", "Local", FALSE + } + [effect_incident_success_incite] type = "Casus_Belli_Success" value = 1 diff --git a/data/civ2civ3/game.ruleset b/data/civ2civ3/game.ruleset index cc228016cb..4512d0c9c1 100644 --- a/data/civ2civ3/game.ruleset +++ b/data/civ2civ3/game.ruleset @@ -656,6 +656,9 @@ ui_name_transport_disembark_2 = _("%sDisembark from non native%s") ; /* TRANS: _Embark (100% chance of success). */ ui_name_transport_embark = _("%sEmbark%s") +; /* TRANS: Eliminate _Spy (100% chance of success). */ +ui_name_spy_attack = _("Eliminate %sSpy%s") + ; /* TRANS: Enter _Hut (100% chance of success). */ ui_name_enter_hut = _("Enter %sHut%s") @@ -965,6 +968,22 @@ target_reqs = "MaxUnitsOnTile", "1", "Local", TRUE } +[actionenabler_eliminate_spy] +action = "Spy Attack" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE + } +target_reqs = + { "type", "name", "range", "present" + "CityTile", "Center", "Local", FALSE + } + [actionenabler_traderoute] action = "Establish Trade Route" actor_reqs = diff --git a/data/classic/effects.ruleset b/data/classic/effects.ruleset index 7886d428ea..25d6eaf5c9 100644 --- a/data/classic/effects.ruleset +++ b/data/classic/effects.ruleset @@ -2458,6 +2458,15 @@ reqs = "DiplRel", "War", "Local", FALSE } +[effect_incident_success_spy_attack] +type = "Casus_Belli_Success" +value = 1 +reqs = + { "type", "name", "range", "present" + "Action", "Spy Attack", "Local", TRUE + "DiplRel", "War", "Local", FALSE + } + [effect_incident_success_incite] type = "Casus_Belli_Success" value = 1 diff --git a/data/classic/game.ruleset b/data/classic/game.ruleset index c4cebc7156..f25e642670 100644 --- a/data/classic/game.ruleset +++ b/data/classic/game.ruleset @@ -640,6 +640,9 @@ ui_name_transport_disembark_2 = _("%sDisembark from non native%s") ; /* TRANS: _Embark (100% chance of success). */ ui_name_transport_embark = _("%sEmbark%s") +; /* TRANS: Eliminate _Spy (100% chance of success). */ +ui_name_spy_attack = _("Eliminate %sSpy%s") + ; /* TRANS: Enter _Hut (100% chance of success). */ ui_name_enter_hut = _("Enter %sHut%s") @@ -748,6 +751,22 @@ actor_reqs = "MinMoveFrags", "1", "Local" } +[actionenabler_eliminate_spy] +action = "Spy Attack" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE + } +target_reqs = + { "type", "name", "range", "present" + "CityTile", "Center", "Local", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/experimental/effects.ruleset b/data/experimental/effects.ruleset index 6b7cf96553..9710de43a2 100644 --- a/data/experimental/effects.ruleset +++ b/data/experimental/effects.ruleset @@ -2841,6 +2841,15 @@ reqs = "DiplRel", "War", "Local", FALSE } +[effect_incident_success_spy_attack] +type = "Casus_Belli_Success" +value = 1 +reqs = + { "type", "name", "range", "present" + "Action", "Spy Attack", "Local", TRUE + "DiplRel", "War", "Local", FALSE + } + [effect_incident_success_incite] type = "Casus_Belli_Success" value = 1 diff --git a/data/experimental/game.ruleset b/data/experimental/game.ruleset index a089d760b5..2805d6983f 100644 --- a/data/experimental/game.ruleset +++ b/data/experimental/game.ruleset @@ -645,6 +645,9 @@ ui_name_transport_disembark_2 = _("%sDisembark from non native%s") ; /* TRANS: _Embark (100% chance of success). */ ui_name_transport_embark = _("%sEmbark%s") +; /* TRANS: Eliminate _Spy (100% chance of success). */ +ui_name_spy_attack = _("Eliminate %sSpy%s") + ; /* TRANS: Enter _Hut (100% chance of success). */ ui_name_enter_hut = _("Enter %sHut%s") @@ -753,6 +756,22 @@ actor_reqs = "MinMoveFrags", "1", "Local" } +[actionenabler_eliminate_spy] +action = "Spy Attack" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE + } +target_reqs = + { "type", "name", "range", "present" + "CityTile", "Center", "Local", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/multiplayer/effects.ruleset b/data/multiplayer/effects.ruleset index b78c5871ce..e6b342c6de 100644 --- a/data/multiplayer/effects.ruleset +++ b/data/multiplayer/effects.ruleset @@ -2493,6 +2493,15 @@ reqs = "DiplRel", "War", "Local", FALSE } +[effect_incident_success_spy_attack] +type = "Casus_Belli_Success" +value = 1 +reqs = + { "type", "name", "range", "present" + "Action", "Spy Attack", "Local", TRUE + "DiplRel", "War", "Local", FALSE + } + [effect_incident_success_incite] type = "Casus_Belli_Success" value = 1 diff --git a/data/multiplayer/game.ruleset b/data/multiplayer/game.ruleset index fadeeb9143..a0197e9034 100644 --- a/data/multiplayer/game.ruleset +++ b/data/multiplayer/game.ruleset @@ -634,6 +634,9 @@ ui_name_transport_disembark_2 = _("%sDisembark from non native%s") ; /* TRANS: _Embark (100% chance of success). */ ui_name_transport_embark = _("%sEmbark%s") +; /* TRANS: Eliminate _Spy (100% chance of success). */ +ui_name_spy_attack = _("Eliminate %sSpy%s") + ; /* TRANS: Enter _Hut (100% chance of success). */ ui_name_enter_hut = _("Enter %sHut%s") @@ -742,6 +745,22 @@ actor_reqs = "MinMoveFrags", "1", "Local" } +[actionenabler_eliminate_spy] +action = "Spy Attack" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE + } +target_reqs = + { "type", "name", "range", "present" + "CityTile", "Center", "Local", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset index 6703ee746b..ef1f4332c6 100644 --- a/data/sandbox/game.ruleset +++ b/data/sandbox/game.ruleset @@ -1284,17 +1284,17 @@ target_reqs = } [actionenabler_eliminate_spy] -action = "Spy Attack" +action = "Spy Attack" actor_reqs = { "type", "name", "range", "present" - "UnitFlag", "Spy", "Local", TRUE - "UnitState", "OnLivableTile", "Local", TRUE - "MinMoveFrags", "1", "Local", TRUE - "DiplRel", "Alliance", "Local", FALSE - "DiplRel", "Team", "Local", FALSE - "DiplRel", "Foreign", "Local", TRUE + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE } -target_reqs = +target_reqs = { "type", "name", "range", "present" "CityTile", "Center", "Local", FALSE } diff --git a/data/webperimental/effects.ruleset b/data/webperimental/effects.ruleset index 9677a725e7..96bcddaed9 100644 --- a/data/webperimental/effects.ruleset +++ b/data/webperimental/effects.ruleset @@ -2593,6 +2593,15 @@ reqs = "DiplRel", "War", "Local", FALSE } +[effect_incident_success_spy_attack] +type = "Casus_Belli_Success" +value = 1 +reqs = + { "type", "name", "range", "present" + "Action", "Spy Attack", "Local", TRUE + "DiplRel", "War", "Local", FALSE + } + [effect_incident_success_incite] type = "Casus_Belli_Success" value = 1 diff --git a/data/webperimental/game.ruleset b/data/webperimental/game.ruleset index ae678992e0..ee29bd7e7b 100644 --- a/data/webperimental/game.ruleset +++ b/data/webperimental/game.ruleset @@ -619,6 +619,9 @@ ui_name_transport_disembark = _("%sDisembark%s") ; /* TRANS: _Embark (100% chance of success). */ ui_name_transport_embark = _("%sEmbark%s") +; /* TRANS: Eliminate _Spy (100% chance of success). */ +ui_name_spy_attack = _("Eliminate %sSpy%s") + ; /* TRANS: Enter _Hut (100% chance of success). */ ui_name_enter_hut = _("Enter %sHut%s") @@ -1079,6 +1082,22 @@ actor_reqs = "Building", "Manhattan Project", "Player", TRUE } +[actionenabler_eliminate_spy] +action = "Spy Attack" +actor_reqs = + { "type", "name", "range", "present" + "UnitFlag", "Spy", "Local", TRUE + "UnitState", "OnLivableTile", "Local", TRUE + "MinMoveFrags", "1", "Local", TRUE + "DiplRel", "Alliance", "Local", FALSE + "DiplRel", "Team", "Local", FALSE + "DiplRel", "Foreign", "Local", TRUE + } +target_reqs = + { "type", "name", "range", "present" + "CityTile", "Center", "Local", FALSE + } + [actionenabler_traderoute] action = "Establish Trade Route" actor_reqs = -- 2.35.1