share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
changeset 13734 c6154fcb9420
parent 13733 ae22928f2b01
child 13740 2bb7141496a9
equal deleted inserted replaced
13733:ae22928f2b01 13734:c6154fcb9420
   268 		if cratesFound == 0 then
   268 		if cratesFound == 0 then
   269 			-- First win crate collected:
   269 			-- First win crate collected:
   270 			-- Turn the other crate into a fake crate; this will “contain” the device.
   270 			-- Turn the other crate into a fake crate; this will “contain” the device.
   271 			SetGearPos(other_crate_table.gear, bor(GetGearPos(other_crate_table.gear), 0x8))
   271 			SetGearPos(other_crate_table.gear, bor(GetGearPos(other_crate_table.gear), 0x8))
   272 		elseif cratesFound == 1 then
   272 		elseif cratesFound == 1 then
   273 			-- Second win crate collected:
   273 			if not candidate_crate_table.destroyed then
   274 			-- This crate contains the anti-gravity part! VICTORY!
   274 				-- Second win crate collected:
   275 			PlaySound(sndShotgunReload)
   275 				-- This crate contains the anti-gravity part! VICTORY!
   276 			-- It's displayed as if collecting a normal ammo/utility crate. :-)
   276 				PlaySound(sndShotgunReload)
   277 			AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo)
   277 				-- It's displayed as if collecting a normal ammo/utility crate. :-)
       
   278 				AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo)
       
   279 			end
   278 		end
   280 		end
   279 	end
   281 	end
   280 
   282 
   281 	if gear == girder.gear then
   283 	if gear == girder.gear then
   282 		foundDeviceCrateCandidate(girder, btorch2)
   284 		foundDeviceCrateCandidate(girder, btorch2)