share/hedgewars/Data/Scripts/Multiplayer/Tumbler.lua
changeset 12349 877f55c77a3f
parent 12069 54f53cf14ae4
child 13586 9c8749bb0d06
equal deleted inserted replaced
12348:6ff01dc1ffe2 12349:877f55c77a3f
   354 			AddCaption(loc("+1 barrel!"), wepCol[0], capgrpAmmoinfo )
   354 			AddCaption(loc("+1 barrel!"), wepCol[0], capgrpAmmoinfo )
   355 			DrawTag(1)
   355 			DrawTag(1)
   356 
   356 
   357 			barrelsEaten = barrelsEaten + 1
   357 			barrelsEaten = barrelsEaten + 1
   358 			if barrelsEaten == 5 then
   358 			if barrelsEaten == 5 then
   359 				AddCaption(loc("Achievement obtained: Barrel Eater!"),0xffba00ff,capgrpMessage2)
   359 				AddCaption(string.format(loc("Achievement gotten: %s"), loc("Barrel Eater")),0xffba00ff,capgrpMessage2)
   360 			end
   360 			end
   361 
   361 
   362 		elseif (GetGearType(gear) == gtMine) then
   362 		elseif (GetGearType(gear) == gtMine) then
   363 			wepAmmo[1] = wepAmmo[1] + 1
   363 			wepAmmo[1] = wepAmmo[1] + 1
   364 			PlaySound(sndShotgunReload)
   364 			PlaySound(sndShotgunReload)
   366 			AddCaption(loc("+1 mine!"), wepCol[1], capgrpAmmoinfo )
   366 			AddCaption(loc("+1 mine!"), wepCol[1], capgrpAmmoinfo )
   367 			DrawTag(2)
   367 			DrawTag(2)
   368 
   368 
   369 			minesEaten = minesEaten + 1
   369 			minesEaten = minesEaten + 1
   370 			if minesEaten == 5 then
   370 			if minesEaten == 5 then
   371 				AddCaption(loc("Achievement obtained: Mine Eater!"),0xffba00ff,capgrpMessage2)
   371 				AddCaption(string.format(loc("Achievement gotten: %s"), loc("Mine Eater")),0xffba00ff,capgrpMessage2)
   372 			end
   372 			end
   373 
   373 
   374 		end
   374 		end
   375 
   375 
   376 	end
   376 	end