share/hedgewars/Data/Missions/Training/SniperRifle.lua
changeset 3346 967fd96f7373
parent 3284 7ffd0e20ad08
child 3456 e19e017691e4
equal deleted inserted replaced
3345:25ad24233e77 3346:967fd96f7373
   218 
   218 
   219 -- This function is called when the game is initialized
   219 -- This function is called when the game is initialized
   220 -- to request the available ammo and probabilities
   220 -- to request the available ammo and probabilities
   221 function onAmmoStoreInit()
   221 function onAmmoStoreInit()
   222 	-- add an unlimited supply of shotgun ammo
   222 	-- add an unlimited supply of shotgun ammo
   223 	SetAmmo(amSniperRifle, 9, 0, 0)
   223 	SetAmmo(amSniperRifle, 9, 0, 0, 0)
   224 end
   224 end
   225 
   225 
   226 -- This function is called when a new gear is added.
   226 -- This function is called when a new gear is added.
   227 -- We don't need it for this training, so we can
   227 -- We don't need it for this training, so we can
   228 -- keep it empty.
   228 -- keep it empty.