Fixed a bug where certain ammo types were added to the wrong hogs.
authorbelphegorr <szabibibi@gmail.com>
Tue, 10 Jul 2012 23:06:56 +0300
changeset 7251 cba4960b426f
parent 7249 79b399c04410
child 7253 86814ed9feab
Fixed a bug where certain ammo types were added to the wrong hogs.
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/united.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/united.lua	Tue Jul 10 15:20:12 2012 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/united.lua	Tue Jul 10 23:06:56 2012 +0300
@@ -84,6 +84,11 @@
 end
 
 function AfterFinalAnim()
+  if leaksDead == true then
+    SaveCampaignVar("M4LeaksDead", "1")
+  else
+    SaveCampaignVar("M4LeaksDead", "0")
+  end
   if chiefDead == true then
     SaveCampaignVar("M4ChiefDead", "1")
   else
@@ -283,12 +288,12 @@
   AddAmmo(cannibals[1], amBazooka, 4)
   AddAmmo(cannibals[1], amShotgun, 4)
   AddAmmo(cannibals[1], amMine, 2)
-  AddAmmo(cannibals[2], amGrenade, 4)
-  AddAmmo(cannibals[2], amBazooka, 4)
-  AddAmmo(cannibals[2], amShotgun, 4)
-  AddAmmo(cannibals[2], amMine, 2)
-  AddAmmo(cannibals[2], amMolotov, 2)
-  AddAmmo(cannibals[2], amFlamethrower, 3)
+  AddAmmo(cannibals[5], amGrenade, 4)
+  AddAmmo(cannibals[5], amBazooka, 4)
+  AddAmmo(cannibals[5], amShotgun, 4)
+  AddAmmo(cannibals[5], amMine, 2)
+  AddAmmo(cannibals[5], amMolotov, 2)
+  AddAmmo(cannibals[5], amFlamethrower, 3)
 end
 
 function AddHogs()