share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
branchspacecampaign
changeset 9630 df942cfac4e6
parent 9629 1655c50d9c51
child 9642 8a691e0f117a
equal deleted inserted replaced
9629:1655c50d9c51 9630:df942cfac4e6
   276 
   276 
   277 function onAmmoStoreInit()
   277 function onAmmoStoreInit()
   278 	SetAmmo(amDEagle, 0, 0, 0, 6)
   278 	SetAmmo(amDEagle, 0, 0, 0, 6)
   279 	SetAmmo(amGirder, 0, 0, 0, 2)
   279 	SetAmmo(amGirder, 0, 0, 0, 2)
   280 	SetAmmo(amRope, 0, 0, 0, 1)
   280 	SetAmmo(amRope, 0, 0, 0, 1)
   281 	SetAmmo(amWatermelon, 0, 0, 0, 1)
   281 	if tonumber(getBonus(2)) == 1 then
   282 	SetAmmo(amSniperRifle, 0, 0, 0, 1)
   282 		SetAmmo(amWatermelon, 0, 0, 0, 2)
       
   283 		SetAmmo(amSniperRifle, 0, 0, 0, 2)
       
   284 	else
       
   285 		SetAmmo(amWatermelon, 0, 0, 0, 1)
       
   286 		SetAmmo(amSniperRifle, 0, 0, 0, 1)
       
   287 	end
   283 end
   288 end
   284 
   289 
   285 function onPrecise()
   290 function onPrecise()
   286 	if GameTime > 3000 then
   291 	if GameTime > 3000 then
   287 		SetAnimSkip(true)   
   292 		SetAnimSkip(true)