share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/united.lua
changeset 7251 cba4960b426f
parent 7249 79b399c04410
child 7253 86814ed9feab
equal deleted inserted replaced
7249:79b399c04410 7251:cba4960b426f
    82 function AfterWave2Anim()
    82 function AfterWave2Anim()
    83   TurnTimeLeft = 0
    83   TurnTimeLeft = 0
    84 end
    84 end
    85 
    85 
    86 function AfterFinalAnim()
    86 function AfterFinalAnim()
       
    87   if leaksDead == true then
       
    88     SaveCampaignVar("M4LeaksDead", "1")
       
    89   else
       
    90     SaveCampaignVar("M4LeaksDead", "0")
       
    91   end
    87   if chiefDead == true then
    92   if chiefDead == true then
    88     SaveCampaignVar("M4ChiefDead", "1")
    93     SaveCampaignVar("M4ChiefDead", "1")
    89   else
    94   else
    90     SaveCampaignVar("M4ChiefDead", "0")
    95     SaveCampaignVar("M4ChiefDead", "0")
    91   end
    96   end
   281 function SetupAmmo()
   286 function SetupAmmo()
   282   AddAmmo(cannibals[1], amGrenade, 4)
   287   AddAmmo(cannibals[1], amGrenade, 4)
   283   AddAmmo(cannibals[1], amBazooka, 4)
   288   AddAmmo(cannibals[1], amBazooka, 4)
   284   AddAmmo(cannibals[1], amShotgun, 4)
   289   AddAmmo(cannibals[1], amShotgun, 4)
   285   AddAmmo(cannibals[1], amMine, 2)
   290   AddAmmo(cannibals[1], amMine, 2)
   286   AddAmmo(cannibals[2], amGrenade, 4)
   291   AddAmmo(cannibals[5], amGrenade, 4)
   287   AddAmmo(cannibals[2], amBazooka, 4)
   292   AddAmmo(cannibals[5], amBazooka, 4)
   288   AddAmmo(cannibals[2], amShotgun, 4)
   293   AddAmmo(cannibals[5], amShotgun, 4)
   289   AddAmmo(cannibals[2], amMine, 2)
   294   AddAmmo(cannibals[5], amMine, 2)
   290   AddAmmo(cannibals[2], amMolotov, 2)
   295   AddAmmo(cannibals[5], amMolotov, 2)
   291   AddAmmo(cannibals[2], amFlamethrower, 3)
   296   AddAmmo(cannibals[5], amFlamethrower, 3)
   292 end
   297 end
   293 
   298 
   294 function AddHogs()
   299 function AddHogs()
   295 	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
   300 	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
   296 	leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo")
   301 	leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo")