mail[Wesnoth-commits] r44542 - /branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 22, 2010 - 15:23:
Author: silene
Date: Thu Jul 22 15:23:43 2010
New Revision: 44542

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44542&view=rev
Log:
Removed gold overlay when defeating both leaders. (Fix for bug #16140, patch 
#1755 by Anonymissimus.)

Modified:
    
branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg

Modified: 
branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg?rev=44542&r1=44541&r2=44542&view=diff
==============================================================================
--- 
branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg
 (original)
+++ 
branches/1.8/data/campaigns/Legend_of_Wesmere/scenarios/05_Saurian_Treasury.cfg
 Thu Jul 22 15:23:43 2010
@@ -423,6 +423,31 @@
         [/endlevel]
     [/event]
 
+    # In case the players wins by defeating both enemy leaders, remove the 
gold overlay if it's there.
+    [event]
+        name=enemies defeated
+        [store_unit]
+            variable=gold_carrier
+            [filter]
+                role=gold_carrier
+            [/filter]
+        [/store_unit]
+        [if]
+            [variable]
+                name=gold_carrier.length
+                greater_than=0
+            [/variable]
+            [then]
+                [remove_unit_overlay]
+                    x=$gold_carrier.x
+                    y=$gold_carrier.y
+                    image=items/gold-coins-small.png
+                [/remove_unit_overlay]
+            [/then]
+        [/if]
+        {CLEAR_VARIABLE gold_carrier}
+    [/event]
+
     [event]
         name=victory
         [message]




Related Messages


Powered by MHonArc, Updated Thu Jul 22 16:20:13 2010