From 2cfd628010403fdf5febd2687f13000cebc51ea3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Dec 2022 06:24:45 +0200 Subject: [PATCH 43/43] Add Spy elimination effect to most rulesets Add to: - classic - civ2civ3 - multiplayer - goldkeep - 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/goldkeep/effects.ruleset | 9 +++++++++ data/goldkeep/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 8833990421..fe14c593f2 100644 --- a/data/civ2civ3/effects.ruleset +++ b/data/civ2civ3/effects.ruleset @@ -4183,6 +4183,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 295aec8bdb..abf617baa1 100644 --- a/data/civ2civ3/game.ruleset +++ b/data/civ2civ3/game.ruleset @@ -671,6 +671,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") @@ -980,6 +983,22 @@ target_reqs = "MaxUnitsOnTile", "1", "Tile", 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", "Tile", FALSE + } + [actionenabler_traderoute] action = "Establish Trade Route" actor_reqs = diff --git a/data/classic/effects.ruleset b/data/classic/effects.ruleset index c384776b6c..f0157e49bd 100644 --- a/data/classic/effects.ruleset +++ b/data/classic/effects.ruleset @@ -2481,6 +2481,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 2bee5be40f..7d690325d9 100644 --- a/data/classic/game.ruleset +++ b/data/classic/game.ruleset @@ -655,6 +655,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") @@ -763,6 +766,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", "Tile", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/goldkeep/effects.ruleset b/data/goldkeep/effects.ruleset index 4b2c23b456..ff92c6da9c 100644 --- a/data/goldkeep/effects.ruleset +++ b/data/goldkeep/effects.ruleset @@ -2864,6 +2864,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/goldkeep/game.ruleset b/data/goldkeep/game.ruleset index a9e727378b..ba4d5b4e62 100644 --- a/data/goldkeep/game.ruleset +++ b/data/goldkeep/game.ruleset @@ -655,6 +655,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") @@ -763,6 +766,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", "Tile", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/multiplayer/effects.ruleset b/data/multiplayer/effects.ruleset index 523efd3c78..802f2440a6 100644 --- a/data/multiplayer/effects.ruleset +++ b/data/multiplayer/effects.ruleset @@ -2516,6 +2516,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 bf3337e25f..c67c7e7b61 100644 --- a/data/multiplayer/game.ruleset +++ b/data/multiplayer/game.ruleset @@ -649,6 +649,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") @@ -757,6 +760,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", "Tile", FALSE + } + [actionenabler_establish_embassy] action = "Establish Embassy Stay" actor_reqs = diff --git a/data/sandbox/game.ruleset b/data/sandbox/game.ruleset index 4eef439d36..3df1be214d 100644 --- a/data/sandbox/game.ruleset +++ b/data/sandbox/game.ruleset @@ -1322,17 +1322,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", "Tile", FALSE } diff --git a/data/webperimental/effects.ruleset b/data/webperimental/effects.ruleset index 57af055eed..4c440060e1 100644 --- a/data/webperimental/effects.ruleset +++ b/data/webperimental/effects.ruleset @@ -2632,6 +2632,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 cf16766eec..a875073328 100644 --- a/data/webperimental/game.ruleset +++ b/data/webperimental/game.ruleset @@ -634,6 +634,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") @@ -1094,6 +1097,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", "Tile", FALSE + } + [actionenabler_traderoute] action = "Establish Trade Route" actor_reqs = -- 2.35.1