Author: zookeeper
Date: Sat Nov 22 19:07:47 2008
New Revision: 30963

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30963&view=rev
Log:
Made the player receive an extra 20 starting gold per each turn of pebbles 
defense past turn 22.

Modified:
    trunk/data/campaigns/The_South_Guard/scenarios/08b_The_Tides_of_War.cfg

Modified: 
trunk/data/campaigns/The_South_Guard/scenarios/08b_The_Tides_of_War.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_South_Guard/scenarios/08b_The_Tides_of_War.cfg?rev=30963&r1=30962&r2=30963&view=diff
==============================================================================
--- trunk/data/campaigns/The_South_Guard/scenarios/08b_The_Tides_of_War.cfg 
(original)
+++ trunk/data/campaigns/The_South_Guard/scenarios/08b_The_Tides_of_War.cfg Sat 
Nov 22 19:07:47 2008
@@ -212,6 +212,27 @@
                 [/then]
             [/if]
         {NEXT i}
+
+        # the player gets 20 extra starting gold for each turn past 22
+        [if]
+            [variable]
+                name=pebbles_defense_length
+                greater_than=22
+            [/variable]
+
+            [then]
+                {VARIABLE turns_past_22 $pebbles_defense_length}
+                {VARIABLE_OP turns_past_22 add -22}
+
+                {VARIABLE extra_starting_gold 20}
+                {VARIABLE_OP extra_starting_gold multiply $turns_past_22}
+
+                [gold]
+                    side=1
+                    amount=$extra_starting_gold
+                [/gold]
+            [/then]
+        [/if]
 
         {CLEAR_VARIABLE pebbles_defense_benefits,illuminated_locations}
     [/event]


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to