share/hedgewars/Data/Scripts/Multiplayer/Tumbler.lua
changeset 12052 144264948277
parent 12051 05a968518a56
child 12053 281a4f33b08f
equal deleted inserted replaced
12051:05a968518a56 12052:144264948277
   408 	local shotsMsg
   408 	local shotsMsg
   409 	if wepAmmo[wepIndex] <= 0 then
   409 	if wepAmmo[wepIndex] <= 0 then
   410 		shotsMsg = loc("Out of ammo!")
   410 		shotsMsg = loc("Out of ammo!")
   411 	else
   411 	else
   412 		if wepIndex == 2 then
   412 		if wepIndex == 2 then
   413 			shotsMsg = loc("%d fuel remaining")
   413 			shotsMsg = loc("Fuel: %d")
   414 		else
   414 		else
   415 			shotsMsg = loc("%d shots remaining")
   415 			shotsMsg = loc("Ammo: %d")
   416 		end
   416 		end
   417 	end
   417 	end
   418 	AddCaption(string.format(shotsMsg, wepAmmo[wepIndex]), wepCol[wepIndex],capgrpMessage2)
   418 	AddCaption(string.format(shotsMsg, wepAmmo[wepIndex]), wepCol[wepIndex],capgrpMessage2)
   419 end
   419 end
   420 
   420