share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua
changeset 14239 748c611bee79
parent 13740 2bb7141496a9
child 14240 c94905a5109c
equal deleted inserted replaced
14238:91a3aad23297 14239:748c611bee79
    68 
    68 
    69 	ShowMission(loc("Teamwork"), loc("Scenario"), loc("Eliminate Unit 3378.") .. "|" .. loc("Both your hedgehogs must survive.") .. "|" .. loc("Mines time: 0 seconds"), 0, 0)
    69 	ShowMission(loc("Teamwork"), loc("Scenario"), loc("Eliminate Unit 3378.") .. "|" .. loc("Both your hedgehogs must survive.") .. "|" .. loc("Mines time: 0 seconds"), 0, 0)
    70 
    70 
    71 end
    71 end
    72 
    72 
    73 
       
    74 --function onGameTick()
       
    75 
       
    76 	--if CurrentHedgehog ~= nil then
       
    77 	--	AddCaption(GetX(CurrentHedgehog) .. ";" .. GetY(CurrentHedgehog))
       
    78 	--end
       
    79 
       
    80 --end
       
    81 
       
    82 
       
    83 function onAmmoStoreInit()
    73 function onAmmoStoreInit()
    84 	SetAmmo(amBlowTorch, 0, 0, 0, 1)
    74 	SetAmmo(amBlowTorch, 0, 0, 0, 1)
    85 	SetAmmo(amGirder, 0, 0, 0, 1)
    75 	SetAmmo(amGirder, 0, 0, 0, 1)
    86 	SetAmmo(amPickHammer, 0, 0, 0, 2)
    76 	SetAmmo(amPickHammer, 0, 0, 0, 2)
    87 	SetAmmo(amJetpack, 0, 0, 0, 1)
    77 	SetAmmo(amJetpack, 0, 0, 0, 1)
    88 	SetAmmo(amDrill, 0, 0, 0, 2)
    78 	SetAmmo(amDrill, 0, 0, 0, 2)
    89 	SetAmmo(amBaseballBat, 0, 0, 0, 1)
    79 	SetAmmo(amBaseballBat, 0, 0, 0, 1)
    90 	SetAmmo(amSwitch, 9, 0, 0, 0)
    80 	SetAmmo(amSwitch, 9, 0, 0, 0)
    91 	SetAmmo(amSkip, 9, 0, 0, 0)
    81 	SetAmmo(amSkip, 9, 0, 0, 0)
    92 end
       
    93 
       
    94 function onGearDamage(gear, damage)
       
    95 	if (gear == player) and (damage == 30) then
       
    96 		HogSay(player,loc("T_T"),SAY_SHOUT)
       
    97 	end
       
    98 end
    82 end
    99 
    83 
   100 function onGearDelete(gear)
    84 function onGearDelete(gear)
   101 
    85 
   102 	if gear == bCrate then
    86 	if gear == bCrate then