Author: sveinung
Date: Tue Aug 11 16:02:56 2015
New Revision: 29453

URL: http://svn.gna.org/viewcvs/freeciv?rev=29453&view=rev
Log:
civ2: Add the plant nuclear device action

Civ 2 had a suitcase nuke action called plant nuclear device. The Suitcase
Nuke action was recently added to Freeciv. Enable it in the civ2 ruleset.

Differences from the Civ 2 rules probably exists. They should have been
documented or changed. This wasn't done because of my limited knowledge of
the Civ 2 rules.

See patch #5627

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

Modified: trunk/data/civ2/effects.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/effects.ruleset?rev=29453&r1=29452&r2=29453&view=diff
==============================================================================
--- trunk/data/civ2/effects.ruleset     (original)
+++ trunk/data/civ2/effects.ruleset     Tue Aug 11 16:02:56 2015
@@ -2304,6 +2304,24 @@
       "Action", "Join City", "Local", FALSE
     }
 
+; Allow everyone to declar war on the terrorist nation
+[effect_incident_plant_nuke_caught]
+type   = "Casus_Belli_Caught"
+value  = 1000
+reqs   =
+    { "type", "name", "range"
+      "Action", "Suitcase Nuke", "Local"
+    }
+
+; TODO: Find the exact probability
+[effect_suitcase_plant_nuke_unlikely]
+type   = "Action_Odds_Pct"
+value   = -75
+reqs   =
+    { "type", "name", "range"
+      "Action", "Suitcase Nuke", "Local"
+    }
+
 [effect_incident_caught_steal_tech]
 type   = "Casus_Belli_Caught"
 value  = 1

Modified: trunk/data/civ2/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/game.ruleset?rev=29453&r1=29452&r2=29453&view=diff
==============================================================================
--- trunk/data/civ2/game.ruleset        (original)
+++ trunk/data/civ2/game.ruleset        Tue Aug 11 16:02:56 2015
@@ -160,6 +160,9 @@
 ; /* TRANS: _Poison City (3% chance of success). */
 ui_name_poison_city = _("%sPoison City%s")
 
+; /* TRANS: Plant _Nuclear Device (3% chance of success). */
+ui_name_suitcase_nuke = _("Plant %sNuclear Device%s")
+
 ; /* TRANS: _Sabotage Enemy Unit (3% chance of success). */
 ui_name_sabotage_unit = _("%sSabotage Enemy Unit%s")
 
@@ -265,6 +268,18 @@
 target_reqs    =
     { "type",   "name", "range"
       "MinSize", "2", "City"
+    }
+
+; TODO: Find the exact requirements
+[actionenabler_plant_nuke]
+action = "Suitcase Nuke"
+actor_reqs    =
+    { "type",   "name", "range"
+      "UnitFlag", "Spy", "Local"
+      "Building", "Manhattan Project", "World"
+      "Tech", "Nuclear Fission", "Player"
+      "DiplRel", "War", "Local"
+      "MinMoveFrags", "1", "Local"
     }
 
 [actionenabler_steal_tech_random]


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

Reply via email to