Author: sveinung
Date: Tue Aug 16 19:56:18 2016
New Revision: 33630

URL: http://svn.gna.org/viewcvs/freeciv?rev=33630&view=rev
Log:
webperimental: introduce bombardment.

Give the Howitzer and the Battleship the ability to bombard. Set the max
range of the "Bombard" action to 3. That is further away than their vision
range. The idea is to simulate how they, with the help of a scout, can
attack targets beyond the horizon.

Bombardment doesn't replace regular attacks. Freeciv bombardment can't kill.
A Battleship is able to sink another ship.

See patch #7607

Modified:
    trunk/data/webperimental/game.ruleset
    trunk/data/webperimental/units.ruleset

Modified: trunk/data/webperimental/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/webperimental/game.ruleset?rev=33630&r1=33629&r2=33630&view=diff
==============================================================================
--- trunk/data/webperimental/game.ruleset       (original)
+++ trunk/data/webperimental/game.ruleset       Tue Aug 16 19:56:18 2016
@@ -72,6 +72,12 @@
 - Default minimum distance between cities is 3.\n\
 - Default map generator is `Fair islands`. It generates identical start \
 position islands for all players.\n\
+- The Howitzer and the Battleship can bombard.\n\
+  - bombardment may hurt all units at the target tile.\n\
+  - bombardment can't kill a unit.\n\
+  - bombardment can kill population in a city.\n\
+  - webperimental's bombardment can target unit stacks 3 tiles away.\n\
+  - webperimental's bombardment doesn't replace regular attack.\n\
 \n\
 This ruleset is still in development. If playing it makes you think that \
 a rule should change go to the Freeciv-web board at \
@@ -257,7 +263,7 @@
 poison_empties_food_stock = FALSE
 
 ; How far away targets of "Bombard" is allowed to be.
-bombard_max_range = 1
+bombard_max_range = 3
 
 ; What each action should be called when showing them to the player.
 ; The first %s should be before the mnemonic of the action.
@@ -693,6 +699,15 @@
 actor_reqs    =
     { "type",   "name", "range", "present"
       "UnitFlag", "Nuclear", "Local", TRUE
+    }
+
+[actionenabler_bombard]
+action = "Bombard"
+actor_reqs    =
+    { "type",         "name",        "range", "present"
+      "UnitFlag",     "Bombarder",   "Local", TRUE
+      "MinMoveFrags", "1",           "Local", TRUE
+      "DiplRel",      "War",         "Local", TRUE
     }
 
 [actionenabler_attack]

Modified: trunk/data/webperimental/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/webperimental/units.ruleset?rev=33630&r1=33629&r2=33630&view=diff
==============================================================================
--- trunk/data/webperimental/units.ruleset      (original)
+++ trunk/data/webperimental/units.ruleset      Tue Aug 16 19:56:18 2016
@@ -32,6 +32,7 @@
     _("LightWeight"), _("Airliftable once you learn Flight.")
     _("MediumWeight"), _("Airliftable from Airport after you learn Advanced 
Flight.")
     _("HeavyWeight"), _("Airliftable from Airport after you learn Fusion 
Power.")
+    _("Bombarder")
     _("Airbase")
     _("Transform")
     _("AirAttacker"), _("Very bad at attacking AEGIS.")
@@ -1300,7 +1301,8 @@
 uk_shield     = 1
 uk_food       = 0
 uk_gold       = 0
-flags         = "MediumWeight"
+flags         = "MediumWeight", "Bombarder"
+bombard_rate  = 5
 roles         = "AttackStrongStartUnit"
 helptext      = _("\
 Howitzers are upgraded artillery with improved\
@@ -1783,7 +1785,8 @@
 uk_shield     = 1
 uk_food       = 0
 uk_gold       = 0
-flags         = "BadCityDefender", "HeavyWeight"
+flags         = "BadCityDefender", "HeavyWeight", "Bombarder"
+bombard_rate  = 10
 roles         = ""
 helptext      = _("\
 The Battleship is the supreme naval unit with\


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

Reply via email to