Author: sveinung
Date: Fri Jan  8 11:41:17 2016
New Revision: 31412

URL: http://svn.gna.org/viewcvs/freeciv?rev=31412&view=rev
Log:
sandbox: let Spy units Steal Maps.

Allow Spy units to steal parts of other player's world map.

See patch 6783

Modified:
    trunk/data/sandbox/effects.ruleset
    trunk/data/sandbox/game.ruleset

Modified: trunk/data/sandbox/effects.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/sandbox/effects.ruleset?rev=31412&r1=31411&r2=31412&view=diff
==============================================================================
--- trunk/data/sandbox/effects.ruleset  (original)
+++ trunk/data/sandbox/effects.ruleset  Fri Jan  8 11:41:17 2016
@@ -3883,6 +3883,32 @@
       "Action", "Join City", "Local", FALSE
     }
 
+[effect_incident_caught_steal_maps]
+type   = "Casus_Belli_Caught"
+value  = 1
+reqs   =
+    { "type", "name", "range", "present"
+      "Action", "Steal Maps", "Local", TRUE
+      "DiplRel", "War", "Local", FALSE
+    }
+
+[effect_incident_success_steal_maps]
+type   = "Casus_Belli_Success"
+value  = 1
+reqs   =
+    { "type", "name", "range", "present"
+      "Action", "Steal Maps", "Local", TRUE
+      "DiplRel", "War", "Local", FALSE
+    }
+
+[effect_half_chance_steal_maps]
+type   = "Action_Odds_Pct"
+value  = -50
+reqs   =
+    { "type", "name", "range", "present"
+      "Action", "Steal Maps", "Local", TRUE
+    }
+
 [effect_incident_caught_steal_tech]
 type   = "Casus_Belli_Caught"
 value  = 1

Modified: trunk/data/sandbox/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/sandbox/game.ruleset?rev=31412&r1=31411&r2=31412&view=diff
==============================================================================
--- trunk/data/sandbox/game.ruleset     (original)
+++ trunk/data/sandbox/game.ruleset     Fri Jan  8 11:41:17 2016
@@ -232,6 +232,9 @@
 ; /* TRANS: Indus_trial Espionage (3% chance of success). */
 ui_name_targeted_steal_tech = _("Indus%strial Espionage%s")
 
+; /* TRANS: Steal _Map Fragments (3% chance of success). */
+ui_name_steal_maps = _("Steal %sMap Fragments%s")
+
 ; /* TRANS: _Investigate City (100% chance of success). */
 ui_name_investigate_city = _("%sInvestigate City%s")
 
@@ -320,6 +323,19 @@
       "UnitFlag", "Diplomat", "Local"
       "UnitState", "OnLivableTile", "Local"
       "MinMoveFrags", "1", "Local"
+    }
+
+[actionenabler_steal_maps]
+action = "Steal Maps"
+actor_reqs    =
+    { "type",   "name", "range"
+      "UnitFlag", "Spy", "Local"
+      "UnitState", "OnLivableTile", "Local"
+      "MinMoveFrags", "1", "Local"
+    }
+target_reqs  =
+    { "type",   "name", "range", "present"
+      "NationGroup", "Barbarian", "Player", FALSE
     }
 
 [actionenabler_steal_tech_random]


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to