share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
changeset 10289 c3a77ff02a23
parent 8043 da083f8d95e6
child 10290 42efccba0711
equal deleted inserted replaced
10288:7bf02127262c 10289:c3a77ff02a23
   105 	-- A timeframe of 0 is replaced with the default time to show.
   105 	-- A timeframe of 0 is replaced with the default time to show.
   106 	ShowMission(loc("Grenade Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amGrenade, 0)
   106 	ShowMission(loc("Grenade Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amGrenade, 0)
   107 end
   107 end
   108 
   108 
   109 function onNewTurn()
   109 function onNewTurn()
   110 	ParseCommand("setweap " .. string.char(amGrenade))
   110 	SetWeapon(amGrenade)
   111 end
   111 end
   112 
   112 
   113 -- This function is called every game tick.
   113 -- This function is called every game tick.
   114 -- Note that there are 1000 ticks within one second.
   114 -- Note that there are 1000 ticks within one second.
   115 -- You shouldn't try to calculate too complicated
   115 -- You shouldn't try to calculate too complicated