Author: jtn
Date: Tue May 12 09:25:40 2015
New Revision: 29068

URL: http://svn.gna.org/viewcvs/freeciv?rev=29068&view=rev
Log:
Example policy in experimental ruleset.

"Personal Freedom", based on original idea by SÅ‚awomir Lach (lachu@gna).

See gna patch #6078.

Modified:
    branches/S2_6/data/experimental/effects.ruleset
    branches/S2_6/data/experimental/governments.ruleset
    branches/S2_6/doc/README.ruleset_experimental

Modified: branches/S2_6/data/experimental/effects.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/experimental/effects.ruleset?rev=29068&r1=29067&r2=29068&view=diff
==============================================================================
--- branches/S2_6/data/experimental/effects.ruleset     (original)
+++ branches/S2_6/data/experimental/effects.ruleset     Tue May 12 09:25:40 2015
@@ -369,6 +369,23 @@
       "Gov", "Democracy", "Player"
     }
 
+[effect_personal_freedom_unit_unhappiness]
+type    = "Unhappy_Factor"
+value   = 1
+multiplier = "Personal Freedom"
+reqs   =
+    { "type", "name", "range"
+    }
+
+[effect_personal_freedom_science_bonus]
+type    = "Output_Bonus_2"
+value   = 10
+multiplier = "Personal Freedom"
+reqs   =
+    { "type", "name", "range"
+      "OutputType", "Science", "Local"
+    }
+
 [effect_upkeep_free_units_anarchy]
 type    = "Unit_Upkeep_Free_Per_City"
 value  = 3

Modified: branches/S2_6/data/experimental/governments.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/experimental/governments.ruleset?rev=29068&r1=29067&r2=29068&view=diff
==============================================================================
--- branches/S2_6/data/experimental/governments.ruleset (original)
+++ branches/S2_6/data/experimental/governments.ruleset Tue May 12 09:25:40 2015
@@ -204,3 +204,16 @@
 ;                           newlines so that xgettext parsing works
 ;
 ; */ <-- avoid gettext warnings
+
+[multiplier_personal_freedom]
+name      = _("Personal Freedom")
+start     = 0
+stop      = 5
+step      = 1
+default   = 0
+; /* xgettext:no-c-format */
+helptext  = _("\
+Each step of personal freedom you allow your citizens yields a 10% \
+increase in science output, but makes an additional citizen unhappy \
+for every aggressively deployed military unit.\
+")

Modified: branches/S2_6/doc/README.ruleset_experimental
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/doc/README.ruleset_experimental?rev=29068&r1=29067&r2=29068&view=diff
==============================================================================
--- branches/S2_6/doc/README.ruleset_experimental       (original)
+++ branches/S2_6/doc/README.ruleset_experimental       Tue May 12 09:25:40 2015
@@ -90,6 +90,9 @@
   and Republic one in every two citizens, and under Democracy one in
   every three citizen is unhappy because of the war against their homeland.
 
+- Custom policy "Personal Freedom". You can trade off a science bonus
+  against extra unhappiness from your aggressive military units.
+
 - There's only two disaster types; Earthquake and Fire, and they both
   can destroy a building from a city.
 


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

Reply via email to